levo

Testing Strategies

Integration testing

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

Overview

Integration testing, one advantage and one disadvantage of the top-down approach and one advantage and one disadvantage of the bottom-up approach.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

Name three kinds of fault that only integration testing can find.

Key term

Why do modules that each pass their own tests still fail when combined?

Evaluation

State one advantage and one disadvantage of the top-down approach to integration testing

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is integration testing?

    Model answer

    Integration testing combines modules that have each passed their own tests and checks that they work correctly together, concentrating on the data and control passed across the interfaces between them.

  2. 2

    Why do modules that each pass their own tests still fail when combined?

    Model answer

    Modules fail when combined because each was tested against its author's reading of the interface, so one may pass a date as text where the other expects a number, or assume the caller has already validated data that it has not.

  3. 3

    Name three kinds of fault that only integration testing can find.

    Model answer

    Integration testing finds parameters passed in the wrong order or the wrong units, a module that leaves shared data in a state the next module cannot handle, and two modules that both update the same record without either expecting the other.

  4. 4

    Describe top-down integration testing.

    Model answer

    Top-down integration starts with the highest-level control module and adds the modules beneath it one level at a time, using stubs to stand in for everything not yet written.

  5. 5

    State one advantage and one disadvantage of the top-down approach.

    Model answer

    The advantage of top-down integration is that a skeleton of the whole system exists early and can be demonstrated, and the disadvantage is that a large number of stubs must be written and the detailed processing is tested last.

  6. 6

    Describe bottom-up integration testing.

    Model answer

    Bottom-up integration starts with the lowest-level modules, tests them in small groups using drivers to call them, and works upwards until the top-level control module joins the last group.

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.