SlideShare a Scribd company logo
1 of 10
Download to read offline
DEFINITION
• TEST CASEDESIGNTECHNIQUESIS A TECHNIQUETHATHELPS TESTERS TOWRITETHE TEST CASESIN
SUCH A WAY THATTEST COVERAGEIS MORE.
• BETTER TEST COVERAGEHELPSTO LOG MORENO OF EXISTING BUGSAND DELIVERQUALITYPRODUCT.
TYPES OF TCDT
• ERRORGUESSING
• EQUIVALENTPARTIONING
• BOUNDARYVALUEANALYSIS
• STATETRANSITIONTECHNIQUES
• DECISIONTABLETECHNIQUES
•ERROR GUESSING
• IT IS ONEOF THE TEST CASEDESIGNTECHNIQUEWHERETESTERS ANALYSEMORESCENARIOSAGAINST
THE EXPECTED OUTCOMETO FINDOUTMOREDEFECTS.
• IN THISTECHNIQUESWEUSEMORENO OF NEGATIVEINPUTSWITHDIFFERENTCOMBINATION.
• NOTE:NEGATIVEINPUTDOES NOTMEAN NEGATIVENO.LIKE –4, -7 ETC. RATHERINPUTWHICHDIFFERS
FROMEXPECTED INPUTMIGHTALSO CONSIDERASNEGATIVEINPUT.
•EQUIVALENT PARTIONING
• IN THIS TECHNIQUE WE DIVIDE THEENTIRE RANGE OF INPUTINTO CLASSES AND THEN PICK ANY ONE VALUE
FROM THE SPECIFIC CLASS, IF TEST CASE GETS PASS FOR THAT INPUT VALUE THEN WE ASSUME TEST CASE
WILL GET PASS FOR ALL THEOTHER VALUES FALL UNDER THAT CLASS RANGE.
• EXAMPLE: THERE IS PAYMENT APP WHICH CAN TRANSFER AMOUNT 1-5000 AT A TIME. NOW WE NEED TO
CHECK THAT AMOUNT FIELD FOR THIS RANGE. NOW WE CAN DIVIDE THIS RANGE INTO DIFFERENT CLASSES
LIKE –499 - 0, 1-500, 501-1000, 1001-1500, 1501-2000, 2001-2500, 2501-3000, 3001-3500, 3501-4000,
4001-4500, 4501-5000, 5001-5500. NOW WE CAN PICK ONEONE VALUE FROM THIS CLASS RANGE AND TEST
THAT FIELD. SUPPOSEI PICKED 20FROM 0-499 RANGE IF TEST CASE WILL GET PASSED FOR THIS
VALUE THEN WILL ASSUME 0-499 RANGE IS TESTED NOW MOVE TO OTHER CLASSES.
• NOTE: THERE IS NO ANY RULE THAT SAYS NO.OF DIVISION INTO CLASSES IT'S UP TO TESTERS HOW THEY
DIVIDE. AND ALSO THERE IS NO ANY RULE TO PICK ONLY ONETEST INPUTFROM THE RANGE. TESTERS
MIGHT PICK MULTIPLEVALUES FROM EACH CLASS AS TEST INPUT AND CHECK.
•BOUNDARY VALUE ANALYSIS
• IN THISTECHNIQUEWEUSE ONESMALL FORMULATO TEST THE SPECIFICRANGEOFINPUT.
• SUPPOSEWEARETAKING SAMEEXAMPLEWHICHDISCUSSEDINEQUIVALENTPARTIONING,THERE
ISPAYMENTAPPWHICHCAN TRANSFERAMOUNT1-5000 ATA TIME.WE DIVIDEDTHISRANGE
INTO MULTIPLECLASSES--> –499- 0, 1-500, 501-1000, 1001-1500, 1501-2000, 2001-2500, 2501-
3000, 3001-3500, 3501-4000, 4001-4500, 4501-5000, 5001-5500. GREEN ONEIS
POSITIVEINPUTSANDREDONEISNEGATIVE.NOWWECAN APPLYBELOWFORMULAFOREACHRANGE
X-Y =X-1, X, X+1, Y-1, Y,Y+1.
1001-1500 =1000, 1001, 1002, 1499, 1500, 1501
• NOTE:THIS TECHNIQUEALWAYSUSEFORRANGEOF VALUES.
•STATE TRANSITION TECHNIQUE
• THISISTHE TECHNIQUEWHEREWETEST THE DIFFERENTPHASES/STAGESOFTHEAPPLICATION.
• EXAMPLE: THEREISA CONDITIONINYOURAPPLICATIONLIKEIF USER TRY TO DO THE PAYMENTWITH
INVALIDAMOUNTMORETHAN TWICETHEN BLOCKTHE USERFOR 120SECS. THEN FLOWWILLBE
•DECISION TABLE TECHNIQUES
• THIS TECHNIQUEIS ALSO KNOWNAS CAUSEANDEFFECTTABLE, IN THISTABLEWE COMBINEMULTIPLE
CONDITIONSANDANALYSISTHEIREFFECTINFORMSOFTABULARFORM.
• LET US CONSIDERASCENARIO,WHEREWEHAVE 3 CONDITIONS.
1. FIRSTTIME USER WILLGET100 RUPEESINTHE ACCOUNT,
2.IF SOMEONESHARETHE APPWITHFRIENDSANDTHEY INSTALLIT, EACHINSTALLATIONWILLGIVE50
RUPEESTO THE PERSONUPTO 4 LIMIT.
3. IF 5 ORMORETHAN 5 SUGGESTEDMEMBERSAREINSTALLINGAPP THEN YOU WILLGET350 RUPEES.
• FORMULA=2^N---> N ISNO OF CONDITIONS.
Rules
1 2 3 4 5 6 7 8
Conditions
First Time
User
T T T T F F F F
Shared App
link with
Friends < =4
T T F F T T F F
Shared
App link
with Friends
>=5
T F T F T F T F
Result
-Ve Test
Case
Correct Correct Correct
-Ve
Test Case
Correct (if
not shared
before]
Correct (if
not shared b
efore]
Correct
Test_Case_Design_Techniques

