Test Generation Strategies Flashcards

1
Q

What type of test generation needs requirements modeled using a formal notation?

A

Model-based test generation

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

Name some test generation strategies for requirements

A
  • finite-state machines
  • statecharts
  • Petri nets
  • timed I/O automata
  • algebraic and logic specifications
  • code + run-time data -> test selection
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

An informal process to review a work product

A

Walkthroughs

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

a formal review process with defined roles

A

Inspections

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

__% of software errors can be found by inspections

before the first test case is run

A

90

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

T/F Inspections are the least useful, least cost-effective form of error removal

A

F, most useful and most cost-effective

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

T/F At the inspection, specific metrics should be collected and tracked which will describe defects, defect removal efficiency, and efficiency of the inspection process

A

T

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

T/F The program needs to fund inspections and track rework savings

A

T

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

T/F Inspections are the most useful, most cost-effective form of error removal

A

T

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

T/F You should prioritize more complex modules for peer review

A

T

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

T/F cyclomatic complexity <10 good, >20 bad

A

T

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

Generation of tests from a formal model of program behavior

A

Model-based testing

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

List some sources of test generation

A

Black-box testing
White-box testing
Model-based or specification-based testing
Interface testing

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

List some test process models

A
Waterfall
V-model
Spiral
Agile
Test driven development (TDD)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

T/F Testing is an economic activity

A

T

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

Measuring the goodness of a test set T, a collection of test inputs, based on one or more test adequacy criteria

A

Test assessment

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

Measuring test adequacy and improving a test set against a sequence of well defined, increasingly strong, coverage domains leads to improved reliability of the system under test

A

Coverage Principle

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

List some coverage domains

A
  • requirements
  • classes
  • mutations
  • exceptions
  • data flows
19
Q

List the hierarchy of coverage criteria from lowest to highest

A
  • requirements
  • function/method
  • statement
  • decision
  • conditions
  • modified paths
  • data flow
  • mutation
20
Q

What is the saturation region?

A

A region where no new defects are found and fixed

21
Q

Finding and fixing previously undiscovered defects leads to greater ____ in the program

A

Confidence

22
Q

T/F Any method of constructing functional tests is inadequate in comparison to code-based coverage criteria

A

T

23
Q

T/F In the software development life cycle testing activities should start as early as possible and should be focused on defined objectives

A

T

24
Q

If the same kinds of tests are repeated again and again, eventually the same set of test cases will no longer be able to find any new bugs

A

Saturation Region

25
Q

T/F Peer reviews are a form of static testing

A

T

26
Q

What are the three best software engineering practices

A

Inspections, inspections, inspections

27
Q

T/F All companies do plenty of inspections

A

F

28
Q

At best, what is the practice for inspections?

A

Inspecting the key components

29
Q

T/F All products that are placed under CM and are used as a basis for subsequent development need to be subjected to successful completion of a formal inspection prior to its release to CM

A

T

30
Q

T/F The inspection needs to follow a rigorous process defined in the software development plan and should be based on agreed-to entry and exit criteria for that specific product

A

T

31
Q

T/F All products to be placed under CM should be inspected as far from their production as possible

A

F, as close to their production as feasible

32
Q

T/F Inspections should be conducted beginning with concept definition and ending with completion of the engineering process

A

T

33
Q

T/F Simple errors lead to simple failures

A

F, can lead to large failures

34
Q

Adequacy score or coverage, usually between _ and _

A

0 and 1

35
Q

T/F Weaknesses depend on the criteria used for assessment

A

T

36
Q

T/F In the saturation region, there are no more defects in the software

A

F, there may still be defects in the software that

our tests cannot find

37
Q

T/F Test generation methods are practically limited

in what they can find

A

T

38
Q

What is the most useful, most cost-effective form of error removal

A

Inspections

39
Q

T/F Test generation methods are practically unlimited

in what they can find

A

F, limited

40
Q

T/F You should prioritize less complex modules for peer review

A

F, more complex

41
Q

T/F cyclomatic complexity <2 good, >5 bad

A

F, 10, 20

42
Q

T/F Testing is not an economic activity

A

F, it is

43
Q

What is the region where no new defects are found and fixed?

A

Saturation region

44
Q

What is a form of static testing?

A

Peer reviews