SlideShare a Scribd company logo
1 of 25
Test case design techniques
Webinar
Ashutosh Garg
Brief about me
I am Ashutosh Garg
• MBA in Finance and Marketing from IIM Lucknow (PGPWE)
• Department Manager at Mediatek Inc.
• Trainer and Writer on diverse topics like Agile, MS Excel, Negotiations, Communication, Content
Marketing
Outline
• Suggested Approach for test case design
• Sample problem which we are solving
• Mind maps and usage in the sample problem
• Understanding what your objectives are
• Techniques for test case design
Approach
Mind Map
• A mind map is a graphical way of representing ideas and concepts. It helps you to structure
information, helping you to understand the requirements in a better way, analyze them better and
have fun as well!
• It helps to foster creativity, develop problem solving approach and representation in a concise
format.
• Testing is all about ideas and creativity. At every stage one can use mind maps to organize and be
creative.
• In this session, we are going to use mind maps for test case design.
Sample Mind map
Sample Problem
Type of transaction Weekdays-Day time Weekdays-Night time Weekends
Domestic 0.5% 0.75% 1.5%
International 0.75% 1% 2%
A credit card company will charge the following commission to a book based ecommerce portal based on the time of transaction
The maximum purchase a person can do on the website is 100000 INR
Need to design the test cases to check the commission calculation function (Server side can be ignored)
This is the requirement given. Know thy requirement. Ask as many questions.
Examples: When do we consider the day time to be over and when the night time to begin? Is the same cut off date for
weekends also? How probable is that someone will do a order of 1 Lakh, are there that expensive items?
Mind map for the sample problem
Objective of the test case design
Mind map for the sample problem
Test case design techniques
• Specification based techniques
• This techniques try to take the external description of the product as input.
• This could be the technical specifications, design document or the client’s requirement to design the test case
• Structure based techniques
• This techniques try to take the internal structure of the product as input.
• These techniques comprehensively test the developed code
• Experience-Based techniques
• This techniques try to take the tester’s experience as the input.
• The outcome is based on skills, knowledge and expertise of the people involved.
Specification based design techniques
Technique Name Definition or Description
Boundary Value Analysis As the name suggests, this technique is applied to explore errors at the boundary of the input cases.
It aims to catch the potential errors at the boundary
Equivalence Class Partitioning Since there might be numerous input cases, input data is divided into class which might show the
same behavior. So instead of all cases from a class, a small representative set is chosen.
Decision table testing Test cases are designed on the basis of decision tables that are arrived at using different
combinations of inputs and their corresponding outputs.
State Transition Diagrams Your software will transit from one state to the another. This transition is guided by different rules.
We can develop test cases to test the rules and/or test the transitions
Use case testing In this case the test case would be directly mapped to the business scenario or a end user
functionality
Structure based techniques
• Statement testing coverage
• Decision testing coverage
• (Multiple)Conditional testing coverage
• All path testing coverage
Experience based techniques
• Error guessing
• Exploratory testing
Equivalence class partitioning
• Based on the mind maps. Following partitions are clearly visible
• Transaction day
• [Mon – Fri][Sat-Sun]
• Transaction time
• [6 AM – 6 PM][6 PM-6 AM]
• Transaction Size
• [1 – 1000][1000-10000][10000-25000][>25000]
• Credit card number
• [0-4 digits][5-8 Digits][9-12 Digits][13-16 Digits]
• Other cases
• [Expiry date of Feb][Expiry date of Jan][Expiry date of April][Expiry date of Dec ][Expiry date of last year of Century]
Equivalence Class Partitioning Since there might be numerous input cases, input data is divided into class which might show the
same behavior. So instead of all cases from a class, a small representative set is chosen.
Boundary Value analysis
Boundary Value Analysis As the name suggests, this technique is applied to explore errors at the boundary of the input
cases. It aims to catch the potential errors at the boundary
Decision table testing
Payment form is filled
Transaction
size is less
than 1 lakh?
Card Details
are valid?
Show error popup
Card Details
are correct?
Show error popup
Show error popupSuccessful transaction
Yes
Yes
Yes
No
No
No
Decision table testing Test cases are designed on the basis of decision tables that are arrived at using different
combinations of inputs and their corresponding outputs.
State Transition Diagram
User Website Server
Fills data on the website
Sends to the server
Response comes from server
Response shown to user
State Transition Diagrams Your software will transit from one state to the another. This transition is guided by different
rules. We can develop test cases to test the rules and/or test the transitions
Will there be any overlaps?
• Yes. There will be.
• So do not make all cases from all techniques. Remember your objective and make accordingly.
○ If your objective is a basic coverage, pick few important pieces from each. Remove the
overlapping ones and design case
○ If your objective is a exhaustive coverage, pick all cases from each. Remove the overlaps
and design the case
○ If your objective is bugs, ensure basic coverage using point 1 above. Identify potential buggy
scenarios and add them as well.
Error guessing
• Error guessing techniques are based on the tester’s experience.
• It might be the general experience of the tester or his experience of testing a similar application
or software
• Most of you who are experienced testers, know some niche areas where you will always find
bugs. These come one or more of the following reasons
○ Previous experience of testing similar applications
○ Understanding of the system under test
○ Knowledge of typical implementation errors
○ Previously troubled areas
○ Historical data
○ Test results
• So based on your deep understanding of the software under test or your experience, design test
cases which have high potential to find the bugs
Exploratory testing
• This is by nature not a test case design technique
• Exploratory testing is also known as free testing.
• Free testing is directly proportional to the tester’s mind. Tester’s creativity, exploring nature,
understanding of the concept.
• Still in the world, a lot of real bugs are found in exploratory testing.
• You can use the mind map as the source and dig both broad and deep to uncover bugs.
• The key problem with exploratory testing is how to know coverage and gain confidence
○ Session Based test management is the technique which can be used for it.
○ If you want to learn it, register on this link:
Test cases are designed, what
next?
Optimization
• When a feature or module or software is new, it will have more check-ins. So test case might
need to run multiple times in a test duration.
• However, when the feature or module or software gets stable, it might not need so many runs
and we can optimize both the number of cycles and also the test case#
• Consider a module which has 100 test cases the number of checkins in each month as below
**Note: This is not a thumb rule, this depends purely on the business requirement in your organization
Chat with me
a@gargashutosh.com
+919810134649
www.gargashutosh.com
UpComing Webinars (They are free as well!)
• Webinar on “First Step Towards Automation”
○ https://www.townscript.com/e/first-step
• Webinar on “Session based test management”
○ https://www.townscript.com/e/sbtm
Join our free QA Community here on Whatsapp:https://chat.whatsapp.com/FERbQKIn7WwB6Q0eaT3QOK