More Related Content

Similar to Test_Case_Design_Techniques

QUALITY control in hematology by Dr yogeeta.pptx
QUALITY  control in hematology by Dr yogeeta.pptxQUALITY  control in hematology by Dr yogeeta.pptx
QUALITY control in hematology by Dr yogeeta.pptxYogeetaTanty1
 
From Screening to QC: Development Considerations for Octet Methods
From Screening to QC: Development Considerations for Octet MethodsFrom Screening to QC: Development Considerations for Octet Methods
From Screening to QC: Development Considerations for Octet MethodsKBI Biopharma
 
Operations management takira motors
Operations management takira motorsOperations management takira motors
Operations management takira motorsShrey Agarwal
 
160627 giab for festival sv workshop
160627 giab for festival sv workshop160627 giab for festival sv workshop
160627 giab for festival sv workshopGenomeInABottle
 
Om lect 09(r3-jul 11)_quality management_basics_mms_sies
Om lect 09(r3-jul 11)_quality management_basics_mms_siesOm lect 09(r3-jul 11)_quality management_basics_mms_sies
Om lect 09(r3-jul 11)_quality management_basics_mms_siesvideoaakash15
 
Lecture 2 diagnostic molecular microbiology bls
Lecture 2 diagnostic molecular microbiology blsLecture 2 diagnostic molecular microbiology bls
Lecture 2 diagnostic molecular microbiology blsBruno Mmassy
 
Chapter 4 measurement accuracy (1)
Chapter 4   measurement accuracy (1)Chapter 4   measurement accuracy (1)
Chapter 4 measurement accuracy (1)ashutoshbarua1
 
JF608: Quality Control - Unit 5
JF608: Quality Control - Unit 5JF608: Quality Control - Unit 5
JF608: Quality Control - Unit 5Asraf Malik
 
Incorporating Peripherally Inserted Central Catheters (PICC) into hospital cl...
Incorporating Peripherally Inserted Central Catheters (PICC) into hospital cl...Incorporating Peripherally Inserted Central Catheters (PICC) into hospital cl...
Incorporating Peripherally Inserted Central Catheters (PICC) into hospital cl...HTAi Bilbao 2012
 
An emerging step : Data Warehousing to Pattern Warehousing
An emerging step : Data Warehousing to Pattern WarehousingAn emerging step : Data Warehousing to Pattern Warehousing
An emerging step : Data Warehousing to Pattern WarehousingHarshita S. Jain
 
