What is Test Scenario
Test Scenario: It consists of 2 words ‘Test’ i.e. to check something and ‘Scenario’ i.e. a given condition, therefore it is defined as any functionality that can be tested. It is also known as ‘Test Condition’. As a Software Tester, we are expected to think out of the box, and figure out some real-world scenarios of the Application Under Test (AUT).
Why to create Test Scenarios
Test Scenarios are the very essential part of Software Testing, they are created in order to ensure the following –
- The Test Coverage is considered as completed when Test Scenarios are created.
- It is critical in order to understand an Application thoroughly.
- With the help of Test Scenarios, we can quickly determine the testing work effort required.
- It helps in creating a proposal for Clients,
- Also, to organize the workforce within the Project.
How to write Test Scenarios
As a Software Tester, we should follows the below approaches in order to create Test Scenarios –
- Go through the BRD (Business Requirement Document), FRS (Functional Requirement Specifications) completely, also refer the previously used use cases of the Application.
- For each requirement, figure out the possible User Actions; similarly for other requirements as well.
- After going through the Requirement Document, and the Analysis work, List down all the scenarios that verify each feature of the Application.
- Now, create a Requirement Traceability Matrix (RTM) to ensure that each requirement is covered by at least one Test Scenario.
- Those created Test Scenarios should be reviewed by the Team Lead/ Peers.
Practical Example# 1: Test Scenario for IRCTC login
Test Scenario# 1: login functionality
Specific Test Cases for this Test Scenario would be as follows –
- Check the Application behavior when a valid User Name, valid Password and correct captcha is entered.
- Check the Application behavior when an Invalid User Name, valid Password and correct captcha is entered.
- Check the Application behavior when a valid User Name, Invalid Password and correct captcha is entered.
- Check the Application behavior when a valid User Name, valid Password and Incorrect captcha is entered.
- Check the Application behavior when a valid User Name, valid Password and correct captcha is entered.
- Verify if the ‘Forgot User ID?’ link is working, as expected.
- Verify if the ‘Forgot Password’ link is working, as expected.
- Check if the User is able to check the ‘Login & Booking with OTP’ button.