levo

The Development Project: Build, Testing and Evaluation

Test data and the types of testing

  • 3 things to know
  • A2 Unit 2

Overview

White box testing, black box testing and unit testing.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

Why are both white box and black box testing needed?

Key term

Give normal, boundary and erroneous test data for a field holding a quantity ordered between one and fifty.

Key term

What is white box testing?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is white box testing?

    Model answer

    White box testing tests with knowledge of the internal structure, choosing data that makes every path through the logic execute at least once, so a branch that is never exercised cannot hide a fault.

  2. 2

    What is black box testing?

    Model answer

    Black box testing tests only against the specification, without regard to how the system is built. Data is chosen from what the system should accept and reject, and the internal code is irrelevant to the tester.

  3. 3

    Why are both white box and black box testing needed?

    Model answer

    White box testing finds faults in paths the specification never mentions, and black box testing finds requirements the code does not implement at all. Neither finds the other's faults.

  4. 4

    What is unit testing?

    Model answer

    Unit testing tests one module or component on its own, with the modules it depends on replaced by stubs if necessary, so a fault found belongs to that unit.

  5. 5

    What is integration testing?

    Model answer

    Integration testing tests modules working together, and finds faults in the interfaces between them: data passed in the wrong order or units, or a value one module produces that the next cannot handle.

  6. 6

    What is system testing?

    Model answer

    System testing tests the whole assembled system against the requirements, in conditions as close as possible to the ones it will run in, including its volume of data and its number of users.

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

The 3-step method, run for you

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

Systems Analysis and Development Approaches
Design, Development and Testing
Implementation and System Security
Programming

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 check requires a value.
presencerangeformat

Blank Blitz makes facts automatic

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

ANormal data is 12, which should be accepted.
BBoundary data is 1 and 50, which should be accepted.
C0 and 51, just outside the limits, should be rejected.

Build It gets the exam shape right

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

One byte is made up of 8 bits.
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 The Development Project: Build, Testing and Evaluation, 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.