Week 11 Model Evalaution Model Evaluation
Week 11 Model Evalaution Model EvaluationWeek 11 Model Evalaution Model Evaluation
Week 11 Model Evalaution Model Evaluationkhairulhuda242
 
JBK Pipetting_Cellometer Final Poster
JBK Pipetting_Cellometer Final PosterJBK Pipetting_Cellometer Final Poster
JBK Pipetting_Cellometer Final PosterJohn Kelley
 
So you want to do a: RNAseq experiment, Differential Gene Expression Analysis
So you want to do a: RNAseq experiment, Differential Gene Expression AnalysisSo you want to do a: RNAseq experiment, Differential Gene Expression Analysis
So you want to do a: RNAseq experiment, Differential Gene Expression AnalysisUniversity of California, Davis
 
The Importance of Quality Control Steps in Experiments
The Importance of Quality Control Steps in ExperimentsThe Importance of Quality Control Steps in Experiments
The Importance of Quality Control Steps in ExperimentsQIAGEN
 

Similar to Test_Case_Design_Techniques (20)

QUALITY control in hematology by Dr yogeeta.pptx
QUALITY  control in hematology by Dr yogeeta.pptxQUALITY  control in hematology by Dr yogeeta.pptx
QUALITY control in hematology by Dr yogeeta.pptx
 
From Screening to QC: Development Considerations for Octet Methods
From Screening to QC: Development Considerations for Octet MethodsFrom Screening to QC: Development Considerations for Octet Methods
From Screening to QC: Development Considerations for Octet Methods
 
Operations management takira motors
Operations management takira motorsOperations management takira motors
Operations management takira motors
 
160627 giab for festival sv workshop
160627 giab for festival sv workshop160627 giab for festival sv workshop
160627 giab for festival sv workshop
 
Om lect 09(r3-jul 11)_quality management_basics_mms_sies
Om lect 09(r3-jul 11)_quality management_basics_mms_siesOm lect 09(r3-jul 11)_quality management_basics_mms_sies
Om lect 09(r3-jul 11)_quality management_basics_mms_sies
 
Lecture 2 diagnostic molecular microbiology bls
Lecture 2 diagnostic molecular microbiology blsLecture 2 diagnostic molecular microbiology bls
Lecture 2 diagnostic molecular microbiology bls
 
Quality r (2) (2)
Quality r (2) (2)Quality r (2) (2)
Quality r (2) (2)
 
Quality r (2) (2)
Quality r (2) (2)Quality r (2) (2)
Quality r (2) (2)
 
Chapter 4 measurement accuracy (1)
Chapter 4   measurement accuracy (1)Chapter 4   measurement accuracy (1)
Chapter 4 measurement accuracy (1)
 
JF608: Quality Control - Unit 5
JF608: Quality Control - Unit 5JF608: Quality Control - Unit 5
JF608: Quality Control - Unit 5
 
crossvalidation.pptx
crossvalidation.pptxcrossvalidation.pptx
crossvalidation.pptx
 
Incorporating Peripherally Inserted Central Catheters (PICC) into hospital cl...
Incorporating Peripherally Inserted Central Catheters (PICC) into hospital cl...Incorporating Peripherally Inserted Central Catheters (PICC) into hospital cl...
Incorporating Peripherally Inserted Central Catheters (PICC) into hospital cl...
 
An emerging step : Data Warehousing to Pattern Warehousing
An emerging step : Data Warehousing to Pattern WarehousingAn emerging step : Data Warehousing to Pattern Warehousing
An emerging step : Data Warehousing to Pattern Warehousing
 
New method introduction
New method introductionNew method introduction
New method introduction
 
Week 11 Model Evalaution Model Evaluation
Week 11 Model Evalaution Model EvaluationWeek 11 Model Evalaution Model Evaluation
Week 11 Model Evalaution Model Evaluation
 
JBK Pipetting_Cellometer Final Poster
JBK Pipetting_Cellometer Final PosterJBK Pipetting_Cellometer Final Poster
JBK Pipetting_Cellometer Final Poster
 
Qc in xray
Qc in xrayQc in xray
Qc in xray
 
So you want to do a: RNAseq experiment, Differential Gene Expression Analysis
So you want to do a: RNAseq experiment, Differential Gene Expression AnalysisSo you want to do a: RNAseq experiment, Differential Gene Expression Analysis
So you want to do a: RNAseq experiment, Differential Gene Expression Analysis
 
