Test Scenarios vs Test Cases
Test Scenario:
An item of a component or System that could be verified by one or more Test Cases. It is also called as Test Condition.
Test Case:
Execution preconditions & post-conditions, input data, expected result, developed for a particular test condition in order to verify compliance with a specific requirement.
Example for Test Scenarios and Test Cases
We have different Types of Test Requirements, Example,
Functional Test Requirement
Performance Test Requirement
Usability Test Requirement etc….
I am taking Functional Test Requirement,
Functional Test Requirement: Login to Application using valid input
Test Scenarios
Test Scenario 1: Login to Application using valid Username and Password (Positive scenario)
Test Scenario 2: Invalid Login attempt (Negative Scenario)
Test Cases
Test Scenario 1: Login to Application using valid Username and Password (Positive scenario)
Test Case: Login to Application with valid Username and Valid Password
Test Data:
User Name = admin
Password = admin@123
———————————————
Test Scenario 2: Invalid Login attempt (Negative Scenario)
Test Case 1: Login to Application using Valid Username and Invalid Password
Test Data:
User Name = admin
Password = abcd123
Test Case 2: Login to Application using Invalid Username and Valid Password
Test Data:
User Name = Hyderabad
Password = admin@123
Test Case 3: Login to Application using Invalid Username and Invalid Password
Test Data:
User Name = Hyderabad
Password = xyz1234
etc….
Note:
One Test Scenario may have one or more Test Cases, usually single Test Case is enough for Positive Test Scenarios, but multiple Test cases are required to cover Negative Test Scenarios.
In this document I wrote just Test Case names only, you write Test cases with all required fields, Test Case Template may vary from one company to another but purpose is same,
Regular fields in Test Cases,
Test Case ID:
Test Case Name / Description:
Precondition:
Post Condition:
Steps to Execute:
Expected Result:
Test Result:
Login Page URL: www.gcrit.com/build3/admin/
Username: admin
Password: admin@123
Follow me on social media: