1. What are the advantages of black box testing?
- Testing from the end user’s point of view.
- No knowledge of programming languages required for testing.
- Identifying functional issues in the system.
- Mutual independence in tester’s and developer’s work.
- Possible to design test cases as soon as specifications are complete.
2. What is statement coverage?
White box testing involves the use of a metric called statement coverage to ensure testing of every statement in the program at least once. It is calculated as:
Statement Coverage = No. of Statements Tested / Total no. of Statements
It helps by:
- Verification of code correctness.
- Determining the flow of control.
- Measuring code quality.
3. What do you mean by a bug life cycle?
A bug life cycle has the following phases:
- NEW or OPEN, when the bug is found by a tester.
- REJECTED, if the project manager finds the bug invalid.
- POSTPONED, if the bug is valid but not in the scope of the current release.
- DUPLICATE, if the tester knows a similar bug that has already been raised.
- IN-PROGRESS, when the bug is assigned to a developer.
- FIXED, when the developer has fixed the bug.
- CLOSED, if the tester retests the code and the bug has been resolved.
- RE-OPENED, if the test case fails again.
4. What is Agile testing?
Agile testing involves an iterative and incremental testing process for adaptability and customer satisfaction by rapid delivery of the product. The product is broken down into incremental builds which are delivered iteratively.
5. What is Monkey testing?
In monkey testing, the tester enters random input to check if it leads to a system crash. Monkey testing involves Smart Monkey and Dumb Monkey.
While a Smart Monkey is used to find stress by carrying out load testing and stress testing, its development is expensive.
Dumb monkeys, on the other hand, are for elementary testing. They help in finding the most severe bugs at low cost.