levo

Testing Strategies

Building a test plan for a scenario

  • 3 things to know
  • A2 Unit 1
Start revising · £5/month

Overview

Working from the requirements to a numbered list of tests, choosing normal, boundary and erroneous data for each, stating the expected result in advance, and leaving room for the actual result.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

A login screen locks an account after three failed attempts. Give three tests, with the expected result of each.

Key term

A booking system must refuse a date in the past. State the three date tests to plan and why the middle one matters.

Key term

A system must not allow a member to borrow more than five items. Describe the tests for that rule.

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is the first step in developing a test plan for a specific scenario?

    Model answer

    The first step is to list every requirement and rule the scenario states, because each one becomes at least one test and anything not written down at this stage will not be tested.

  2. 2

    A login screen locks an account after three failed attempts. Give three tests, with the expected result of each.

    Model answer

    Test a correct password, which should grant access; test two wrong passwords followed by a correct one, which should grant access and reset the count; and test three wrong passwords, which should lock the account and display the lockout message.

  3. 3

    In that login scenario, why is the second failed attempt worth testing as well as the third?

    Model answer

    The second attempt confirms that the account is not locked too early, so testing both sides of the limit distinguishes a counter that locks on the third failure from one that locks on the second.

  4. 4

    A quantity field on an order form accepts 1 to 50. Write the normal, boundary and erroneous tests you would plan.

    Model answer

    The normal test uses 25, the boundary tests use 0, 1, 50 and 51, and the erroneous tests use a blank entry, the letters abc and the negative value −4.

  5. 5

    A form calculates a total as quantity multiplied by unit price. Give a test with its expected result.

    Model answer

    Entering a quantity of 7 at a unit price of £3.50 should produce a total of 7 × £3.50 = £24.50, and dividing back gives £24.50 ÷ 7 = £3.50, confirming the expected value.

  6. 6

    A booking system must refuse a date in the past. State the three date tests to plan and why the middle one matters.

    Model answer

    Plan yesterday's date, which must be refused, today's date, which the rule must state explicitly as accepted or refused, and tomorrow's date, which must be accepted; the middle case matters because today is exactly where an ambiguous rule and an off-by-one comparison both show up.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Software and the Development Environment
Defining Data: Types, Variables and Classes
Program Control Structures
Objects, Classes and Data Structures

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

A null is the of one.
absencepresencetype

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

An error is the mistake a person made.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Testing Strategies, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.