More Related Content

What's hot

Michael Roar Borlund & Christian Carlsen - Real Exploratory Testing, Now With...
Michael Roar Borlund & Christian Carlsen - Real Exploratory Testing, Now With...Michael Roar Borlund & Christian Carlsen - Real Exploratory Testing, Now With...
Michael Roar Borlund & Christian Carlsen - Real Exploratory Testing, Now With...TEST Huddle
 
John Fodeh - Spend Wisely, Test Well
John Fodeh - Spend Wisely, Test WellJohn Fodeh - Spend Wisely, Test Well
John Fodeh - Spend Wisely, Test WellTEST Huddle
 
Assignment details the below scenario describes a real world or
Assignment details the below scenario describes a real world orAssignment details the below scenario describes a real world or
Assignment details the below scenario describes a real world orhoney725342
 
2.1 Understand problem solving concept
2.1 Understand problem solving concept2.1 Understand problem solving concept
2.1 Understand problem solving conceptFrankie Jones
 
1 introduction to problem solving and programming
1 introduction to problem solving and programming1 introduction to problem solving and programming
1 introduction to problem solving and programmingRheigh Henley Calderon
 
Black Box Testing Techniques by Sampath M
Black Box Testing Techniques by Sampath MBlack Box Testing Techniques by Sampath M
Black Box Testing Techniques by Sampath MForziatech
 
Testing Metrics and why Managers like them
Testing Metrics and why Managers like themTesting Metrics and why Managers like them
Testing Metrics and why Managers like themPractiTest
 
The Risk Questionnaire - by: Adam Knight
  The Risk Questionnaire - by: Adam Knight  The Risk Questionnaire - by: Adam Knight
The Risk Questionnaire - by: Adam KnightPractiTest
 
Six Sigma Green Belt Training Part 8
Six Sigma Green Belt Training Part 8Six Sigma Green Belt Training Part 8
Six Sigma Green Belt Training Part 8Skillogic Solutions
 
