Week 8 & 9 Flashcards
In a Use Case we describe?
How a system will respond to a given scenario?
Use case is?
User-oriented
What does user-oriented mean?
We specify the actions done by the user
The actors see in a system
What SW testing level is a use case testing?
Unit testing
What are the 2 main steps when writing testing for use cases?
- Write test cases for normal flow
2. Write exceptions test cases
Sunny day use cases?
Primarily cases that are most likely to happen, where everything goes well (normal flow)
Rainy day use cases?
Edge cases
Take priority after sunny day use cases
White Box testing should cover?
Statement coverage
Control flow testing
Path & Basis path coverage
Branch coverage
What is Statement Coverage?
Execution of all executable statements in the source code atleast once
Which SW testing technique is statement coverage?
White box testing technique
Why use Statement Coverage?
To calculate the number of source code statements which can be executed
Statement Coverage formula?
(# of executed statements/total # of statements) * 100
What is covered by Statement Coverage?
Unused statements
Unused branches
Dead code
What is NOT covered by Statement Coverage?
Missing statements in the source code
How can we identify missing code statements?
Control Flow Coverage
Cons of Statement Coverage?
Expensive in time and money required
Doesn’t reveal missing code or statements
Pros of Statement Coverage?
Identifies unused code
Identifies unused branches
Identifies dead code