What to test and How to test?

Code Coverage

A measure used to display the degree in which the source code of a program is tested by a test set.

Good test coverage

    Test code coverage

        It will create additional test cases to increase coverage and it also helps to find areas of a program not exercised by a set of test cases.

        It also help in determining a quantitative measure of code coverage, which is indirectly measure the quality of the application or product.

Fault injection

-->Exhaust all outcomes of code decision.

-->Error handling

-->Stress testing

-->Fuzzing

Example:

Rule: User must input number between 2 & 7

Action: User input fault injection value 9

Output: Error condition

Test coverage

It measures the amount of testing performed by a set of tests.Whenever we can count test items and can tell whether or not each of those items has been tested.Then we can measure this known as test coverage.

coverage = (No of coverage items executed / Total number of coverage items) x 100

Oracle (Test pass or fail?)

-->A True Oracle

-->Heuristic Oracle

-->Sampling Oracle

-->Consistent Oracle

Post a Comment

Previous Post Next Post