Communication skills for testers
Communication skills for testersCommunication skills for testers
Communication skills for testersPractiTest
 
Lecture 5 concept appraisal and selection
Lecture 5   concept appraisal and selectionLecture 5   concept appraisal and selection
Lecture 5 concept appraisal and selectionandibrains
 
S.M.A.R.T & F.O.C.U.S Testing - Increasing the value provided by your testing...
S.M.A.R.T & F.O.C.U.S Testing - Increasing the value provided by your testing...S.M.A.R.T & F.O.C.U.S Testing - Increasing the value provided by your testing...
S.M.A.R.T & F.O.C.U.S Testing - Increasing the value provided by your testing...PractiTest
 
Software Test Estimation
Software Test EstimationSoftware Test Estimation
Software Test EstimationJatin Kochhar
 
Martin Koojj - Testers in the Board of Directors
Martin Koojj - Testers in the Board of DirectorsMartin Koojj - Testers in the Board of Directors
Martin Koojj - Testers in the Board of DirectorsTEST Huddle
 
2018-Sogeti-TestExpo-Intelligent_Predictive_Models.pptx
2018-Sogeti-TestExpo-Intelligent_Predictive_Models.pptx2018-Sogeti-TestExpo-Intelligent_Predictive_Models.pptx
2018-Sogeti-TestExpo-Intelligent_Predictive_Models.pptxMinh Nguyen
 

What's hot (20)

Michael Roar Borlund & Christian Carlsen - Real Exploratory Testing, Now With...
Michael Roar Borlund & Christian Carlsen - Real Exploratory Testing, Now With...Michael Roar Borlund & Christian Carlsen - Real Exploratory Testing, Now With...
Michael Roar Borlund & Christian Carlsen - Real Exploratory Testing, Now With...
 
TOIN - TAUS Tokyo Forum 2015
TOIN - TAUS Tokyo Forum 2015TOIN - TAUS Tokyo Forum 2015
TOIN - TAUS Tokyo Forum 2015
 
Value added testing (VAT)
Value added testing (VAT)Value added testing (VAT)
Value added testing (VAT)
 
John Fodeh - Spend Wisely, Test Well
John Fodeh - Spend Wisely, Test WellJohn Fodeh - Spend Wisely, Test Well
John Fodeh - Spend Wisely, Test Well
 
Assignment details the below scenario describes a real world or
Assignment details the below scenario describes a real world orAssignment details the below scenario describes a real world or
Assignment details the below scenario describes a real world or
 
2.1 Understand problem solving concept
2.1 Understand problem solving concept2.1 Understand problem solving concept
2.1 Understand problem solving concept
 
1 introduction to problem solving and programming
1 introduction to problem solving and programming1 introduction to problem solving and programming
1 introduction to problem solving and programming
 
H evaluation
H evaluationH evaluation
H evaluation
 
Black Box Testing Techniques by Sampath M
Black Box Testing Techniques by Sampath MBlack Box Testing Techniques by Sampath M
Black Box Testing Techniques by Sampath M
 
Testing Metrics and why Managers like them
Testing Metrics and why Managers like themTesting Metrics and why Managers like them
Testing Metrics and why Managers like them
 
Effective Project Execution
Effective Project ExecutionEffective Project Execution
Effective Project Execution
 
The Risk Questionnaire - by: Adam Knight
  The Risk Questionnaire - by: Adam Knight  The Risk Questionnaire - by: Adam Knight
The Risk Questionnaire - by: Adam Knight
 
Six Sigma Green Belt Training Part 8
Six Sigma Green Belt Training Part 8Six Sigma Green Belt Training Part 8
Six Sigma Green Belt Training Part 8
 
CDT Presentation
CDT PresentationCDT Presentation
CDT Presentation
 
Communication skills for testers
Communication skills for testersCommunication skills for testers
Communication skills for testers
 
Lecture 5 concept appraisal and selection
Lecture 5   concept appraisal and selectionLecture 5   concept appraisal and selection
Lecture 5 concept appraisal and selection
 
S.M.A.R.T & F.O.C.U.S Testing - Increasing the value provided by your testing...
S.M.A.R.T & F.O.C.U.S Testing - Increasing the value provided by your testing...S.M.A.R.T & F.O.C.U.S Testing - Increasing the value provided by your testing...
S.M.A.R.T & F.O.C.U.S Testing - Increasing the value provided by your testing...
 
