SlideShare a Scribd company logo
2
Most read
3
Most read
12
Most read
Test Case
A test case is a set of conditions or variables under which a tester will
determine whether an application or software system is working correctly or
not.
Test cases are often referred to as test scripts, particularly when written.
Written test cases are usually collected into test suites.
The following testing items have close correlation with test cases.
Test Script is a detailed description of the test steps or transaction(s) to be
performed to validate the system or application under test. The test script
must contain the actual entries to be executed as well as the expected results.

Test Step is the lowest level of a test script that performs a specific operation
such as clicking a button or entering data in a text box. Test steps are created
for both manual and automated tests. Each test step must be followed by a
description of the ‘expected result’ of the test step, after it has been executed.
1
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
Test Case
Test Set is a collection of test scripts that are grouped for a specific purpose
(i.e. business process, function/feature).
Test Scenario is a high-level description of a business process or system
functionality that will be tested. Detailed information such as input data,
expected results, parameters, etc. will not be included in the test scenario, but
will rather be located in the test script.
Example: Check Login Functionality.
Test Data Set is a specific set of values for variables in the communication
space of a module, which are used in a test.
Test Procedures define the activities necessary to execute a test script or set of
scripts. Test procedures may contain information regarding the loading of data
and executables into the test system, directions regarding sign in procedures,
instructions regarding the handling of test results, and anything else required
to successfully conduct the test.
2
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
Test Case
Test Harness is a collection of software and test data configured to test a
program unit by running it under varying conditions and monitoring its
behavior and outputs. A test harness has two main parts:
1. Test execution engine
2. Test script repository.
Test harnesses should include the following capabilities:
 A standard way to specify setup (i.e., creating an artificial runtime
environment) and cleanup.
 A method for selecting individual tests to run, or all tests.
 A means of analyzing output for expected (or unexpected) results.
 A standardized form of failure reporting.
Test Script Repository is a library of reusable test scripts (organized by business
process); a location for storage of data.
3
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
Test Case
Test Case Template:

Types of Test Cases:
S# Test Case Type
Test Case Source
1 Requirement Based 1. BRS (Business Requirement Specification) Document
2. FRS (Functional Requirement Specification) Document
3. Other Requirement specifications
2

Design Based

1. HLD (High Level Design) Document i.e. Macro Designs
2. LLD (Low Level Design) Document i.e. Micro Designs
3. Other design artifacts

3
4
5

Code Based
Extreme
Extracted &
Randomized

Pseudo Code, Source Code etc.
Boundary Conditions, Error Guessing etc.
Existing Test Cases
4

Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
Test Case
Requirement and Design based test cases
1. Identify the basic cases that indicate program functionality.
2. Create a minimal set of tests to cover all inputs & outputs.
3. Breakdown complex cases into single cases.
4. Remove unnecessary or duplicate cases.
5. Review systematically and thoroughly.
6. Design based test cases supplement requirements based test cases.
Etc.

Code Based test cases
1. Identify test cases with that every statement in a code exercised at least once.
2. Every decision exercised over all outcomes.
Etc.

Extreme test cases
1. Looks for exceptional conditions, extremes, boundaries, and abnormalities.

Extracted and Randomized test cases
1.
2.

Extracted cases involved extracting samples of real data for the testing process.
Randomized cases involved using tools to generate potential data for the testing process.
5
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
Test Case
Positive Test Cases and Negative Test Cases:

Positive Testing = (Not showing error when not supposed to) + (Showing
error when supposed to) So if either of the situations in parentheses
happens you have a positive test in terms of its result - not what the test
was hoping to find. The application did what it was supposed to do.
Here user tends to put all positive values according to requirements.

Negative Testing = (Showing error when not supposed to) + (Not
showing error when supposed to)(Usually these situations crop up
during boundary testing or cause-effect testing.) Here if either of the
situations in parentheses happens you have a negative test in terms of
its result - again, not what the test was hoping to find. The application
did what it was not supposed to do. User tends to put negative values,
which may crash the application.
6
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
Test Case
For example in Registration Form, for Name field, user should be
allowed to enter only alphabets. Here for Positive Testing, tester will
enter only alphabets and application should run properly and should
accept only alphabets. For Negative Testing, in the same case user tries
to enter numbers, special characters and if the case is executed
successfully, negative testing is successful.

7
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
Test Case
Test Case Preparation checklist:
This is used to ensure Test cases have been prepared as per specifications. For all the test
responses the test case preparation review checklist test manager will assess the impact &
document it as an issue to concerned parties for resolution. This can be assessed using weekly
status reports or emails.
S No

Activity

1

Comments

Are the resources identified to implement test plan?

3

No

Is the approved Test Plan available?

2

Yes

Are the final copy of requirements and design documents etc. available?