WESTGARD RULES
WESTGARD RULESWESTGARD RULES
WESTGARD RULES
 
The Importance of Quality Control Steps in Experiments
The Importance of Quality Control Steps in ExperimentsThe Importance of Quality Control Steps in Experiments
The Importance of Quality Control Steps in Experiments
 

More from Mithilesh Singh (20)

Cucumber Basics.pdf
Cucumber Basics.pdfCucumber Basics.pdf
Cucumber Basics.pdf
 
Data Migration.pdf
Data Migration.pdfData Migration.pdf
Data Migration.pdf
 
SDLC Models.pdf
SDLC Models.pdfSDLC Models.pdf
SDLC Models.pdf
 
Performance Testing
Performance TestingPerformance Testing
Performance Testing
 
Software_requirement_collection
Software_requirement_collectionSoftware_requirement_collection
Software_requirement_collection
 
Stub_&_Drive
Stub_&_DriveStub_&_Drive
Stub_&_Drive
 
Functional_Testing_Part-1
Functional_Testing_Part-1Functional_Testing_Part-1
Functional_Testing_Part-1
 
TestersMindSet 2022
TestersMindSet 2022TestersMindSet 2022
TestersMindSet 2022
 
API_Testing_with_Postman
API_Testing_with_PostmanAPI_Testing_with_Postman
API_Testing_with_Postman
 
Agile_basics
Agile_basicsAgile_basics
Agile_basics
 
Selenium_Grid
Selenium_GridSelenium_Grid
Selenium_Grid
 
Appium_set_up
Appium_set_upAppium_set_up
Appium_set_up
 
Appium- part 1
Appium- part 1Appium- part 1
Appium- part 1
 
Alpha & Beta Testing
Alpha & Beta TestingAlpha & Beta Testing
Alpha & Beta Testing
 
Severity and Priority
Severity and PrioritySeverity and Priority
Severity and Priority
 
GIT_Overview.
GIT_Overview.GIT_Overview.
GIT_Overview.
 
Selenium-Locators
Selenium-LocatorsSelenium-Locators
Selenium-Locators
 
Browser_Stack_Intro
Browser_Stack_IntroBrowser_Stack_Intro
Browser_Stack_Intro
 
UI_UX_testing tips
UI_UX_testing tipsUI_UX_testing tips
UI_UX_testing tips
 
Emulator vs Simulator
Emulator vs SimulatorEmulator vs Simulator
Emulator vs Simulator
 

Recently uploaded

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
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
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
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
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
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
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 

Recently uploaded (20)

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
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
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
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
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
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
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 

