Deck 24: Testing Object- Oriented Applications

Full screen (f)
exit full mode
Question
Describe the how test cases are derived from behavior models to facilitate interclass testing?
Use Space or
up arrow
down arrow
to flip the card.
Question
Describe three partitioning strategies that can be used when performing class level testing for OO systems.
Question
What is scenario-based testing?
Question
How does unit testing differ for object-oriented testing as compared to conventional software unit testing?
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/4
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 24: Testing Object- Oriented Applications
1
Describe the how test cases are derived from behavior models to facilitate interclass testing?
-Test cases must cover all states in the state transition diagram
-Breadth first traversal of the state model can be used (test one transition at a time and only make use of previously tested transitions when testing a new transition)
-Test cases can also be derived to ensure that all behaviors for the class have been adequately exercised
Final Exam Question
2
Describe three partitioning strategies that can be used when performing class level testing for OO systems.
State-based partitioning - tests designed so that operations that cause state changes are tested separately from those that do not
Attribute-based partitioning - for each class attribute,operations are classified according to those that use the attribute,those that modify it,and those that do not use or modify the attribute
Category-based partitioning - operations are categorized according to the function performed: initialization,computation,query,or termination
3
What is scenario-based testing?
The user tasks described in the use-cases are used to construct the test cases.It is used to uncover errors that occur when actors interact with the software (focus is on user behavior,not product behavior).Generally it is better to spend more time reviewing the use cases as they are created than spending more time on testing.
4
How does unit testing differ for object-oriented testing as compared to conventional software unit testing?
Unlock Deck
Unlock for access to all 4 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 4 flashcards in this deck.