What is Use Case Testing?
Use Case Testing Technique helps us to identify test cases that cover the entire system, on a transaction by transaction basis from the end to end scenario. Use cases are the functional black box testing which defined in terms of the actor, describing what the actor does and what the actor sees / get rather than what inputs the system expects and what the system’s outputs.
It is a description of a particular use of the system by an actor or user. Each use case of the system describes the interactions of the actor has with the system in order to achieve a specific task
Use case testing extensively used in developing tests at system or acceptance level.
It often use the language and terms of the business rather than technical terms, especially when the actor is a business user
Use cases can expose integration defects, caused by the incorrect interaction between different components
It capture the interactions between ‘actors’ and the ‘system’
Example:
The Below ATM transaction machne clearly shows the interaction between users and possible actions to make use case testing scenario
A = Actor
S = System
Process | Steps | Interactions by Actor & system | Description |
Success | 1 | A | Insert ATM card |
Success | 2 | S | Read/Validate card and ask PIN |
Success | 3 | A | Enter PIN |
Success | 4 | S | Validate PIN |
Success | 5 | S | Allow access to account |
.If system fails to read card or card is not valid then it extends the following process
Step 2 If card is not valid then display error message card is not valid and reject card
Step 4 If wrong PIN entered then display error message enter correct PIN
If step 4 process repeated 3 times then block ATM card