Professional Documents
Culture Documents
Testing
Object-oriented systems are built out of
Chapter 8
two or more interrelated objects
Determining the correctness of O-O
systems requires testing the methods
Testing that change or communicate the state of
an object
Testing methods in an object-oriented
system is similar to testing subprograms
in process-oriented systems
1
Test Oracle Test Cases
A test case is a set of inputs to the
A test oracle is the set of predicted system
results for a set of tests, and is used to Successfully testing a system hinges on
determine the success of testing selecting representative test cases
Test oracles are extremely difficult to Poorly chosen test cases may fail to
create and are ideally created from the illuminate the faults in a system
requirements specification In most systems exhaustive testing is
impossible, so a white box or black box
testing strategy is typically selected
2
System Testing Testing Steps
Determine what the test is supposed to
The goal is to ensure that the system measure
actually does what the customer Decide how to carry out the tests
expects it to do
Develop the test cases
Testing is carried out by customers Determine the expected results of each
mimicking real world activities test (test oracle)
Customers should also intentionally Execute the tests
enter erroneous values to determine the Compare results to the test oracle
system behavior in those instances
3
Suggested Individual/Class
Activity
Discuss the following system failures:
TestingEX.doc