What is Use Case Testing? (Example)

What is 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.

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.

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

Use Case Testing: Example

Main Success Scenario Step Description
A:Actor
S:System
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.

Use Case Testing Video

Click here if the video is not accessible