Software Test Estimation
Software Test EstimationSoftware Test Estimation
Software Test Estimation
 
Martin Koojj - Testers in the Board of Directors
Martin Koojj - Testers in the Board of DirectorsMartin Koojj - Testers in the Board of Directors
Martin Koojj - Testers in the Board of Directors
 
2018-Sogeti-TestExpo-Intelligent_Predictive_Models.pptx
2018-Sogeti-TestExpo-Intelligent_Predictive_Models.pptx2018-Sogeti-TestExpo-Intelligent_Predictive_Models.pptx
2018-Sogeti-TestExpo-Intelligent_Predictive_Models.pptx
 

Similar to Test case design techniques

'A critique of testing' UK TMF forum January 2015
'A critique of testing' UK TMF forum January 2015 'A critique of testing' UK TMF forum January 2015
'A critique of testing' UK TMF forum January 2015 Georgina Tilby
 
How much testing is enough
How much testing is enoughHow much testing is enough
How much testing is enoughReti Yulvenia
 
Beyond "Quality Assurance"
Beyond "Quality Assurance"Beyond "Quality Assurance"
Beyond "Quality Assurance"Jason Benton
 
Ambiguous Requirements – Translating the message from C-level to implementation
Ambiguous Requirements – Translating the message from C-level to implementationAmbiguous Requirements – Translating the message from C-level to implementation
Ambiguous Requirements – Translating the message from C-level to implementationGeorgina Tilby
 
Fundamentals_of_Software_testing.pptx
Fundamentals_of_Software_testing.pptxFundamentals_of_Software_testing.pptx
Fundamentals_of_Software_testing.pptxMusaBashir9
 
! Testing for agile teams
! Testing for agile teams! Testing for agile teams
! Testing for agile teamsDennis Popov
 
Computational thinking
Computational thinkingComputational thinking
Computational thinkingr123457
 
credit card fraud detection
credit card fraud detectioncredit card fraud detection
credit card fraud detectionjagan477830
 
Agile Mumbai 2020 Conference | How to get the best ROI on Your Test Automati...
Agile Mumbai 2020 Conference |  How to get the best ROI on Your Test Automati...Agile Mumbai 2020 Conference |  How to get the best ROI on Your Test Automati...
Agile Mumbai 2020 Conference | How to get the best ROI on Your Test Automati...AgileNetwork
 
Dare to Explore: Discover ET!
Dare to Explore: Discover ET!Dare to Explore: Discover ET!
Dare to Explore: Discover ET!Raj Indugula
 
Predictive Analytics in Software Testing
Predictive Analytics in Software TestingPredictive Analytics in Software Testing
Predictive Analytics in Software TestingPavan Kumar Kodedela
 
Test analysis & design good practices@TDT Iasi 17Oct2013
Test analysis & design   good practices@TDT Iasi 17Oct2013Test analysis & design   good practices@TDT Iasi 17Oct2013
Test analysis & design good practices@TDT Iasi 17Oct2013Tabăra de Testare
 
ISTQB CTAL - Test Analyst
ISTQB CTAL - Test AnalystISTQB CTAL - Test Analyst
ISTQB CTAL - Test AnalystSamer Desouky
 
A New Model For Testing
A New Model For TestingA New Model For Testing
A New Model For TestingTEST Huddle
 
Advancing Testing Using Axioms
Advancing Testing Using AxiomsAdvancing Testing Using Axioms
Advancing Testing Using AxiomsSQALab
 

Similar to Test case design techniques (20)

'A critique of testing' UK TMF forum January 2015
'A critique of testing' UK TMF forum January 2015 'A critique of testing' UK TMF forum January 2015
'A critique of testing' UK TMF forum January 2015
 
How much testing is enough
How much testing is enoughHow much testing is enough
How much testing is enough
 
Beyond "Quality Assurance"
Beyond "Quality Assurance"Beyond "Quality Assurance"
Beyond "Quality Assurance"
 
Ambiguous Requirements – Translating the message from C-level to implementation
Ambiguous Requirements – Translating the message from C-level to implementationAmbiguous Requirements – Translating the message from C-level to implementation
Ambiguous Requirements – Translating the message from C-level to implementation
 
Fundamentals_of_Software_testing.pptx
Fundamentals_of_Software_testing.pptxFundamentals_of_Software_testing.pptx
Fundamentals_of_Software_testing.pptx
 