Test_Case_Design_Techniques

  • 1.
  • 2. DEFINITION • TEST CASEDESIGNTECHNIQUESIS A TECHNIQUETHATHELPS TESTERS TOWRITETHE TEST CASESIN SUCH A WAY THATTEST COVERAGEIS MORE. • BETTER TEST COVERAGEHELPSTO LOG MORENO OF EXISTING BUGSAND DELIVERQUALITYPRODUCT.
  • 3. TYPES OF TCDT • ERRORGUESSING • EQUIVALENTPARTIONING • BOUNDARYVALUEANALYSIS • STATETRANSITIONTECHNIQUES • DECISIONTABLETECHNIQUES
  • 4. •ERROR GUESSING • IT IS ONEOF THE TEST CASEDESIGNTECHNIQUEWHERETESTERS ANALYSEMORESCENARIOSAGAINST THE EXPECTED OUTCOMETO FINDOUTMOREDEFECTS. • IN THISTECHNIQUESWEUSEMORENO OF NEGATIVEINPUTSWITHDIFFERENTCOMBINATION. • NOTE:NEGATIVEINPUTDOES NOTMEAN NEGATIVENO.LIKE –4, -7 ETC. RATHERINPUTWHICHDIFFERS FROMEXPECTED INPUTMIGHTALSO CONSIDERASNEGATIVEINPUT.
  • 5. •EQUIVALENT PARTIONING • IN THIS TECHNIQUE WE DIVIDE THEENTIRE RANGE OF INPUTINTO CLASSES AND THEN PICK ANY ONE VALUE FROM THE SPECIFIC CLASS, IF TEST CASE GETS PASS FOR THAT INPUT VALUE THEN WE ASSUME TEST CASE WILL GET PASS FOR ALL THEOTHER VALUES FALL UNDER THAT CLASS RANGE. • EXAMPLE: THERE IS PAYMENT APP WHICH CAN TRANSFER AMOUNT 1-5000 AT A TIME. NOW WE NEED TO CHECK THAT AMOUNT FIELD FOR THIS RANGE. NOW WE CAN DIVIDE THIS RANGE INTO DIFFERENT CLASSES LIKE –499 - 0, 1-500, 501-1000, 1001-1500, 1501-2000, 2001-2500, 2501-3000, 3001-3500, 3501-4000, 4001-4500, 4501-5000, 5001-5500. NOW WE CAN PICK ONEONE VALUE FROM THIS CLASS RANGE AND TEST THAT FIELD. SUPPOSEI PICKED 20FROM 0-499 RANGE IF TEST CASE WILL GET PASSED FOR THIS VALUE THEN WILL ASSUME 0-499 RANGE IS TESTED NOW MOVE TO OTHER CLASSES. • NOTE: THERE IS NO ANY RULE THAT SAYS NO.OF DIVISION INTO CLASSES IT'S UP TO TESTERS HOW THEY DIVIDE. AND ALSO THERE IS NO ANY RULE TO PICK ONLY ONETEST INPUTFROM THE RANGE. TESTERS MIGHT PICK MULTIPLEVALUES FROM EACH CLASS AS TEST INPUT AND CHECK.
  • 6. •BOUNDARY VALUE ANALYSIS • IN THISTECHNIQUEWEUSE ONESMALL FORMULATO TEST THE SPECIFICRANGEOFINPUT. • SUPPOSEWEARETAKING SAMEEXAMPLEWHICHDISCUSSEDINEQUIVALENTPARTIONING,THERE ISPAYMENTAPPWHICHCAN TRANSFERAMOUNT1-5000 ATA TIME.WE DIVIDEDTHISRANGE INTO MULTIPLECLASSES--> –499- 0, 1-500, 501-1000, 1001-1500, 1501-2000, 2001-2500, 2501- 3000, 3001-3500, 3501-4000, 4001-4500, 4501-5000, 5001-5500. GREEN ONEIS POSITIVEINPUTSANDREDONEISNEGATIVE.NOWWECAN APPLYBELOWFORMULAFOREACHRANGE X-Y =X-1, X, X+1, Y-1, Y,Y+1. 1001-1500 =1000, 1001, 1002, 1499, 1500, 1501 • NOTE:THIS TECHNIQUEALWAYSUSEFORRANGEOF VALUES.
  • 7. •STATE TRANSITION TECHNIQUE • THISISTHE TECHNIQUEWHEREWETEST THE DIFFERENTPHASES/STAGESOFTHEAPPLICATION. • EXAMPLE: THEREISA CONDITIONINYOURAPPLICATIONLIKEIF USER TRY TO DO THE PAYMENTWITH INVALIDAMOUNTMORETHAN TWICETHEN BLOCKTHE USERFOR 120SECS. THEN FLOWWILLBE
  • 8. •DECISION TABLE TECHNIQUES • THIS TECHNIQUEIS ALSO KNOWNAS CAUSEANDEFFECTTABLE, IN THISTABLEWE COMBINEMULTIPLE CONDITIONSANDANALYSISTHEIREFFECTINFORMSOFTABULARFORM. • LET US CONSIDERASCENARIO,WHEREWEHAVE 3 CONDITIONS. 1. FIRSTTIME USER WILLGET100 RUPEESINTHE ACCOUNT, 2.IF SOMEONESHARETHE APPWITHFRIENDSANDTHEY INSTALLIT, EACHINSTALLATIONWILLGIVE50 RUPEESTO THE PERSONUPTO 4 LIMIT. 3. IF 5 ORMORETHAN 5 SUGGESTEDMEMBERSAREINSTALLINGAPP THEN YOU WILLGET350 RUPEES. • FORMULA=2^N---> N ISNO OF CONDITIONS.
  • 9. Rules 1 2 3 4 5 6 7 8 Conditions First Time User T T T T F F F F Shared App link with Friends < =4 T T F F T T F F Shared App link with Friends >=5 T F T F T F T F Result -Ve Test Case Correct Correct Correct -Ve Test Case Correct (if not shared before] Correct (if not shared b efore] Correct