Before we Learn What Use Case Testing is, let’s understand
What is Use Case in Testing?
A Use Case in Testing is a brief description of a particular use of the software application by an actor or user. Use cases are made on the basis of user actions and the response of the software application to those user actions. It is widely used in developing test cases at system or acceptance level.
Use Case Testing
Use Case Testing is a software testing technique that helps to identify test cases that cover entire system on a transaction by transaction basis from start to end. Test cases are the interactions between users and software application. Use case testing helps to identify gaps in software application that might not be found by testing individual software components.
How to do Use Case Testing: Example
In a use-case, an actor is represented by “A” and system by “S”. We create Use for a login functionality of a Web Application as shown below
|Main Success Scenario||Step||Description|
|1||A: Enter Agent Name & Password|
|2||S: Validate Password|
|3||S: Allow Account Access|
|Extensions||2a||Password not valid
S: Display Message and ask for re-try 4 times
|2b||Password not valid 4 times
S: Close Application
- Consider the first step of an end to end scenario for a login functionality for our web application where the Actor enters email and password.
- In the next step, the system will validate the password
- Next, if the password is correct, the access will be granted
- There can be an extension of this use case. In case password is not valid system will display a message and ask for re-try four times
- If Password, not valid four times system will ban the IP address.
Here we will test the success scenario and one case of each extension.
This is USE-Case testing in Software Engineering
Click here if the video is not accessible