4

Is domain knowledge being imparted to the team members who are working on
the application?
Have Test cases been developed considering all requirements?

5
6

Have all the positive and negative test cases been identified?

7

Have test case design techniques used to write test cases?
Have test cases been written for GUI/Hyperlink testing for Web application

8
9

Have test cases been written to check Date Integrity
8
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
Test Case
Test Case Development Process:
Identify all potential Test Cases needed to fully test the business and
technical requirements
Document Test Procedures
Document Test Data requirements
Prioritize test cases
Identify Test Automation Candidates
Automate designated test cases
Test Case Design Methods:
1. Boundary Value Analysis
2. Equivalence Partitioning
3. Error Guessing
Etc.

9
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
Test Case
Characteristics of good test cases:

• Simple and specific. Any one in the test team should be able to
execute the test cases without the author help.
• Clear, concise, and complete
• No assumptions in test case description, steps, expected result etc.
• Non-redundant
• Reasonable probability of catching an error
• Medium complexity
• Repeatable
• Test cases that have written with the help of test case design
methods
• Test cases that are easily identifiable with their names.
• Always list expected results
Etc.
10
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
Test Case
Test Case Guidelines:
– Developed to verify that specific requirements or design are satisfied
– Each component must be tested with at least two test cases: Positive and Negative
– Real data should be used to reality test the modules after successful test data is used

11
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
Test Case

12
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
User Acceptance Testing
References:
http://templateforfree.com/how-to-write-test-cases/

13
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker

More Related Content

PPTX
Best Practices for Test Case Writing
PPTX
What is-requirement-traceability-matrix-and-why-is-it-needed-
PPTX
Alpha and beta testing
PPT
Change management
DOCX
Pharmacy management system
PPT
Introduction to Software Project Management
ODP
White box ppt
PPT
Basic software-testing-concepts
Best Practices for Test Case Writing
What is-requirement-traceability-matrix-and-why-is-it-needed-
Alpha and beta testing
Change management
Pharmacy management system
Introduction to Software Project Management
White box ppt
Basic software-testing-concepts

What's hot (20)

PDF
Software testing methods, levels and types
PPTX
Types of testing
PPTX
White Box Testing
PDF
Software Testing Techniques: An Overview
PPT
Manual testing concepts course 1
PPTX
Introduction to Automation Testing
PPT
Manual testing ppt
PDF
What is Test Plan? Edureka
PPTX
Software testing
PPTX
UNIT TESTING PPT
PPTX
Software testing.ppt
PPT
Testing Metrics
PPS
Unit Testing
PPTX
Validation testing
PPT
Software Testing Fundamentals
PPTX
Software testing and process
PDF
INTEGRATION TESTING
PPTX
Software testing & Quality Assurance
PPTX
Unit testing
PPTX
Test Cases Vs Test Scenarios
Software testing methods, levels and types
Types of testing
White Box Testing
Software Testing Techniques: An Overview
Manual testing concepts course 1
Introduction to Automation Testing
Manual testing ppt
What is Test Plan? Edureka
Software testing
UNIT TESTING PPT
Software testing.ppt
Testing Metrics
Unit Testing
Validation testing
Software Testing Fundamentals
Software testing and process
INTEGRATION TESTING
Software testing & Quality Assurance
Unit testing
Test Cases Vs Test Scenarios
Ad

Viewers also liked (8)

XLS
7 Excel Control Template
PPTX
PCAOB Audit Alert #11: New Internal Control Testing Standards & Excel
PDF
Ecommerce Website Testing Checklist
PDF
Amazon search test case document
PPTX
Test Case Design
PPTX
Writing Test Cases 20110808
DOCX
Project audit & review checklist
PPTX
Writing Test Cases in Agile
7 Excel Control Template
PCAOB Audit Alert #11: New Internal Control Testing Standards & Excel
Ecommerce Website Testing Checklist
Amazon search test case document
Test Case Design
Writing Test Cases 20110808
Project audit & review checklist
Writing Test Cases in Agile
Ad

Similar to Test cases (20)

DOC
Testing
PPT
Test case development
PDF
L software testing
PDF
Whitepaper Test Case Design and Testing Techniques- Factors to Consider
PPTX
www.tutorialsbook.com presents Manual testing
PPT
Less01 1 introduction_module
PDF
Mt s11 test_design
DOCX
PPTX
1st module.....
DOCX
PPT
Software testing for biginners
PPTX
Software testing introduction
PPTX
Introduction to testing.
PPTX
Unit - II 19CS408T - Software Testing Notes
PPTX
Test case writing
PDF
manual-testing
PPTX
PPT
software testing
PPTX
Lecture9 10.pptx or software testing pptx
PPT
Testing Software Solutions
Testing
Test case development
L software testing
Whitepaper Test Case Design and Testing Techniques- Factors to Consider
www.tutorialsbook.com presents Manual testing
Less01 1 introduction_module
Mt s11 test_design
1st module.....
Software testing for biginners
Software testing introduction
Introduction to testing.
Unit - II 19CS408T - Software Testing Notes
Test case writing
manual-testing
software testing
Lecture9 10.pptx or software testing pptx
Testing Software Solutions