Design testabilty
Design testabiltyDesign testabilty
Design testabilty
 
! Testing for agile teams
! Testing for agile teams! Testing for agile teams
! Testing for agile teams
 
Computational thinking
Computational thinkingComputational thinking
Computational thinking
 
credit card fraud detection
credit card fraud detectioncredit card fraud detection
credit card fraud detection
 
Agile Mumbai 2020 Conference | How to get the best ROI on Your Test Automati...
Agile Mumbai 2020 Conference |  How to get the best ROI on Your Test Automati...Agile Mumbai 2020 Conference |  How to get the best ROI on Your Test Automati...
Agile Mumbai 2020 Conference | How to get the best ROI on Your Test Automati...
 
Dare to Explore: Discover ET!
Dare to Explore: Discover ET!Dare to Explore: Discover ET!
Dare to Explore: Discover ET!
 
Predictive Analytics in Software Testing
Predictive Analytics in Software TestingPredictive Analytics in Software Testing
Predictive Analytics in Software Testing
 
Test analysis & design good practices@TDT Iasi 17Oct2013
Test analysis & design   good practices@TDT Iasi 17Oct2013Test analysis & design   good practices@TDT Iasi 17Oct2013
Test analysis & design good practices@TDT Iasi 17Oct2013
 
ISTQB CTAL - Test Analyst
ISTQB CTAL - Test AnalystISTQB CTAL - Test Analyst
ISTQB CTAL - Test Analyst
 
New model
New modelNew model
New model
 
A New Model For Testing
A New Model For TestingA New Model For Testing
A New Model For Testing
 
ISTQB foundation level - day 2
ISTQB foundation level - day 2ISTQB foundation level - day 2
ISTQB foundation level - day 2
 
L software testing
L   software testingL   software testing
L software testing
 
Advancing Testing Using Axioms
Advancing Testing Using AxiomsAdvancing Testing Using Axioms
Advancing Testing Using Axioms
 
Unit4 for st.pdf
Unit4 for st.pdfUnit4 for st.pdf
Unit4 for st.pdf
 

Recently uploaded

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 

Recently uploaded (20)

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 

