SlideShare a Scribd company logo
3
Most read
6
Most read
7
Most read
Test Case:-​ ​A test case is a set of conditions under which a tester will determine whether an
application, software system or one of its features is working as it was originally established for
it to do.
-------------------------------------------------------------------------------------------------------
Why do we write test cases:-
There are a few reasons why you need to design and write out your test cases:
● Tracking your test coverage:
Let’s consider your system under test as a Disneyland park, which you want to explore. Of
course, you can just buy tickets and explore the park as you wish. While it’s fun to do that, there
are great chances that you will miss interesting places. In this case, all you need is a map of the
park. Similar in your project, you need a map to know what you need to test, what you have
tested, what you don’t need to test.
● Maintain consistency:
Let’s say you can brainstorm 100 test cases to test your system, but you don’t write them out.
You memorize them. Unless you are a genius, there’s no way to remember all these test cases
and things entailed such input data, step to perform the test, where to look at the result, what’s
expected. If you have a written test cases, you don’t have to rely on your memory to do this test
to maintain consistency.
● Reusability:
Now you are the only tester in the project. What if your manager added another tester in your
project and your manager wanted him to perform the same test as you did. What you simply
need to do is to give him your well-written test cases and he can follow these exact tests to
perform the test. It’s as simple as that.
● Easy to automate:
Also, if you are planning to do automated test in your project, these detailed test cases are
perfect inputs for your test automation.
---------------------------------------------------------------------------------------------------
When we should start writing Test Case:-
When SRS is prepared by the business analyst he will send the drafts to testers and developers
for review. After reviewing testers and developers will send their comments and after analysing
them the SRS is modified. once the SRS is freezed TL prepares the TEST PLAN and after that
testers start writing test cases. i..e testers start writing test cases when the requirement phase
itself.
It will depends...But mostly..When the requirement specifications are completed. We can start
writing Test Cases in parallel with Design phase itself.(but make sure u understand the
requirements correctly.
----------------------------------------------------------------------------------------------------
Test case Types:-
There are two types of Test case:- ​1.​ Formal Test cases
2. ​Informal Test cases
Formal test cases:- ​A formal test case is where a test case is designed with a certain standard
format so that it will be user-friendly to understand and all the possible tests will be covered.
● Every requirement will have the two types of testing, Positive testing and Negative
testing. These two will play a vital role in completing a testing requirement satisfactorily.
● As a tester we need to track between the requirements and the test case where this
process is called a Traceability matrix.
● A formal test case will have a known input along with an expected output.
● It is also common that the known input should test a pre-condition and the expected
output should test the post condition.
Informal test cases :- ​An informal test case is a test case that is not at all designed during the
execution of the testing but the results and activities will be made as a report once the process
is finished. In these informal test cases the tester thinking level is complex and analytical. They
will test it with a specified number of possibilities to test a specific scenario. There are no
restrictions for testing except the timing given for testing. We can say an informal test case will
be totally different from the formal test case format.
------------------------------------------------------------------------------------------------------
Positive Test case:- ​Checking for valid values only.
Negative Test Case:-​ Checking for invalid values.
------------------------------------------------------------------------------------------------------
what documents need to write test case:-
● FRS (Functional Requirement Specification)
● SRS (System Requirement Specification)
● You can take the help of ​Use Case.
● Test scenario
------------------------------------------------------------------------------------------------------
Use Case:- ​A ​use case is a software and system engineering term that describes how a user
uses a system to accomplish a particular goal. Use case diagram is given below:-
Create a use case index​:-
It will serve as a master inventory to help write effective use cases for the requirements phase of
the project.
------------------------------------------------------------------------------------------------------
Test Scenario:- ​Test scenario is created from Use case, FRS, BRS.
​Test Scenarios are just a flow of the application.
e.g. 1. Filling up all the fields on the form --> click on Ok button --> Next screen
1. Filling up all the fields on the form --> click on Cancel button --> All the will be erased.
------------------------------------------------------------------------------------------------------
Difference between Test cases and Test scenario​:- A ​Test Scenario is what to be
tested, and a ​Test Case is how to be tested.
------------------------------------------------------------------------------------------------------
Question:- ​Write the test case of Pen?
Answer​:-
1. Verify the color of the pen.
2. Check ​GUI testing​ means logo of the pen maker.
3. Check ​Usability testing​ means grip of the pen.
4. Verify whether the pen is ballpoint pen or ink pen.
5. Check ​Integration Testing​ means cap of the pen should easily fit beside the body of the pen.
6. Check pen should be continuously in writing mode.
Some Functional test cases for pen​:
1. Check whether it writes on paper or not.
2. Verify whether the ink on the paper is belongs with the similar color as what we see in the refill.
Performance and load test cases for pen​:
1. Verify how it performs when writing on wet paper.
2. Verify how it performs when writing on rough paper.
3. Verify how it performs when writing on hand because we occasionally do that
4. Check load test means when pen is pressed very hard against the tough surface then pen refill should
not come out of the pen.
Negative test cases about pen​:
1. Verify whether ink is available or not.
2. Check if ink is available, than the pen does not write on the paper.
3. Verify by bend the refill at multiple ends and then try to write with it.
4. Verify by dip the pen always into the water and then write it again.
5. Check whether it write on leaves or not.
Additional test cases for pen​:
1. Check ​usability testing​ means test by writing on a section of paper, Examine if you can write
smoothly. It should not be writing and stopping among (with) breaks.
2. Check ​capability or reliability testing​ means Test the writing capacity (the amount of writing that is
possible from a single refill) of the pen.
3. Check ​Robustness testing​ means Test wherever you can carry the pen in to your shirt and pent pocket
using its cap. The cap distension should be solid enough to grip your pocket.
4. Check ​Compatibility testing​ means Test by writing on distinct types of surfaces like: rough paper,
packing material, glass, leather, cotton, wood, plastic, metals like aluminum or iron, polythene sheet etc.
--------------------------------------------------------------------------------------------------------
Question:- ​Test case and Test scenario of a log-in Button
Answer​:-
Test Scenario ID Test Scenario / Test Objective No. Of Test Cases
TS_001 User is Successfully able to log-in in
the Student Panel
7
TS_002 User is not able to log-in in the
Student Panel
14
Test Case is given below:-
Test Case, Use Case and Test Scenario
Thank you for your precious time.
For any Feedback or Query, kindly contact on (lokeshapj@gmail.com)

More Related Content

PPT
Test case development
PPTX
Software testing
PPT
Test Management introduction
PDF
What is Regression Testing? | Edureka
PPTX
functional testing
PPS
Test Process
PPTX
Test case techniques
PDF
What are Software Testing Methodologies | Software Testing Techniques | Edureka
Test case development
Software testing
Test Management introduction
What is Regression Testing? | Edureka
functional testing
Test Process
Test case techniques
What are Software Testing Methodologies | Software Testing Techniques | Edureka

What's hot (20)

PPTX
Best Practices for Test Case Writing
PDF
Test cases
PPTX
Automation Testing
PPTX
Writing Test Cases in Agile
PPTX
Writing Test Cases 20110808
PDF
Chapter 4 - Defect Management
PPT
Testing in Agile Projects
PPS
Testing techniques
PPTX
Sanity testing and smoke testing
PPTX
Test Case Design
PPTX
Istqb foundation level day 1
PPT
TESTING LIFE CYCLE PPT
PPTX
SOFTWARE TESTING
PPT
Agile Testing Process
PPTX
Exploratory Testing
PPTX
Chapter 4 - Quality Characteristics for Technical Testing
PPT
Automated Testing with Agile
DOC
Manual Testing Notes
PPS
Test Cases Maintaining & Documenting
PDF
Software Testing Life Cycle (STLC) | Software Testing Tutorial | Edureka
Best Practices for Test Case Writing
Test cases
Automation Testing
Writing Test Cases in Agile
Writing Test Cases 20110808
Chapter 4 - Defect Management
Testing in Agile Projects
Testing techniques
Sanity testing and smoke testing
Test Case Design
Istqb foundation level day 1
TESTING LIFE CYCLE PPT
SOFTWARE TESTING
Agile Testing Process
Exploratory Testing
Chapter 4 - Quality Characteristics for Technical Testing
Automated Testing with Agile
Manual Testing Notes
Test Cases Maintaining & Documenting
Software Testing Life Cycle (STLC) | Software Testing Tutorial | Edureka
Ad

Viewers also liked (16)

DOCX
Bugzilla
PPT
Mattias Ratert - Incremental Scenario Testing
PPT
Use cases
PDF
Scenario Testing and Sensitivity Analysis for 3-D Kinematic Models and Geophy...
PDF
Tempest scenariotests 20140512
PPTX
Writing good test plan and writing good tests
PPT
Role+Of+Testing+In+Sdlc
PDF
Embedded software development using BDD
PDF
Requirements validation techniques (rv ts) practiced in industry studies of...
PPT
Software requirement verification & validation
PDF
User Scenario based UI testing with KIF
PPTX
RAD Model & Prototyping Of Software Engineering
PDF
Suman saha data architect
DOC
Resume (1)
DOCX
Medikonda_CRM_Architect
DOCX
Dhamotharan dba
Bugzilla
Mattias Ratert - Incremental Scenario Testing
Use cases
Scenario Testing and Sensitivity Analysis for 3-D Kinematic Models and Geophy...
Tempest scenariotests 20140512
Writing good test plan and writing good tests
Role+Of+Testing+In+Sdlc
Embedded software development using BDD
Requirements validation techniques (rv ts) practiced in industry studies of...
Software requirement verification & validation
User Scenario based UI testing with KIF
RAD Model & Prototyping Of Software Engineering
Suman saha data architect
Resume (1)
Medikonda_CRM_Architect
Dhamotharan dba
Ad

Similar to Test Case, Use Case and Test Scenario (20)

PPTX
How to write effective test cases present.pptx
PPTX
Test case writing
PPTX
So you think you can write a test case
PDF
Creating Test Scenarios Demystified_ Your Ultimate How-To Guide.pdf
PPTX
Test cases for effective testing - part 1
PPTX
How can Test Cases benefit a tester .pptx
PPTX
Test Cases Vs Test Scenarios
PPTX
Generating Test Cases
PPTX
Test cases
PDF
Test process - Important Concepts
PDF
How To Write A Test Case In Software Testing | Edureka
PPT
Software engineering Testing technique,test case,test suit design
PDF
Testing artifacts test cases
PPTX
Lecture9 10.pptx or software testing pptx
PPTX
Writing Test Cases From User Stories And Acceptance Criteria
PDF
AcceptCriteria_TestCases_TestScripts
PPTX
B4 u solution_writing test cases from user stories and acceptance criteria
PPTX
Writing test cases from user stories and acceptance criteria
PPT
Basics-Test Case Writing
PPTX
Test design techniques
How to write effective test cases present.pptx
Test case writing
So you think you can write a test case
Creating Test Scenarios Demystified_ Your Ultimate How-To Guide.pdf
Test cases for effective testing - part 1
How can Test Cases benefit a tester .pptx
Test Cases Vs Test Scenarios
Generating Test Cases
Test cases
Test process - Important Concepts
How To Write A Test Case In Software Testing | Edureka
Software engineering Testing technique,test case,test suit design
Testing artifacts test cases
Lecture9 10.pptx or software testing pptx
Writing Test Cases From User Stories And Acceptance Criteria
AcceptCriteria_TestCases_TestScripts
B4 u solution_writing test cases from user stories and acceptance criteria
Writing test cases from user stories and acceptance criteria
Basics-Test Case Writing
Test design techniques

Recently uploaded (20)

PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
AI in Product Development-omnex systems
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
System and Network Administraation Chapter 3
PPTX
Essential Infomation Tech presentation.pptx
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Digital Strategies for Manufacturing Companies
PPTX
Odoo POS Development Services by CandidRoot Solutions
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Upgrade and Innovation Strategies for SAP ERP Customers
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Which alternative to Crystal Reports is best for small or large businesses.pdf
Design an Analysis of Algorithms I-SECS-1021-03
VVF-Customer-Presentation2025-Ver1.9.pptx
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
AI in Product Development-omnex systems
How to Migrate SBCGlobal Email to Yahoo Easily
wealthsignaloriginal-com-DS-text-... (1).pdf
System and Network Administraation Chapter 3
Essential Infomation Tech presentation.pptx
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Odoo Companies in India – Driving Business Transformation.pdf
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Digital Strategies for Manufacturing Companies
Odoo POS Development Services by CandidRoot Solutions

Test Case, Use Case and Test Scenario

  • 1. Test Case:-​ ​A test case is a set of conditions under which a tester will determine whether an application, software system or one of its features is working as it was originally established for it to do. ------------------------------------------------------------------------------------------------------- Why do we write test cases:- There are a few reasons why you need to design and write out your test cases: ● Tracking your test coverage: Let’s consider your system under test as a Disneyland park, which you want to explore. Of course, you can just buy tickets and explore the park as you wish. While it’s fun to do that, there are great chances that you will miss interesting places. In this case, all you need is a map of the park. Similar in your project, you need a map to know what you need to test, what you have tested, what you don’t need to test. ● Maintain consistency: Let’s say you can brainstorm 100 test cases to test your system, but you don’t write them out. You memorize them. Unless you are a genius, there’s no way to remember all these test cases and things entailed such input data, step to perform the test, where to look at the result, what’s expected. If you have a written test cases, you don’t have to rely on your memory to do this test to maintain consistency. ● Reusability: Now you are the only tester in the project. What if your manager added another tester in your project and your manager wanted him to perform the same test as you did. What you simply need to do is to give him your well-written test cases and he can follow these exact tests to perform the test. It’s as simple as that. ● Easy to automate: Also, if you are planning to do automated test in your project, these detailed test cases are perfect inputs for your test automation. --------------------------------------------------------------------------------------------------- When we should start writing Test Case:- When SRS is prepared by the business analyst he will send the drafts to testers and developers for review. After reviewing testers and developers will send their comments and after analysing them the SRS is modified. once the SRS is freezed TL prepares the TEST PLAN and after that testers start writing test cases. i..e testers start writing test cases when the requirement phase itself.
  • 2. It will depends...But mostly..When the requirement specifications are completed. We can start writing Test Cases in parallel with Design phase itself.(but make sure u understand the requirements correctly. ---------------------------------------------------------------------------------------------------- Test case Types:- There are two types of Test case:- ​1.​ Formal Test cases 2. ​Informal Test cases Formal test cases:- ​A formal test case is where a test case is designed with a certain standard format so that it will be user-friendly to understand and all the possible tests will be covered. ● Every requirement will have the two types of testing, Positive testing and Negative testing. These two will play a vital role in completing a testing requirement satisfactorily. ● As a tester we need to track between the requirements and the test case where this process is called a Traceability matrix. ● A formal test case will have a known input along with an expected output. ● It is also common that the known input should test a pre-condition and the expected output should test the post condition. Informal test cases :- ​An informal test case is a test case that is not at all designed during the execution of the testing but the results and activities will be made as a report once the process is finished. In these informal test cases the tester thinking level is complex and analytical. They will test it with a specified number of possibilities to test a specific scenario. There are no restrictions for testing except the timing given for testing. We can say an informal test case will be totally different from the formal test case format. ------------------------------------------------------------------------------------------------------ Positive Test case:- ​Checking for valid values only. Negative Test Case:-​ Checking for invalid values. ------------------------------------------------------------------------------------------------------ what documents need to write test case:- ● FRS (Functional Requirement Specification) ● SRS (System Requirement Specification) ● You can take the help of ​Use Case. ● Test scenario ------------------------------------------------------------------------------------------------------ Use Case:- ​A ​use case is a software and system engineering term that describes how a user uses a system to accomplish a particular goal. Use case diagram is given below:-
  • 3. Create a use case index​:- It will serve as a master inventory to help write effective use cases for the requirements phase of the project. ------------------------------------------------------------------------------------------------------ Test Scenario:- ​Test scenario is created from Use case, FRS, BRS. ​Test Scenarios are just a flow of the application. e.g. 1. Filling up all the fields on the form --> click on Ok button --> Next screen 1. Filling up all the fields on the form --> click on Cancel button --> All the will be erased. ------------------------------------------------------------------------------------------------------ Difference between Test cases and Test scenario​:- A ​Test Scenario is what to be tested, and a ​Test Case is how to be tested. ------------------------------------------------------------------------------------------------------ Question:- ​Write the test case of Pen?
  • 4. Answer​:- 1. Verify the color of the pen. 2. Check ​GUI testing​ means logo of the pen maker. 3. Check ​Usability testing​ means grip of the pen. 4. Verify whether the pen is ballpoint pen or ink pen. 5. Check ​Integration Testing​ means cap of the pen should easily fit beside the body of the pen. 6. Check pen should be continuously in writing mode. Some Functional test cases for pen​: 1. Check whether it writes on paper or not. 2. Verify whether the ink on the paper is belongs with the similar color as what we see in the refill. Performance and load test cases for pen​: 1. Verify how it performs when writing on wet paper. 2. Verify how it performs when writing on rough paper. 3. Verify how it performs when writing on hand because we occasionally do that 4. Check load test means when pen is pressed very hard against the tough surface then pen refill should not come out of the pen. Negative test cases about pen​: 1. Verify whether ink is available or not. 2. Check if ink is available, than the pen does not write on the paper. 3. Verify by bend the refill at multiple ends and then try to write with it. 4. Verify by dip the pen always into the water and then write it again. 5. Check whether it write on leaves or not. Additional test cases for pen​: 1. Check ​usability testing​ means test by writing on a section of paper, Examine if you can write smoothly. It should not be writing and stopping among (with) breaks.
  • 5. 2. Check ​capability or reliability testing​ means Test the writing capacity (the amount of writing that is possible from a single refill) of the pen. 3. Check ​Robustness testing​ means Test wherever you can carry the pen in to your shirt and pent pocket using its cap. The cap distension should be solid enough to grip your pocket. 4. Check ​Compatibility testing​ means Test by writing on distinct types of surfaces like: rough paper, packing material, glass, leather, cotton, wood, plastic, metals like aluminum or iron, polythene sheet etc. -------------------------------------------------------------------------------------------------------- Question:- ​Test case and Test scenario of a log-in Button Answer​:- Test Scenario ID Test Scenario / Test Objective No. Of Test Cases TS_001 User is Successfully able to log-in in the Student Panel 7 TS_002 User is not able to log-in in the Student Panel 14 Test Case is given below:-
  • 7. Thank you for your precious time. For any Feedback or Query, kindly contact on (lokeshapj@gmail.com)