Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.


+13 votes

Big differences between State-based, Integration, and Control based testing?

asked in CSC305 Fall 2019 by (8 points)

1 Answer

+4 votes

State-based: defines a set of abstract states that a software unit (object) can take and tests the unit’s behavior by comparing its actual states to the expected states

Integration: Ensures that all components work together.

Control Based:
- Statement coverage: Each statement executed at least once by some
test case
- Edge coverage: Every edge (branch) of the control flow is traversed
at least once by some test case
- Condition coverage: Every condition takes TRUE and FALSE outcomes at
least once in some test case
- Path coverage: Finds the number of distinct paths through the program
to be traversed at least once

answered by (8 points)

This is found on slide 14 of Day12_Testing