levo

Testing Strategies

Building a test plan for a scenario

  • 3 things to know
  • A2 Unit 1

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.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

See a huge jump in your memorisation

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

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

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

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.

AA null means no value has been recorded.
BZero and an empty string are values.
CA null is the absence of a value.

Build It trains answer structure

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

An error is the mistake a person made.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

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.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

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