levo

Building a Desktop Solution with a Database

Testing and documenting the built solution

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

Overview

Testing the connection, referential integrity, concurrency and transactions, recording each test with its evidence, and what the technical and user documentation must contain.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

How is the evidence of testing recorded?

Key term

What must the technical documentation record about the data access?

Key term

What must the user documentation cover for a database solution?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What has to be tested about the database connection specifically?

    Model answer

    That the solution connects from the machine it will run on, behaves sensibly when the database is unavailable, closes its connections, and works with the credentials the client will actually use rather than the developer's.

  2. 2

    What test data is needed for a database solution?

    Model answer

    Normal values that should be accepted, boundary values at the exact limits of each field, and erroneous values that must be refused, together with enough volume to show whether the queries stay fast.

  3. 3

    How is referential integrity tested?

    Model answer

    By attempting the actions it exists to prevent: entering a foreign key value that matches nothing, and deleting a parent that still has children, and confirming the database refuses or cascades exactly as the design said it would.

  4. 4

    How is a concurrency clash tested?

    Model answer

    Two copies of the application are used to read the same row, one saves a change, and then the other saves. The second must detect the clash and report it rather than overwrite the first silently.

  5. 5

    How is a transaction tested?

    Model answer

    A failure is forced part way through a multi-table save, and the database is then examined to confirm that none of the changes took effect rather than some of them.

  6. 6

    What is regression testing, and why does a database solution need it?

    Model answer

    Regression testing re-runs tests that already passed, to show a change has broken nothing. A database solution needs it because a change to one table's structure or constraints can break a form or report elsewhere.

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 Building a Desktop Solution with a Database, 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.