Recently uploaded (20)

PPTX
退学买新西兰毕业证(WelTec毕业证书)惠灵顿理工学院毕业证国外证书制作
DOCX
How to Become a Criminal Profiler or Behavioural Analyst.docx
PDF
esg-supply-chain-webinar-nov2018hkhkkh.pdf
PPTX
PMP (Project Management Professional) course prepares individuals
PPTX
_+✅+JANUARY+2025+MONTHLY+CA.pptx current affairs
PPT
APPROACH TO DEVELOPMENTALlllllllllllllllll
PDF
Sales and Distribution Managemnjnfijient.pdf
PPTX
Sports and Dance -lesson 3 powerpoint presentation
PPTX
ESD MODULE-5hdbdhbdbdbdbbdbdbbdndbdbdbdbbdbd
PPTX
Principles of Inheritance and variation class 12.pptx
PPTX
cse couse aefrfrqewrbqwrgbqgvq2w3vqbvq23rbgw3rnw345
DOCX
mcsp232projectguidelinesjan2023 (1).docx
PPTX
Your Guide to a Winning Interview Aug 2025.
PPTX
E-Commerce____Intermediate_Presentation.pptx
PDF
MCQ Practice CBT OL Official Language 1.pptx.pdf
PPTX
1-4 Chaptedjkfhkshdkfjhalksjdhfkjshdljkfhrs.pptx
PPTX
Overview Planner of Soft Skills in a single ppt
PDF
Blue-Modern-Elegant-Presentation (1).pdf
PPTX
Nervous_System_Drugs_PPT.pptxXXXXXXXXXXXXXXXXX
PDF
L-0018048598visual cloud book for PCa-pdf.pdf
退学买新西兰毕业证(WelTec毕业证书)惠灵顿理工学院毕业证国外证书制作
How to Become a Criminal Profiler or Behavioural Analyst.docx
esg-supply-chain-webinar-nov2018hkhkkh.pdf
PMP (Project Management Professional) course prepares individuals
_+✅+JANUARY+2025+MONTHLY+CA.pptx current affairs
APPROACH TO DEVELOPMENTALlllllllllllllllll
Sales and Distribution Managemnjnfijient.pdf
Sports and Dance -lesson 3 powerpoint presentation
ESD MODULE-5hdbdhbdbdbdbbdbdbbdndbdbdbdbbdbd
Principles of Inheritance and variation class 12.pptx
cse couse aefrfrqewrbqwrgbqgvq2w3vqbvq23rbgw3rnw345
mcsp232projectguidelinesjan2023 (1).docx
Your Guide to a Winning Interview Aug 2025.
E-Commerce____Intermediate_Presentation.pptx
MCQ Practice CBT OL Official Language 1.pptx.pdf
1-4 Chaptedjkfhkshdkfjhalksjdhfkjshdljkfhrs.pptx
Overview Planner of Soft Skills in a single ppt
Blue-Modern-Elegant-Presentation (1).pdf
Nervous_System_Drugs_PPT.pptxXXXXXXXXXXXXXXXXX
L-0018048598visual cloud book for PCa-pdf.pdf

