SlideShare a Scribd company logo
1 of 37
Test Case DevelopmentTest Case Development
Team:Team:
Hrushikesh WakhleHrushikesh Wakhle
Kiran HoleKiran Hole
Rashmi BinzadeRashmi Binzade
Unnati PatelUnnati Patel
AgendaAgenda
 Test Design
 The Four step process
 Test Cases
 Types of Test Cases
 Test Case Categories
 Bad Vs. Good Test Cases
 Guidelines
 Test Case Development Techniques
 Which Test Cases to Automate?
 Test Coverage
 Requirement Traceability Matrix (RTM)
4
Test Design
 Test Design aims at documenting “How” to do testing.
 Ensure that all requirements are met in the application.
Steps for Test Design
5
Test Design (Cont.)
 Test design should start the moment the requirements have been approved and
baselined.
 In case of functionality testing (Black box testing), it is necessary for team
members to acquire knowledge of functionality of application before team starts with
Test Design activity.
 Test Design Specification Template : (IEEE 829-1998)
 Features to be Tested
 Testing approach
 Test identification
 Test environment
 Overall Pass/Fail criteria
6
Test Scenario
 Test scenarios are the high level classification of test requirement grouped depending on
the functionality of a module or what need to test at high level.
 One liner statements which tell us about what to test (Best practice).
 A test scenario has many test cases associated with it.
 How to identify Test scenarios?
1) From Use cases
2) Functionality breakdown
3) Using state transition technique.
 It’s more about thinking and discussing details while in Test Cases its about Documenting
details.
 Importance : It’s important when time is less and most of the team members can agree /
understand the details from one-liner scenario.
7
Test Scenario Template
8
The Four step process
I) Analyze the Test Basis
 Study the test basis which is anything by which
you can base your test e.g. business process, test
requirements, User guide, design specs or
interview business owner.
 Evaluate testability, assess the risks & prioritize.
 Example: Online order will be processed on
the next working day. Payment must be made by
standard credit card. order will be mailed within 2
days. If a partial order must be sent the customer
will be notified & can return their order within 30
days for full refund.
II) Prioritize
- Always done WITH Business Analyst
Business :
- How important this process is for business
- If this process fails then what are customers going
to do.
Complex:
- Does it take lots of screens to get through this
process?
- Does it integrate with other app?
Failure:
- Is this a process that may fail when I am going to
test it? If yes then its impact.
- What's the anticipated failure rate?
9
III) Identify the Test Conditions
 Can be many conditions for each
Function/process.
 Include:
 high level conditions (very useful for business)
 low level conditions (will not used that frequently)
 Example :
These are three Test condition:
Place an order on a weekdays.
Place an order on a weekend.
Return a partial order.
10
IV) Design Test Cases
 Prioritize test cases :
Preconditions
Inputs
Outputs
Expected Result
Specified the Test Cases
11
What is test case?
 A test case is a document, which has a set of test data, preconditions, expected
results and Actual results, developed for a particular test scenario in order to verify
any requirement.
 Test Case acts as the starting point for the test execution, and after applying a set of
input Test Data, the application has a definitive outcome.
 Five required elements of a Test Case:
 ID – unique identifier of a test case
 Objective / steps / Test Data – what you need to do
 Expected result – what you are supposed to get from application
 Actual Result – What output actually application provides after testing
 Status – Pass/fail
12
Types of Test Cases
 Test Cases categories:
Positive Test Cases
Negative Test Cases
Test Case Types comes under these categories:
Functional Test Cases
Performance Test Cases
Security Test Cases
Integration Test Cases
Database Test Cases
Usability Test Cases
Acceptance Test Cases
Happy Path Test Cases
13
Test Case Categories
 Positive Test Cases:
 Performed on the system by providing the valid
data as input.
 Checks whether an application behaves as expected
with the positive input.
 Negative Test Cases:
 Performed on the system by providing invalid data
as input.
 Checks whether an application behaves as expected
with the negative input.
 This is to test the application that does not do
anything that it is not supposed to do so.
14
Test Case
 Inputs:
 Through the UI
 From interfacing systems or devices
 Files
 Databases
 State
 Environment.
 Outputs:
 To UI
 To interfacing systems or devices
 Files
 Databases
 State
 Response time.
15
Test case of Login module
 Check Login box below:
16
Bad Test Cases
17
Good Test Case
Guidelines for better Test Cases
 Test Cases steps should be as detailed as
possible and should not be written at high
level.
 Writing detailed test steps is very
important considering the fact that the same
person who wrote the test cases may not
always execute the same test cases.
 If the test cases are not very detailed then
the person who executes the test case for the
first time will not be able to validate the
system thoroughly as he/she might have not
gone through the requirements and will test
only as per the test case steps.
 Ensure that all positive scenarios and
negative scenarios are covered.
Language:
 Write in simple and easy to understand
language.
 Use active voice: Do this, do that.
 Use exact and consistent names (of
forms, fields, etc).
 Remove conditional words.
Characteristics of a good test case:
 Accurate: Exacts the purpose.
 Economical: No unnecessary steps or
words.
 Traceable: Capable of being traced to
requirements.
 Repeatable: Can be used to perform
the test over and over.
 Reusable: Can be reused if necessary.
19
Guidelines (cont.)
 It is very important for a Tester to draft good and complete test cases as it shows
how comprehensively a test engineer has understood the application requirements.
 Do’s and Don’ts to write effective test cases with little efforts and save a lot of time.
Do’s:
Identify and draft test cases for each unit or component or module
Write test cases with all the mandatory fields such as test case ID, priority,
description, execution steps, expected result and actual result
Focus on functional as well as UI aspects
Write execution steps in points so that the steps are clearly readable
Clearly identify the expected results for each test case
Design the test cases as per the workflow of the application
20
Guidelines (cont.)
Don’ts:
Do not write repetitive UI test cases. This will lead to high maintenance since UI will
evolve over time.
Do not concentrate on negative paths for user acceptance test cases if the business
requirements clearly indicate the application behavior and usage by the business users.
Do not fail to get the test cases reviewed by individual module owners of the
development team. This will enable the entire team to be in the same line.
Do not leave any functionality uncovered in the test cases until and unless it is
specified in the test plan.
Do not write test cases on assumptions. If the requirement is not clear ask
development team/business analyst.
Do not write test cases on error messages based on assumptions. Document error
message validation test cases if the exact error message to be displayed is given in the
requirements.
21
Test Case (cont.)
 Construction of Test Cases also helps in:
Finding issues or gaps in the requirements.
Technical design itself.
Make tester to think through different possible Positive and Negative
scenarios.
It is test cases against which tester will verify the application is working as
expected.
Number of test cases to be created depends on the size, complexity and type
of testing being performed.
Gives an approach, Description, Pre-conditions to achieve the expected
result
Useful while writing Traceability Matrix.
22
Test Data
 Test data is the data that is used while testing of an application.
 In order to test a software application you need to enter some data for testing most
of the features. Any such specifically identified data which is used in tests is known as
test data.
 Effectiveness of Test Cases is depends on the use of correct Test Data while testing.
 Two types :
 Positive Test Data.
 Negative Test Data.
 Test data can be made available in two ways:
 Simulated - Data derived by considering Requirements.
 Provided by client- data copied from Live DB [e.g. csv file].
23
Test Data (Cont.)
 Always verify the test data before re-using in regression testing.
 Design test data considering following categories:
 No data
 Valid data set
 Invalid data set
 Illegal data format
 Boundary Condition data set
 It is not possible to check test case with all data values, Testers need to ensure all
possible combination is covered so following techniques used:
 Equivalence Class Partitioning [ECP]
 Boundary Value Analysis [BVA]
24
Test Case Development Techniques
 Boundary testing
 Equivalence classes
 Decision tables
 State transition diagrams
 Risk Analysis
Test Case Development Techniques are :
25
Equivalence Class Partition
- It’s a black box test design technique.
Principle: test cases should be designed to cover
data of each partition at least once.
Problem: The circle accepts only Positive input
values ranging from 1-10 only .
Steps:
1)I) Identify equivalence classes, the input values
which are treated the same by the software divide
into 3 different class :
1) Valid class
2) Invalid Class
II) Create a test case for each equivalence class.
 III) While testing, use a single data from each
class.
 Advantage:
1. To reduce the number of test cases to a necessary
minimum.
2. To select correct test cases to cover all possible
scenarios.
26
Boundary value testing
 It’s a black box test design technique in which
test cases are designed based on boundary values.
 Each input is tested at both ends of its valid
range(s) and just outside its valid range(s).
 Formula : (Low - 1, Low, High, High +
1)
 The focus is on one requirement at a time
 Can be combined across multiple requirements
– all valid minimums together, all valid
maximums together;
 Invalid values should not be combined.
 Limitations:
Does not work well for Boolean & Logical
variables.
Focus much on boundary & gives less attention
to other data scenarios.
27
Decision table
 A good way to deal with a combination of inputs, which produce
different results.
 Also referred to as a 'cause-effect’ table.
 It helps reduce test effort in verifying each and every combinations
of test data, at the same time ensuring complete coverage
 Decision tables provide a systematic way of stating complex business
rules, which is useful for developers as well as for testers.
Decision table Example
Example: Let's consider the behavior of Flight
Button for different combinations of Fly From &
Fly To.
Rule 1:When destination for both Fly From &
Fly To are not set the Flight Icon is disabled. So
register values False.
Rule 2: When Fly From is set but Fly to is not
set, Flight button is disabled. So register True for
Fly from and the rest of the entries are false.
Rule 3: When Fly From is Not set but Fly to is
set, Flight button is disabled. So register True for
Fly from and the rest of the entries are false.
Rule 4: only when Fly to and Fly from
destinations are set, Flights button is enabled and
you make the corresponding entry in the decision
table.
29
State transition diagrams
State transition: A transition between
two states of a component or system.
Identify a finite number of states the
model execution goes through
Create a state transition diagram
showing how the model transitions from
one state to the other
Assess the model accuracy by analyzing
the conditions under which a state change
occurs
30
Risk Analysis :
 Who: PM, Tech Support, Sales, Engineers,
Testers.
 When: (design)/coding/testing stage(s).
 Why:
 It helps us choose the best test techniques
 It helps us define the extent of testing to be
carried out
 The higher the risk, the more focus given
 It allows for the prioritization of the testing
 Attempt to find the critical defects as early as
possible
 Are there any non-testing activities that can be
employed to reduce risk? e.g. provide training to
inexperienced personnel
31
Which Test Cases to Automate?
 Test cases to be automated can be selected using the
following criterion :
High Risk - Business Critical test cases
Test cases that are executed repeatedly
Test Cases that are very tedious or difficult to perform
manually
Test Cases which are time consuming
The following category of test cases are not suitable for
automation:
Test Cases that are newly designed and not executed
manually atleast once
Test Cases for which the requirements are changing
frequently
Test cases which are executed on ad-hoc basis
32
Test Coverage
 Measures the amount of testing performed by a set of test.
 100% coverage does NOT mean 100% tested.
 Benefit of Test coverage measurement:
It creates additional test cases to increase coverage
It helps in finding requirements that not exercised by a set of test cases
It helps in determining a quantitative measure of code coverage, which
indirectly measure the quality of the application or product.
 Drawback : it measures coverage of what has been written, i.e. the
requirements itself; it cannot cover the requirements that has not been
written.
33
Requirement Traceability Matrix
(RTM)
 This is the document that connects the requirements to the test cases.
 The connection or mapping of the requirements to test cases is many-many.
 This means that one requirement is tested by one or more test cases.
Conversely, it is possible to have one test case addressing one or more
requirements.
 Allows two-way mapping between requirements and test cases :
 From a requirement to a functional specification to specific tests which
exercise the requirements
 From each test case back to the requirement and functional specifications
 A traceability matrix finds two applications:
 To identify and track the functional coverage of a test
 To identify which test cases must be exercised or updated when a system
evolves
34
RTM Template
35
Summary
 Deciding test cases during planning is the most important aspect of testing.
 At each testing, test cases should be specified, reviewed & then executed.
 There are many test case design methods that can be used if suitable.
 Selecting the right method makes it easier to detect faults.
 Coverage measured, test cases enhanced using coverage data.
36
Q & A
Thank You!Thank You!
Software testers succeed where others fail.

More Related Content

What's hot

Types of Software Testing | Edureka
Types of Software Testing | EdurekaTypes of Software Testing | Edureka
Types of Software Testing | EdurekaEdureka!
 
Test cases for effective testing - part 1
Test cases for effective testing - part 1Test cases for effective testing - part 1
Test cases for effective testing - part 1Mona M. Abd El-Rahman
 
Test Execution
Test ExecutionTest Execution
Test ExecutionRajathi-QA
 
Software Testing Life Cycle – A Beginner’s Guide
Software Testing Life Cycle – A Beginner’s GuideSoftware Testing Life Cycle – A Beginner’s Guide
Software Testing Life Cycle – A Beginner’s GuideSyed Hassan Raza
 
Software Testing Process
Software Testing ProcessSoftware Testing Process
Software Testing Processguest1f2740
 
ISTQB Eğitim Sunumu
ISTQB Eğitim SunumuISTQB Eğitim Sunumu
ISTQB Eğitim SunumuMesut Güneş
 
Software testing.ppt
Software testing.pptSoftware testing.ppt
Software testing.pptKomal Garg
 
Introduction to software testing
Introduction to software testingIntroduction to software testing
Introduction to software testingHadi Fadlallah
 
Manual testing concepts course 1
Manual testing concepts course 1Manual testing concepts course 1
Manual testing concepts course 1Raghu Kiran
 
Software Testing Life Cycle
Software Testing Life CycleSoftware Testing Life Cycle
Software Testing Life CycleUdayakumar Sree
 
Tips for Writing Better Charters for Exploratory Testing Sessions by Michael...
 Tips for Writing Better Charters for Exploratory Testing Sessions by Michael... Tips for Writing Better Charters for Exploratory Testing Sessions by Michael...
Tips for Writing Better Charters for Exploratory Testing Sessions by Michael...TEST Huddle
 
Best Practices for Test Case Writing
Best Practices for Test Case WritingBest Practices for Test Case Writing
Best Practices for Test Case WritingSarah Goldberg
 
ISTQB, ISEB Lecture Notes- 2
ISTQB, ISEB Lecture Notes- 2ISTQB, ISEB Lecture Notes- 2
ISTQB, ISEB Lecture Notes- 2onsoftwaretest
 
UNIT TESTING PPT
UNIT TESTING PPTUNIT TESTING PPT
UNIT TESTING PPTsuhasreddy1
 

What's hot (20)

Manual testing ppt
Manual testing pptManual testing ppt
Manual testing ppt
 
Types of Software Testing | Edureka
Types of Software Testing | EdurekaTypes of Software Testing | Edureka
Types of Software Testing | Edureka
 
Test cases for effective testing - part 1
Test cases for effective testing - part 1Test cases for effective testing - part 1
Test cases for effective testing - part 1
 
Test Execution
Test ExecutionTest Execution
Test Execution
 
Software Testing Life Cycle – A Beginner’s Guide
Software Testing Life Cycle – A Beginner’s GuideSoftware Testing Life Cycle – A Beginner’s Guide
Software Testing Life Cycle – A Beginner’s Guide
 
Test cases
Test casesTest cases
Test cases
 
Software Testing Process
Software Testing ProcessSoftware Testing Process
Software Testing Process
 
ISTQB Eğitim Sunumu
ISTQB Eğitim SunumuISTQB Eğitim Sunumu
ISTQB Eğitim Sunumu
 
Software testing.ppt
Software testing.pptSoftware testing.ppt
Software testing.ppt
 
Introduction to software testing
Introduction to software testingIntroduction to software testing
Introduction to software testing
 
Test cases
Test casesTest cases
Test cases
 
Manual testing concepts course 1
Manual testing concepts course 1Manual testing concepts course 1
Manual testing concepts course 1
 
Manual testing
Manual testingManual testing
Manual testing
 
Software Testing Life Cycle
Software Testing Life CycleSoftware Testing Life Cycle
Software Testing Life Cycle
 
Software testing
Software testing Software testing
Software testing
 
Tips for Writing Better Charters for Exploratory Testing Sessions by Michael...
 Tips for Writing Better Charters for Exploratory Testing Sessions by Michael... Tips for Writing Better Charters for Exploratory Testing Sessions by Michael...
Tips for Writing Better Charters for Exploratory Testing Sessions by Michael...
 
Best Practices for Test Case Writing
Best Practices for Test Case WritingBest Practices for Test Case Writing
Best Practices for Test Case Writing
 
Testing fundamentals
Testing fundamentalsTesting fundamentals
Testing fundamentals
 
ISTQB, ISEB Lecture Notes- 2
ISTQB, ISEB Lecture Notes- 2ISTQB, ISEB Lecture Notes- 2
ISTQB, ISEB Lecture Notes- 2
 
UNIT TESTING PPT
UNIT TESTING PPTUNIT TESTING PPT
UNIT TESTING PPT
 

Viewers also liked

AAS Degree
AAS DegreeAAS Degree
AAS DegreeValspaar
 
Calentamiento global
Calentamiento globalCalentamiento global
Calentamiento globalclaudia
 
Building the business case
Building the business caseBuilding the business case
Building the business caseDonato Calace
 
TypeScript and Angular2 (Love at first sight)
TypeScript and Angular2 (Love at first sight)TypeScript and Angular2 (Love at first sight)
TypeScript and Angular2 (Love at first sight)Igor Talevski
 
Livreto Fabio Palacio - Propostas 2013-2016 - Agosto de 2012
Livreto Fabio Palacio - Propostas 2013-2016 - Agosto de 2012Livreto Fabio Palacio - Propostas 2013-2016 - Agosto de 2012
Livreto Fabio Palacio - Propostas 2013-2016 - Agosto de 2012Vereador Fabio Palacio
 
Responsive ui
Responsive uiResponsive ui
Responsive uiRan Wahle
 
XebiConFr 15 - Brace yourselves Angular 2 is coming
XebiConFr 15 - Brace yourselves Angular 2 is comingXebiConFr 15 - Brace yourselves Angular 2 is coming
XebiConFr 15 - Brace yourselves Angular 2 is comingPublicis Sapient Engineering
 
