levo

Testing Strategies

Why testing matters throughout the development cycle

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

Overview

Purpose of testing, defect being injected at one stage and detected at another and difference between testing and debugging.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

Explain why the cost of correcting a fault rises the later it is found.

Key term

How does the V-model relate testing activities to development activities?

Process

What is meant by a defect being injected at one stage and detected at another?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is the purpose of testing?

    Model answer

    The purpose of testing is to find faults before the users do, by running the software against known inputs and comparing the actual behaviour with the behaviour that was specified.

  2. 2

    Why can testing never prove that software is free of faults?

    Model answer

    Testing can only show that faults exist, never that none remain, because a test that passes says nothing about the inputs that were not tried.

  3. 3

    Why is exhaustive testing impossible for even a simple program?

    Model answer

    Exhaustive testing is impossible because the number of possible input combinations and paths grows far faster than the time available; a single field accepting six characters already has millions of possible values.

  4. 4

    If exhaustive testing is impossible, how are test cases chosen?

    Model answer

    Test cases are chosen by dividing the input into groups that the program should treat alike and testing one value from each group, together with the values on the edges of those groups, so a small number of tests represents a huge number of inputs.

  5. 5

    Distinguish an error, a fault and a failure.

    Model answer

    An error is the mistake a person makes, the fault is the resulting defect sitting in the code or the document, and the failure is the visible wrong behaviour when that fault is executed.

  6. 6

    Distinguish verification from validation.

    Model answer

    Verification asks whether the product has been built correctly against its agreed specification, while validation asks whether the product built is the one the user actually needed.

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.