Test cases

  • 1. Test Case A test case is a set of conditions or variables under which a tester will determine whether an application or software system is working correctly or not. Test cases are often referred to as test scripts, particularly when written. Written test cases are usually collected into test suites. The following testing items have close correlation with test cases. Test Script is a detailed description of the test steps or transaction(s) to be performed to validate the system or application under test. The test script must contain the actual entries to be executed as well as the expected results. Test Step is the lowest level of a test script that performs a specific operation such as clicking a button or entering data in a text box. Test steps are created for both manual and automated tests. Each test step must be followed by a description of the ‘expected result’ of the test step, after it has been executed. 1 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 2. Test Case Test Set is a collection of test scripts that are grouped for a specific purpose (i.e. business process, function/feature). Test Scenario is a high-level description of a business process or system functionality that will be tested. Detailed information such as input data, expected results, parameters, etc. will not be included in the test scenario, but will rather be located in the test script. Example: Check Login Functionality. Test Data Set is a specific set of values for variables in the communication space of a module, which are used in a test. Test Procedures define the activities necessary to execute a test script or set of scripts. Test procedures may contain information regarding the loading of data and executables into the test system, directions regarding sign in procedures, instructions regarding the handling of test results, and anything else required to successfully conduct the test. 2 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 3. Test Case Test Harness is a collection of software and test data configured to test a program unit by running it under varying conditions and monitoring its behavior and outputs. A test harness has two main parts: 1. Test execution engine 2. Test script repository. Test harnesses should include the following capabilities:  A standard way to specify setup (i.e., creating an artificial runtime environment) and cleanup.  A method for selecting individual tests to run, or all tests.  A means of analyzing output for expected (or unexpected) results.  A standardized form of failure reporting. Test Script Repository is a library of reusable test scripts (organized by business process); a location for storage of data. 3 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 4. Test Case Test Case Template: Types of Test Cases: S# Test Case Type Test Case Source 1 Requirement Based 1. BRS (Business Requirement Specification) Document 2. FRS (Functional Requirement Specification) Document 3. Other Requirement specifications 2 Design Based 1. HLD (High Level Design) Document i.e. Macro Designs 2. LLD (Low Level Design) Document i.e. Micro Designs 3. Other design artifacts 3 4 5 Code Based Extreme Extracted & Randomized Pseudo Code, Source Code etc. Boundary Conditions, Error Guessing etc. Existing Test Cases 4 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 5. Test Case Requirement and Design based test cases 1. Identify the basic cases that indicate program functionality. 2. Create a minimal set of tests to cover all inputs & outputs. 3. Breakdown complex cases into single cases. 4. Remove unnecessary or duplicate cases. 5. Review systematically and thoroughly. 6. Design based test cases supplement requirements based test cases. Etc. Code Based test cases 1. Identify test cases with that every statement in a code exercised at least once. 2. Every decision exercised over all outcomes. Etc. Extreme test cases 1. Looks for exceptional conditions, extremes, boundaries, and abnormalities. Extracted and Randomized test cases 1. 2. Extracted cases involved extracting samples of real data for the testing process. Randomized cases involved using tools to generate potential data for the testing process. 5 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 6. Test Case Positive Test Cases and Negative Test Cases: Positive Testing = (Not showing error when not supposed to) + (Showing error when supposed to) So if either of the situations in parentheses happens you have a positive test in terms of its result - not what the test was hoping to find. The application did what it was supposed to do. Here user tends to put all positive values according to requirements. Negative Testing = (Showing error when not supposed to) + (Not showing error when supposed to)(Usually these situations crop up during boundary testing or cause-effect testing.) Here if either of the situations in parentheses happens you have a negative test in terms of its result - again, not what the test was hoping to find. The application did what it was not supposed to do. User tends to put negative values, which may crash the application. 6 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 7. Test Case For example in Registration Form, for Name field, user should be allowed to enter only alphabets. Here for Positive Testing, tester will enter only alphabets and application should run properly and should accept only alphabets. For Negative Testing, in the same case user tries to enter numbers, special characters and if the case is executed successfully, negative testing is successful. 7 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 8. Test Case Test Case Preparation checklist: This is used to ensure Test cases have been prepared as per specifications. For all the test responses the test case preparation review checklist test manager will assess the impact & document it as an issue to concerned parties for resolution. This can be assessed using weekly status reports or emails. S No Activity 1 Comments Are the resources identified to implement test plan? 3 No Is the approved Test Plan available? 2 Yes Are the final copy of requirements and design documents etc. available? 4 Is domain knowledge being imparted to the team members who are working on the application? Have Test cases been developed considering all requirements? 5 6 Have all the positive and negative test cases been identified? 7 Have test case design techniques used to write test cases? Have test cases been written for GUI/Hyperlink testing for Web application 8 9 Have test cases been written to check Date Integrity 8 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 9. Test Case Test Case Development Process: Identify all potential Test Cases needed to fully test the business and technical requirements Document Test Procedures Document Test Data requirements Prioritize test cases Identify Test Automation Candidates Automate designated test cases Test Case Design Methods: 1. Boundary Value Analysis 2. Equivalence Partitioning 3. Error Guessing Etc. 9 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 10. Test Case Characteristics of good test cases: • Simple and specific. Any one in the test team should be able to execute the test cases without the author help. • Clear, concise, and complete • No assumptions in test case description, steps, expected result etc. • Non-redundant • Reasonable probability of catching an error • Medium complexity • Repeatable • Test cases that have written with the help of test case design methods • Test cases that are easily identifiable with their names. • Always list expected results Etc. 10 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 11. Test Case Test Case Guidelines: – Developed to verify that specific requirements or design are satisfied – Each component must be tested with at least two test cases: Positive and Negative – Real data should be used to reality test the modules after successful test data is used 11 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 12. Test Case 12 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 13. User Acceptance Testing References: http://templateforfree.com/how-to-write-test-cases/ 13 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker