White Box Testing Techniques Flashcards

1
Q

How is test coverage calculated?

A

Coverage = (No of coverage items exercised/ Total numbers of coverage items) x100%

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

How would you measure test coverage?

A
  • Determine the structural elements to be used
  • Count the structural elements
  • Instrument the code
  • Execute the tests for measuring coverage
  • Determine the percentage of elements exercised
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When can test coverage be measured?

A
  • Component
  • Integration
  • System
  • Acceptance testing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why is path coverage testing not always used?

A

Path coverage is the most comprehensive testing that a suite can provide, however:

  • It is difficult and usually is reserved for critical sections of code
  • 100% path coverage can be very time consuming
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is experience-based testing also known as?

A
  • Ad-hoc
  • Reactive testing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the two factors you should keep in mind when doing experience-based testing?

A
  • Managing time and effort
  • Tracking test coverage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What types of error guessing techniques can be used?

A
  • Extremely large input string
  • Division by zero
  • No input value
  • Empty fields
  • Wrong data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is exploratory testing?

A

This is an experience based testing technique. It is a combination of ad-hoc and structure-based testing.

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

What factors should be considered when determing the technique or techniques used to test an application?

A
  • The model used while developing the system
  • Test objective
  • Knowledge and experience of the tester
  • Potential defects
  • Documentation
  • Life cycle model
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What external factors affect the choice of test technique?

A
  • Risk
  • Contractual requirements
  • type of system
  • regulatory requirements
  • time and cost
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly