成人快手

Testing and evaluationTesting and evaluation

A database is fit for purpose if it meets the end use and functional requirements. Testing queries and examining actual output against expected output helps to determine fitness for purpose.

Part of Computing ScienceDatabase design and development

Testing and evaluation

When testing queries, it is good practice to document expected results and actual results. A comparison can then be made, with testing passed if the expected result and actual result is the same.

In the example shown below, the design and implementation () are also shown to provide a clear context for the testing that follows.

The query being tested is designed to run on the data held in the following versions of the pupil and orchestra tables.

Pupil table

PupilIDFirst NameSurnameClassPastoral Care TeacherMerit Points
0001ZainabSingh1T1Mr Harley74
0002DavidBoland1I2Mrs Aitken12
0003AmyJones1M1Mr Gilchrist55
0004JamesMcNamee1T1Mr Harley88
0005PawelMcTavish1I1Mrs Aitken19
0006AntoniaGallagher1M2Mr Gilchrist21
0007AmyMcNamee1T1Mr Harley63
0008AyshaMatazinadze1T1Mr Harley45
0009BeatricePanner1T2Mr Harley77
0010ThomasGlacney1M1Miss Armstrong91
0011FrankieAl-Robeye1M2Mr Gilchrist71
PupilID0001
First NameZainab
SurnameSingh
Class1T1
Pastoral Care TeacherMr Harley
Merit Points74
PupilID0002
First NameDavid
SurnameBoland
Class1I2
Pastoral Care TeacherMrs Aitken
Merit Points12
PupilID0003
First NameAmy
SurnameJones
Class1M1
Pastoral Care TeacherMr Gilchrist
Merit Points55
PupilID0004
First NameJames
SurnameMcNamee
Class1T1
Pastoral Care TeacherMr Harley
Merit Points88
PupilID0005
First NamePawel
SurnameMcTavish
Class1I1
Pastoral Care TeacherMrs Aitken
Merit Points19
PupilID0006
First NameAntonia
SurnameGallagher
Class1M2
Pastoral Care TeacherMr Gilchrist
Merit Points21
PupilID0007
First NameAmy
SurnameMcNamee
Class1T1
Pastoral Care TeacherMr Harley
Merit Points63
PupilID0008
First NameAysha
SurnameMatazinadze
Class1T1
Pastoral Care TeacherMr Harley
Merit Points45
PupilID0009
First NameBeatrice
SurnamePanner
Class1T2
Pastoral Care TeacherMr Harley
Merit Points77
PupilID0010
First NameThomas
SurnameGlacney
Class1M1
Pastoral Care TeacherMiss Armstrong
Merit Points91
PupilID0011
First NameFrankie
SurnameAl-Robeye
Class1M2
Pastoral Care TeacherMr Gilchrist
Merit Points71

Orchestra table

OrchestraMemberIDPupilIDGroupTuition
010004WoodwindYes
020007StringsNo
030008BrassYes
040003BrassNo
050009PercussionNo
OrchestraMemberID01
PupilID0004
GroupWoodwind
TuitionYes
OrchestraMemberID02
PupilID0007
GroupStrings
TuitionNo
OrchestraMemberID03
PupilID0008
GroupBrass
TuitionYes
OrchestraMemberID04
PupilID0003
GroupBrass
TuitionNo
OrchestraMemberID05
PupilID0009
GroupPercussion
TuitionNo