White Box Testing Techniques Flashcards
How is test coverage calculated?
Coverage = (No of coverage items exercised/ Total numbers of coverage items) x100%
How would you measure test coverage?
- 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
When can test coverage be measured?
- Component
- Integration
- System
- Acceptance testing
Why is path coverage testing not always used?
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
What is experience-based testing also known as?
- Ad-hoc
- Reactive testing
What are the two factors you should keep in mind when doing experience-based testing?
- Managing time and effort
- Tracking test coverage
What types of error guessing techniques can be used?
- Extremely large input string
- Division by zero
- No input value
- Empty fields
- Wrong data
What is exploratory testing?
This is an experience based testing technique. It is a combination of ad-hoc and structure-based testing.
What factors should be considered when determing the technique or techniques used to test an application?
- The model used while developing the system
- Test objective
- Knowledge and experience of the tester
- Potential defects
- Documentation
- Life cycle model
What external factors affect the choice of test technique?
- Risk
- Contractual requirements
- type of system
- regulatory requirements
- time and cost