software testing Flashcards

1
Q

what is test data

A

inputs which have been devised to test the system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

test cases

A

input and predicted output

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is black box testing

A

programs test cases are based on the system specification. Test planning can begin early

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is equivalence partitioning

A

classes for input dat and output. Generally choose test cases at the boundary of the sets in the classes coz these are more likly erroneous behaviour and choosing random values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is another name for structural testing

A

white box testing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what does structural testing entail?

A

derivation of test cases according to program structure. Objective is to exercise all program statements(not all program combinations).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

difference between black and white box testing

A

Programming knowledge and implementation knowledge is needed in white box

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is path testing

A

ensure that the set of test cases is such that each path through the program is executed atleast once.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what is program flow graphs

A

describes the program control flow. each branch is shown as a seperate path and loops are shown by arrows looping back to the loop condition node. Used for computing cyclomatic complexity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what is the cyclomatic complexity

A

number of edges - number of nodes + 2 in the program flow graph

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what does the cyclomatic complexity involve

A

number of tests to test all control statements equals the cyclomatic complexity. Equals the the number of conditions of a program +1.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Disadvantage of cyclomatic complexity

A

all combinations of paths are not executed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

apart from the cyclomatic complexity, what else can be used to check that paths have been executed?

A

a dynamic program analyser

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

is integration testing black or white box

A

black- tests complete or subsystems of ingrated components.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what is the problem of integration error

A

localising errors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what idea does incremental integration testing use

A

regression testing- future tests also test previous cases again.

17
Q

How can we ensure that the addition of a new module does not break the previous test case?

A

use a test harness-program written to automatically generate test data and record their test results

18
Q

Name two approaches to integration testing and which approach does it use?

A

Top-down (high level system and integrate from top down replacing individual components by stubs).
Bottom-up (integration individual components in level until complete system).
Most integration use a combo of both

19
Q

which types of system is bottom up testing appropriate for?

A

object-orientated systems - have a neat decomposition into classes and methods- makes testing easy.
Real-time systems- can identify slow code
systems with strict performance requirements - can measure the performace early on

20
Q

benefits of top down

A

better at discovering errors in the system architecture

allows a limited demonstration at an early state

21
Q

problem with both bottom up and top down

A

test observation - extra code may be required to observe tests.

22
Q

what is a procedural interface

A

sub system encapsulate a set of procedures to be called by other sub systems

23
Q

what are some interface errors

A
interface misuse
interface misunderstanding
timing errors(out of data info is accessed)
24
Q

what is stress testing

A

exercise the sstem beyog its max design load. checks for unacceptable loss of data

25
Q

why can be object class testing be difficult

A

because of inheritance - as the information being tested is not localised

26
Q

what is cluster testing

A

integrating and testing clusers of cooperating objects.

27
Q

what are some approaches to cluster testing

A

use case or scenario testing (based on user interaction)
thread testing
object interaction testing

28
Q

explain scenario based testing

A

supplement scenarios from use cases with interaction diagrams.