In the last session, We had discussed about Software Testing Terms and there were a lots of Terms that we listed out, We are going to talk about one of the Testing Terms and that is Test Scenarios.
Test Scenario is made up of 2 words.
Test and Scenario.
First of all we should know what is a Scenario.
Scenario is an English word which simply means “a description of possible events”.
When we do Software Testing, then We generally test the functionality of a Software or you say, we test features of a Software, So before doing testing for the features, we need to identify the features to be tested and we have to describe them like a scenario and because we are writing these scenarios for testing purpose, We call them Test Scenarios.
So, We can say Test Scenario is “a description of possible functionality” in a Product.
We can call it “Test Condition” or “Test Possibility” or “Test Functionality”
But the most popular word is “Test Scenario”.
Definition – Test Scenarios are a one liner statement and a very high level documentation of a functionality or a requirement which describes that what to test in a particular functionality or requirement.
Test Scenarios are derived from Requirement Document or from User Story. Requirement Document could be a Functional Requirement Document or Business Requirement Document.
We have to follow some steps to write Test Scenarios
Let’s take an example of a Project, where developers are building or developing a calculator. A Calculator will have some functionalities like Addition, Subtraction, Multiplication and Division.
So, We can say that we can have 4 or more than 4 test Scenarios, because Calculator is having 4 functionalities or features.
Let’s see the example of test scenarios for Calculator.
Requirement | S. No | Test Scenario |
Addition | 1 | Add 2 Numbers |
2 | Add 3 Numbers | |
3 | Add a positive and a negative number | |
Subtraction | 4 | Subtract a small number from a big number |
5 | Subtract a big number from a small number | |
6 | Subtract a positive and a negative number | |
Multiplication | 7 | Multiply a positive number and a negative number |
8 | Multiply two positive numbers | |
9 | Multiply two negative numbers | |
Division | 10 | Divide an even number from 2 |
11 | Divide an odd number from 2 |
Let’s see 1 more example where we are supposed to test an eCommerce Application and we need to write Test Scenarios for the features that we should be testing in that. So, what could be the features or functionalities in an eCommerce Application.
Here are some List of Features, that we need to test in an eCommerce Functionality
Now, If we have to write Test Scenarios for the above Functionality, then we can write in below manner.
Functionality | Test Scenario |
Create account or Register Customer | Test the Create Account Functionality with email ID and Mobile No. |
Login | Test Login functionality for valid and invalid credentials |
Search Product | Test the search functionality and ensure that products are correctly displayed based on the user’s search criteria. |
Browse Product | Test the browse functionality and ensure that products are correctly displayed. |
Product List Page (PLP) | Test the PLP Page with Search and Browse Functionality |
Product Details Page (PDP) | Verify that the product description and pricing information are accurate and displayed correctly. |
Add to Cart Functionality | Verify that add-to-cart and remove-from-cart functionality works fine. |
Shopping Cart or Shopping Bag Functionality | Verify that Shopping Cart is getting updated correctly after adding the product to cart and after removing the product from cart. |
Checkout Page | Test the checkout process, if we are able to enter billing and shipping information. Are we able to do payment processing. |
Order Confirmation Page | Verify that the order confirmation page is displayed and contains all the necessary order details. |
Emails – Order Confirmation Email and Cancellation Emails | Test the email notifications and ensure that users receive confirmation emails for their orders. |
Order Cancellation Functionality | Validate that the user is able to Cancel the Order online within a limited time period |
Order Returns Functionality | Validate that the user is able to Returnthe Order online after the shipment of the Order |
Refunds Functionality | Validate the Refunds for Return and Cancel Functionality |
We have discussed below topics in this session
Question for the session is, Write Test Scenarios for Online Banking Applications
Objects, Classes and Constructor in Javascript Classes and Objects A class in any programming language…
We will start from object oriented programming basics like What are different concepts in Object…
Why we can not over ride a Constructor This is a very important question, that,…
What is Arrow Function In the last session, We had discussed about Anonymous Function. Anonymous…
What is Anonymous Function Anonymous Function is a type of function which has no name…
What is Map, Reduce and Filter Map Filter and Reduce are higher order methods for…