Clase 02 - Base de Datos Estratégica [Inteligencia de Negocios en las Organiz...
Clase 02 - Base de Datos Estratégica [Inteligencia de Negocios en las Organiz...Clase 02 - Base de Datos Estratégica [Inteligencia de Negocios en las Organiz...
Clase 02 - Base de Datos Estratégica [Inteligencia de Negocios en las Organiz...Julio Antonio Huaman Chuque
 
Types of lead bioremediation
Types of lead bioremediationTypes of lead bioremediation
Types of lead bioremediationsakeena gilani
 
Yunit iii aralin 3 mga namumuno sa bansa
Yunit iii aralin 3 mga namumuno sa bansaYunit iii aralin 3 mga namumuno sa bansa
Yunit iii aralin 3 mga namumuno sa bansaEDITHA HONRADEZ
 
Kabanata v (mga salik sa matagumpay na pagkatuto ng wika)
Kabanata v (mga salik sa matagumpay na pagkatuto ng wika)Kabanata v (mga salik sa matagumpay na pagkatuto ng wika)
Kabanata v (mga salik sa matagumpay na pagkatuto ng wika)alona_
 

Viewers also liked (17)

AAS Degree
AAS DegreeAAS Degree
AAS Degree
 
La Realidad Aumentada
La Realidad Aumentada La Realidad Aumentada
La Realidad Aumentada
 
Calentamiento global
Calentamiento globalCalentamiento global
Calentamiento global
 
International Electrical Distributors
International Electrical DistributorsInternational Electrical Distributors
International Electrical Distributors
 
Building the business case
Building the business caseBuilding the business case
Building the business case
 
TypeScript and Angular2 (Love at first sight)
TypeScript and Angular2 (Love at first sight)TypeScript and Angular2 (Love at first sight)
TypeScript and Angular2 (Love at first sight)
 
Livreto Fabio Palacio - Propostas 2013-2016 - Agosto de 2012
Livreto Fabio Palacio - Propostas 2013-2016 - Agosto de 2012Livreto Fabio Palacio - Propostas 2013-2016 - Agosto de 2012
Livreto Fabio Palacio - Propostas 2013-2016 - Agosto de 2012
 
Responsive ui
Responsive uiResponsive ui
Responsive ui
 
XebiConFr 15 - Brace yourselves Angular 2 is coming
XebiConFr 15 - Brace yourselves Angular 2 is comingXebiConFr 15 - Brace yourselves Angular 2 is coming
XebiConFr 15 - Brace yourselves Angular 2 is coming
 
Clase 02 - Base de Datos Estratégica [Inteligencia de Negocios en las Organiz...
Clase 02 - Base de Datos Estratégica [Inteligencia de Negocios en las Organiz...Clase 02 - Base de Datos Estratégica [Inteligencia de Negocios en las Organiz...
Clase 02 - Base de Datos Estratégica [Inteligencia de Negocios en las Organiz...
 
Flux and redux
Flux and reduxFlux and redux
Flux and redux
 
Types of lead bioremediation
Types of lead bioremediationTypes of lead bioremediation
Types of lead bioremediation
 
Yunit iii aralin 3 mga namumuno sa bansa
Yunit iii aralin 3 mga namumuno sa bansaYunit iii aralin 3 mga namumuno sa bansa
Yunit iii aralin 3 mga namumuno sa bansa
 
Atityud ng guro: Salik sa Matagumpay na Pagkatuto ng Wika
Atityud ng guro: Salik sa Matagumpay na Pagkatuto ng WikaAtityud ng guro: Salik sa Matagumpay na Pagkatuto ng Wika
Atityud ng guro: Salik sa Matagumpay na Pagkatuto ng Wika
 
Kabanata 4
Kabanata 4Kabanata 4
Kabanata 4
 
Edukasyon sa Pagpapakatao Curriculum Guide
Edukasyon sa Pagpapakatao Curriculum Guide Edukasyon sa Pagpapakatao Curriculum Guide
Edukasyon sa Pagpapakatao Curriculum Guide
 
Kabanata v (mga salik sa matagumpay na pagkatuto ng wika)
Kabanata v (mga salik sa matagumpay na pagkatuto ng wika)Kabanata v (mga salik sa matagumpay na pagkatuto ng wika)
Kabanata v (mga salik sa matagumpay na pagkatuto ng wika)
 

Similar to Test case development

AJRA Test Strategy Discussion
AJRA Test Strategy DiscussionAJRA Test Strategy Discussion
AJRA Test Strategy Discussionajrhem
 
Less01 1 introduction_module
Less01 1 introduction_moduleLess01 1 introduction_module
Less01 1 introduction_moduleSuresh Mishra
 
Importance of Software testing in SDLC and Agile
Importance of Software testing in SDLC and AgileImportance of Software testing in SDLC and Agile
Importance of Software testing in SDLC and AgileChandan Mishra
 
www.tutorialsbook.com presents Manual testing
www.tutorialsbook.com presents Manual testingwww.tutorialsbook.com presents Manual testing
www.tutorialsbook.com presents Manual testingTutorials Book
 
Software testing for biginners
Software testing for biginnersSoftware testing for biginners
Software testing for biginnersSriman Eshwar
 
201008 Software Testing Notes (part 1/2)
201008 Software Testing Notes (part 1/2)201008 Software Testing Notes (part 1/2)
201008 Software Testing Notes (part 1/2)Javier Gonzalez-Sanchez
 
Software testing introduction
Software testing introductionSoftware testing introduction
Software testing introductionSriman Eshwar
 
Testing Software Solutions
Testing Software SolutionsTesting Software Solutions
Testing Software Solutionsgavhays
 
types of testing with descriptions and examples
types of testing with descriptions and examplestypes of testing with descriptions and examples
types of testing with descriptions and examplesMani Deepak Choudhry
 
Testing Interview Questions.pdf
Testing Interview Questions.pdfTesting Interview Questions.pdf
Testing Interview Questions.pdfPradeepaKannan6
 
Software testing mtech project in jalandhar
Software testing mtech project in jalandharSoftware testing mtech project in jalandhar
Software testing mtech project in jalandhardeepikakaler1
 
Software testing mtech project in ludhiana
Software testing mtech project in ludhianaSoftware testing mtech project in ludhiana
Software testing mtech project in ludhianadeepikakaler1
 
Software testing
Software testingSoftware testing
Software testingthaneofife
 

Similar to Test case development (20)

AJRA Test Strategy Discussion
AJRA Test Strategy DiscussionAJRA Test Strategy Discussion
AJRA Test Strategy Discussion
 
Less01 1 introduction_module
Less01 1 introduction_moduleLess01 1 introduction_module
Less01 1 introduction_module
 
Testing
TestingTesting
Testing
 
Importance of Software testing in SDLC and Agile
Importance of Software testing in SDLC and AgileImportance of Software testing in SDLC and Agile
Importance of Software testing in SDLC and Agile
 
www.tutorialsbook.com presents Manual testing
www.tutorialsbook.com presents Manual testingwww.tutorialsbook.com presents Manual testing
www.tutorialsbook.com presents Manual testing
 
Software testing for biginners
Software testing for biginnersSoftware testing for biginners
Software testing for biginners
 
201008 Software Testing Notes (part 1/2)
201008 Software Testing Notes (part 1/2)201008 Software Testing Notes (part 1/2)
201008 Software Testing Notes (part 1/2)
 
Software testing introduction
Software testing introductionSoftware testing introduction
Software testing introduction
 
Testing Software Solutions
Testing Software SolutionsTesting Software Solutions
Testing Software Solutions
 
types of testing with descriptions and examples
types of testing with descriptions and examplestypes of testing with descriptions and examples
types of testing with descriptions and examples
 
Testing Interview Questions.pdf
Testing Interview Questions.pdfTesting Interview Questions.pdf
Testing Interview Questions.pdf
 
Software testing mtech project in jalandhar
Software testing mtech project in jalandharSoftware testing mtech project in jalandhar
Software testing mtech project in jalandhar
 
Software testing mtech project in ludhiana
Software testing mtech project in ludhianaSoftware testing mtech project in ludhiana
Software testing mtech project in ludhiana
 
Testing
TestingTesting
Testing
 
1st module.....
1st module.....1st module.....
1st module.....
 
software testing
software testingsoftware testing
software testing
 
Istqb lesson1
Istqb lesson1Istqb lesson1
Istqb lesson1
 
Software testing
Software testingSoftware testing
Software testing
 
Software testing
Software testingSoftware testing
Software testing
 
Test case writing
Test case writingTest case writing
Test case writing
 

Recently uploaded

Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationkaushalgiri8080
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 

Recently uploaded (20)

Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 

Test case development

  • 1.
  • 2. Test Case DevelopmentTest Case Development Team:Team: Hrushikesh WakhleHrushikesh Wakhle Kiran HoleKiran Hole Rashmi BinzadeRashmi Binzade Unnati PatelUnnati Patel
  • 3. AgendaAgenda  Test Design  The Four step process  Test Cases  Types of Test Cases  Test Case Categories  Bad Vs. Good Test Cases  Guidelines  Test Case Development Techniques  Which Test Cases to Automate?  Test Coverage  Requirement Traceability Matrix (RTM)
  • 4. 4 Test Design  Test Design aims at documenting “How” to do testing.  Ensure that all requirements are met in the application. Steps for Test Design
  • 5. 5 Test Design (Cont.)  Test design should start the moment the requirements have been approved and baselined.  In case of functionality testing (Black box testing), it is necessary for team members to acquire knowledge of functionality of application before team starts with Test Design activity.  Test Design Specification Template : (IEEE 829-1998)  Features to be Tested  Testing approach  Test identification  Test environment  Overall Pass/Fail criteria
  • 6. 6 Test Scenario  Test scenarios are the high level classification of test requirement grouped depending on the functionality of a module or what need to test at high level.  One liner statements which tell us about what to test (Best practice).  A test scenario has many test cases associated with it.  How to identify Test scenarios? 1) From Use cases 2) Functionality breakdown 3) Using state transition technique.  It’s more about thinking and discussing details while in Test Cases its about Documenting details.  Importance : It’s important when time is less and most of the team members can agree / understand the details from one-liner scenario.
  • 8. 8 The Four step process I) Analyze the Test Basis  Study the test basis which is anything by which you can base your test e.g. business process, test requirements, User guide, design specs or interview business owner.  Evaluate testability, assess the risks & prioritize.  Example: Online order will be processed on the next working day. Payment must be made by standard credit card. order will be mailed within 2 days. If a partial order must be sent the customer will be notified & can return their order within 30 days for full refund. II) Prioritize - Always done WITH Business Analyst Business : - How important this process is for business - If this process fails then what are customers going to do. Complex: - Does it take lots of screens to get through this process? - Does it integrate with other app? Failure: - Is this a process that may fail when I am going to test it? If yes then its impact. - What's the anticipated failure rate?
  • 9. 9 III) Identify the Test Conditions  Can be many conditions for each Function/process.  Include:  high level conditions (very useful for business)  low level conditions (will not used that frequently)  Example : These are three Test condition: Place an order on a weekdays. Place an order on a weekend. Return a partial order.
  • 10. 10 IV) Design Test Cases  Prioritize test cases : Preconditions Inputs Outputs Expected Result Specified the Test Cases
  • 11. 11 What is test case?  A test case is a document, which has a set of test data, preconditions, expected results and Actual results, developed for a particular test scenario in order to verify any requirement.  Test Case acts as the starting point for the test execution, and after applying a set of input Test Data, the application has a definitive outcome.  Five required elements of a Test Case:  ID – unique identifier of a test case  Objective / steps / Test Data – what you need to do  Expected result – what you are supposed to get from application  Actual Result – What output actually application provides after testing  Status – Pass/fail
  • 12. 12 Types of Test Cases  Test Cases categories: Positive Test Cases Negative Test Cases Test Case Types comes under these categories: Functional Test Cases Performance Test Cases Security Test Cases Integration Test Cases Database Test Cases Usability Test Cases Acceptance Test Cases Happy Path Test Cases
  • 13. 13 Test Case Categories  Positive Test Cases:  Performed on the system by providing the valid data as input.  Checks whether an application behaves as expected with the positive input.  Negative Test Cases:  Performed on the system by providing invalid data as input.  Checks whether an application behaves as expected with the negative input.  This is to test the application that does not do anything that it is not supposed to do so.
  • 14. 14 Test Case  Inputs:  Through the UI  From interfacing systems or devices  Files  Databases  State  Environment.  Outputs:  To UI  To interfacing systems or devices  Files  Databases  State  Response time.
  • 15. 15 Test case of Login module  Check Login box below:
  • 18. Guidelines for better Test Cases  Test Cases steps should be as detailed as possible and should not be written at high level.  Writing detailed test steps is very important considering the fact that the same person who wrote the test cases may not always execute the same test cases.  If the test cases are not very detailed then the person who executes the test case for the first time will not be able to validate the system thoroughly as he/she might have not gone through the requirements and will test only as per the test case steps.  Ensure that all positive scenarios and negative scenarios are covered. Language:  Write in simple and easy to understand language.  Use active voice: Do this, do that.  Use exact and consistent names (of forms, fields, etc).  Remove conditional words. Characteristics of a good test case:  Accurate: Exacts the purpose.  Economical: No unnecessary steps or words.  Traceable: Capable of being traced to requirements.  Repeatable: Can be used to perform the test over and over.  Reusable: Can be reused if necessary.
  • 19. 19 Guidelines (cont.)  It is very important for a Tester to draft good and complete test cases as it shows how comprehensively a test engineer has understood the application requirements.  Do’s and Don’ts to write effective test cases with little efforts and save a lot of time. Do’s: Identify and draft test cases for each unit or component or module Write test cases with all the mandatory fields such as test case ID, priority, description, execution steps, expected result and actual result Focus on functional as well as UI aspects Write execution steps in points so that the steps are clearly readable Clearly identify the expected results for each test case Design the test cases as per the workflow of the application
  • 20. 20 Guidelines (cont.) Don’ts: Do not write repetitive UI test cases. This will lead to high maintenance since UI will evolve over time. Do not concentrate on negative paths for user acceptance test cases if the business requirements clearly indicate the application behavior and usage by the business users. Do not fail to get the test cases reviewed by individual module owners of the development team. This will enable the entire team to be in the same line. Do not leave any functionality uncovered in the test cases until and unless it is specified in the test plan. Do not write test cases on assumptions. If the requirement is not clear ask development team/business analyst. Do not write test cases on error messages based on assumptions. Document error message validation test cases if the exact error message to be displayed is given in the requirements.
  • 21. 21 Test Case (cont.)  Construction of Test Cases also helps in: Finding issues or gaps in the requirements. Technical design itself. Make tester to think through different possible Positive and Negative scenarios. It is test cases against which tester will verify the application is working as expected. Number of test cases to be created depends on the size, complexity and type of testing being performed. Gives an approach, Description, Pre-conditions to achieve the expected result Useful while writing Traceability Matrix.
  • 22. 22 Test Data  Test data is the data that is used while testing of an application.  In order to test a software application you need to enter some data for testing most of the features. Any such specifically identified data which is used in tests is known as test data.  Effectiveness of Test Cases is depends on the use of correct Test Data while testing.  Two types :  Positive Test Data.  Negative Test Data.  Test data can be made available in two ways:  Simulated - Data derived by considering Requirements.  Provided by client- data copied from Live DB [e.g. csv file].
  • 23. 23 Test Data (Cont.)  Always verify the test data before re-using in regression testing.  Design test data considering following categories:  No data  Valid data set  Invalid data set  Illegal data format  Boundary Condition data set  It is not possible to check test case with all data values, Testers need to ensure all possible combination is covered so following techniques used:  Equivalence Class Partitioning [ECP]  Boundary Value Analysis [BVA]
  • 24. 24 Test Case Development Techniques  Boundary testing  Equivalence classes  Decision tables  State transition diagrams  Risk Analysis Test Case Development Techniques are :
  • 25. 25 Equivalence Class Partition - It’s a black box test design technique. Principle: test cases should be designed to cover data of each partition at least once. Problem: The circle accepts only Positive input values ranging from 1-10 only . Steps: 1)I) Identify equivalence classes, the input values which are treated the same by the software divide into 3 different class : 1) Valid class 2) Invalid Class II) Create a test case for each equivalence class.  III) While testing, use a single data from each class.  Advantage: 1. To reduce the number of test cases to a necessary minimum. 2. To select correct test cases to cover all possible scenarios.
  • 26. 26 Boundary value testing  It’s a black box test design technique in which test cases are designed based on boundary values.  Each input is tested at both ends of its valid range(s) and just outside its valid range(s).  Formula : (Low - 1, Low, High, High + 1)  The focus is on one requirement at a time  Can be combined across multiple requirements – all valid minimums together, all valid maximums together;  Invalid values should not be combined.  Limitations: Does not work well for Boolean & Logical variables. Focus much on boundary & gives less attention to other data scenarios.
  • 27. 27 Decision table  A good way to deal with a combination of inputs, which produce different results.  Also referred to as a 'cause-effect’ table.  It helps reduce test effort in verifying each and every combinations of test data, at the same time ensuring complete coverage  Decision tables provide a systematic way of stating complex business rules, which is useful for developers as well as for testers.
  • 28. Decision table Example Example: Let's consider the behavior of Flight Button for different combinations of Fly From & Fly To. Rule 1:When destination for both Fly From & Fly To are not set the Flight Icon is disabled. So register values False. Rule 2: When Fly From is set but Fly to is not set, Flight button is disabled. So register True for Fly from and the rest of the entries are false. Rule 3: When Fly From is Not set but Fly to is set, Flight button is disabled. So register True for Fly from and the rest of the entries are false. Rule 4: only when Fly to and Fly from destinations are set, Flights button is enabled and you make the corresponding entry in the decision table.
  • 29. 29 State transition diagrams State transition: A transition between two states of a component or system. Identify a finite number of states the model execution goes through Create a state transition diagram showing how the model transitions from one state to the other Assess the model accuracy by analyzing the conditions under which a state change occurs
  • 30. 30 Risk Analysis :  Who: PM, Tech Support, Sales, Engineers, Testers.  When: (design)/coding/testing stage(s).  Why:  It helps us choose the best test techniques  It helps us define the extent of testing to be carried out  The higher the risk, the more focus given  It allows for the prioritization of the testing  Attempt to find the critical defects as early as possible  Are there any non-testing activities that can be employed to reduce risk? e.g. provide training to inexperienced personnel
  • 31. 31 Which Test Cases to Automate?  Test cases to be automated can be selected using the following criterion : High Risk - Business Critical test cases Test cases that are executed repeatedly Test Cases that are very tedious or difficult to perform manually Test Cases which are time consuming The following category of test cases are not suitable for automation: Test Cases that are newly designed and not executed manually atleast once Test Cases for which the requirements are changing frequently Test cases which are executed on ad-hoc basis
  • 32. 32 Test Coverage  Measures the amount of testing performed by a set of test.  100% coverage does NOT mean 100% tested.  Benefit of Test coverage measurement: It creates additional test cases to increase coverage It helps in finding requirements that not exercised by a set of test cases It helps in determining a quantitative measure of code coverage, which indirectly measure the quality of the application or product.  Drawback : it measures coverage of what has been written, i.e. the requirements itself; it cannot cover the requirements that has not been written.
  • 33. 33 Requirement Traceability Matrix (RTM)  This is the document that connects the requirements to the test cases.  The connection or mapping of the requirements to test cases is many-many.  This means that one requirement is tested by one or more test cases. Conversely, it is possible to have one test case addressing one or more requirements.  Allows two-way mapping between requirements and test cases :  From a requirement to a functional specification to specific tests which exercise the requirements  From each test case back to the requirement and functional specifications  A traceability matrix finds two applications:  To identify and track the functional coverage of a test  To identify which test cases must be exercised or updated when a system evolves
  • 35. 35 Summary  Deciding test cases during planning is the most important aspect of testing.  At each testing, test cases should be specified, reviewed & then executed.  There are many test case design methods that can be used if suitable.  Selecting the right method makes it easier to detect faults.  Coverage measured, test cases enhanced using coverage data.
  • 37. Thank You!Thank You! Software testers succeed where others fail.