Test case design techniques

  • 1. Test case design techniques Webinar Ashutosh Garg
  • 2. Brief about me I am Ashutosh Garg • MBA in Finance and Marketing from IIM Lucknow (PGPWE) • Department Manager at Mediatek Inc. • Trainer and Writer on diverse topics like Agile, MS Excel, Negotiations, Communication, Content Marketing
  • 3. Outline • Suggested Approach for test case design • Sample problem which we are solving • Mind maps and usage in the sample problem • Understanding what your objectives are • Techniques for test case design
  • 5. Mind Map • A mind map is a graphical way of representing ideas and concepts. It helps you to structure information, helping you to understand the requirements in a better way, analyze them better and have fun as well! • It helps to foster creativity, develop problem solving approach and representation in a concise format. • Testing is all about ideas and creativity. At every stage one can use mind maps to organize and be creative. • In this session, we are going to use mind maps for test case design.
  • 7. Sample Problem Type of transaction Weekdays-Day time Weekdays-Night time Weekends Domestic 0.5% 0.75% 1.5% International 0.75% 1% 2% A credit card company will charge the following commission to a book based ecommerce portal based on the time of transaction The maximum purchase a person can do on the website is 100000 INR Need to design the test cases to check the commission calculation function (Server side can be ignored) This is the requirement given. Know thy requirement. Ask as many questions. Examples: When do we consider the day time to be over and when the night time to begin? Is the same cut off date for weekends also? How probable is that someone will do a order of 1 Lakh, are there that expensive items?
  • 8. Mind map for the sample problem
  • 9. Objective of the test case design
  • 10. Mind map for the sample problem
  • 11. Test case design techniques • Specification based techniques • This techniques try to take the external description of the product as input. • This could be the technical specifications, design document or the client’s requirement to design the test case • Structure based techniques • This techniques try to take the internal structure of the product as input. • These techniques comprehensively test the developed code • Experience-Based techniques • This techniques try to take the tester’s experience as the input. • The outcome is based on skills, knowledge and expertise of the people involved.
  • 12. Specification based design techniques Technique Name Definition or Description Boundary Value Analysis As the name suggests, this technique is applied to explore errors at the boundary of the input cases. It aims to catch the potential errors at the boundary Equivalence Class Partitioning Since there might be numerous input cases, input data is divided into class which might show the same behavior. So instead of all cases from a class, a small representative set is chosen. Decision table testing Test cases are designed on the basis of decision tables that are arrived at using different combinations of inputs and their corresponding outputs. State Transition Diagrams Your software will transit from one state to the another. This transition is guided by different rules. We can develop test cases to test the rules and/or test the transitions Use case testing In this case the test case would be directly mapped to the business scenario or a end user functionality
  • 13. Structure based techniques • Statement testing coverage • Decision testing coverage • (Multiple)Conditional testing coverage • All path testing coverage
  • 14. Experience based techniques • Error guessing • Exploratory testing
  • 15. Equivalence class partitioning • Based on the mind maps. Following partitions are clearly visible • Transaction day • [Mon – Fri][Sat-Sun] • Transaction time • [6 AM – 6 PM][6 PM-6 AM] • Transaction Size • [1 – 1000][1000-10000][10000-25000][>25000] • Credit card number • [0-4 digits][5-8 Digits][9-12 Digits][13-16 Digits] • Other cases • [Expiry date of Feb][Expiry date of Jan][Expiry date of April][Expiry date of Dec ][Expiry date of last year of Century] Equivalence Class Partitioning Since there might be numerous input cases, input data is divided into class which might show the same behavior. So instead of all cases from a class, a small representative set is chosen.
  • 16. Boundary Value analysis Boundary Value Analysis As the name suggests, this technique is applied to explore errors at the boundary of the input cases. It aims to catch the potential errors at the boundary
  • 17. Decision table testing Payment form is filled Transaction size is less than 1 lakh? Card Details are valid? Show error popup Card Details are correct? Show error popup Show error popupSuccessful transaction Yes Yes Yes No No No Decision table testing Test cases are designed on the basis of decision tables that are arrived at using different combinations of inputs and their corresponding outputs.
  • 18. State Transition Diagram User Website Server Fills data on the website Sends to the server Response comes from server Response shown to user State Transition Diagrams Your software will transit from one state to the another. This transition is guided by different rules. We can develop test cases to test the rules and/or test the transitions
  • 19. Will there be any overlaps? • Yes. There will be. • So do not make all cases from all techniques. Remember your objective and make accordingly. ○ If your objective is a basic coverage, pick few important pieces from each. Remove the overlapping ones and design case ○ If your objective is a exhaustive coverage, pick all cases from each. Remove the overlaps and design the case ○ If your objective is bugs, ensure basic coverage using point 1 above. Identify potential buggy scenarios and add them as well.
  • 20. Error guessing • Error guessing techniques are based on the tester’s experience. • It might be the general experience of the tester or his experience of testing a similar application or software • Most of you who are experienced testers, know some niche areas where you will always find bugs. These come one or more of the following reasons ○ Previous experience of testing similar applications ○ Understanding of the system under test ○ Knowledge of typical implementation errors ○ Previously troubled areas ○ Historical data ○ Test results • So based on your deep understanding of the software under test or your experience, design test cases which have high potential to find the bugs
  • 21. Exploratory testing • This is by nature not a test case design technique • Exploratory testing is also known as free testing. • Free testing is directly proportional to the tester’s mind. Tester’s creativity, exploring nature, understanding of the concept. • Still in the world, a lot of real bugs are found in exploratory testing. • You can use the mind map as the source and dig both broad and deep to uncover bugs. • The key problem with exploratory testing is how to know coverage and gain confidence ○ Session Based test management is the technique which can be used for it. ○ If you want to learn it, register on this link:
  • 22. Test cases are designed, what next?
  • 23. Optimization • When a feature or module or software is new, it will have more check-ins. So test case might need to run multiple times in a test duration. • However, when the feature or module or software gets stable, it might not need so many runs and we can optimize both the number of cycles and also the test case# • Consider a module which has 100 test cases the number of checkins in each month as below **Note: This is not a thumb rule, this depends purely on the business requirement in your organization
  • 25. UpComing Webinars (They are free as well!) • Webinar on “First Step Towards Automation” ○ https://www.townscript.com/e/first-step • Webinar on “Session based test management” ○ https://www.townscript.com/e/sbtm Join our free QA Community here on Whatsapp:https://chat.whatsapp.com/FERbQKIn7WwB6Q0eaT3QOK