SlideShare uma empresa Scribd logo
1 de 34
1
Design test case technique
Equivalence partitioning
And Boundary value analysis
Estimated Time: 120 mins
Trainer: Tran Thanh Tuan
At the end of this course, you are
going to know:
To provide an approach to design test
case.
Understand how to apply equivalence
partitioning and boundary to design
test case.
PurposePurpose
1.Introduction
2.What is equivalence partitioning?
3.Identify equivalence classes
4.Define the test cases
5.Combining with boundary analyze to
choose data
6.Examples
7.Q&A
OutlineOutline
IntroductionIntroduction
Google search :
how many test cases
do we need?
Advantages of EPAdvantages of EP
- To reduce the number of test cases to a
necessary minimum
- To select the right test cases to cover all
possible scenarios ( of course not to be
absolutely sure)
What is EP?What is EP?
Input, output
domain
Equivalence
classes
How to use to design testcaseHow to use to design testcase
Test case design by EP proceeds into 2 steps:
- Identify equivalence classes
- Define the test cases
1. Introduction
2. What is equivalence partitioning ?
3. Identify equivalence class
4. Define the test case
5. Combining with boundary analyze to
choose data
6. Examples
7. Q&A
OutlineOutline
• Input, output: clue from requirement
• Equivalence classes are of 2 types: valid and
invalid
• Ex: identify equivalence classes for this
requirement “ if a pupil has total score >= 75,
he will pass the exam, otherwise will fail
(total score is an integer)”
Identify equivalence classesIdentify equivalence classes
Identify equivalence classesIdentify equivalence classes
Total score Error messageSystem
Fail
Pass
Valid equivalence
classes
Invalid
equivalence
classes
Total score 1. >=75 2. <75
3. Null
4. String
Result of the
exam
5. Pass
6. Fail
7. Error message
Identify equivalence classesIdentify equivalence classes
1. Introduction
2. What is equivalence partitioning ?
3. Identify equivalence class
4. Define the test case
5. Combining with boundary analyze to
choose data
6. Examples
7. Q&A
OutlineOutline
• Assign a unique number to each equivalence class
• For valid case: until all valid equivalence classes have
been covered by test case, write a new test case
covering as many uncover valid equivalence
classes as possible.
• For invalid case: until all invalid equivalence classes
have been covered by test case, write a new test case
that cover one, and only one, of the uncovered
invalid equivalence classes.
Define test casesDefine test cases
• Example: write test case for “ if a pupil has total score >= 75,
he will be past the exam, otherwise will fail ”, using
equivalence partitioning.
Define test casesDefine test cases
Conditions Valid
equivalence
class
Invalid
equivalence
class
Total score 1. >=75 2. <75
3. Null
4. String
Result of the
exam
5. Pass
6. Fail
7. Error
message
Test
case:
• 1, 5
• 2, 6
• 3, 7
• 4, 7
1. Introduction
2. What is equivalence partitioning?
3. Identify equivalence classes
4. Define the test cases
5. Combining with boundary analyze to choose
data
6. Examples
7. Q&A
OutlineOutline
Boundary analyze and EPBoundary analyze and EP
What is Boundary analyze?
- Is a technique to refine
equivalence partitioning
- Concentrate on cases at the
extreme ends of each
equivalence class.
Boundary analyze and EPBoundary analyze and EP
Boundary values
Boundary analyze and EPBoundary analyze and EP
Boundary value analysis?
- Is to use input variable value at the
minimum, just above minimum, just below
minimum, normal, at the maximum, just
below maximum, just above maximum
Boundary analyze and EPBoundary analyze and EP
Example:
• “ if a pupil has total score >= 75, he will pass the exam, otherwise will
fail (total score is an integer)”
Conditions Valid
equivalence
classes
Invalid
equivalence
classes
Total score 1. >=75 2. <75
3. Null
4. String
Result of
the exam
5. Pass
6. Fail
7. Error
message
Test
case:
1. 1, 5
2. 2, 6
3. 3, 7
4. 4, 7
Data to test:
1a. 75, pass
1b. 76, pass
2. 74, fail
3. Null, error
message
4a. A, error
message
4b. I am a tester of
EW and I love
this job, error
message
1. Introduction
2. What is equivalence partitioning?
3. Identify equivalence classes
4. Define the test cases
5. Combining with boundary analyze to choose
data
6. Examples
7. Q&A
OutlineOutline
1. Login function
- Requirement:
The Registered User enters credentials – a username
and password – and submits the credentials.
The System verifies the user’s credentials.
The System presents the homepage with hello user name and
log out link.
If the user has been inactive, the system presents a
message indicating that the account has been inactive.
If invalid username or password, the system determines that
the combination of username and password is in error.
( username: maximum 25 chars, not have space, unique, a-z,
A-Z, number, password: minimum 6 chars long)
ExamplesExamples
ExamplesExamples
Database
Homepage
System
Password
Username
Button
Submit
Error message of
username or
password is
incorrect
Error message of
inactive account
Nothing happen
Relation of
username
and
password
• Identify equivalence class:
ExamplesExamples
• Identify test case
Valid case
– 1,2,3,4,5,12,13,14,18,20,21,24,27
– 1,2,3,4,12,13,14,18,20,21,25,27
Invalid case
– 1,6,12,13,14,19,22,21,24,28
– 7,12,19,22,21,25,28
– 8,4,5,14,19,22,21,25,28
– 9,1,2,3,4,12,18,20,21,24,29
– 10,14,18,22,21,24,28
– 11,13,19,21,22,24,28
– 1,3,4,15,19,20,23,25,28
– 1,3,4,16,19,20,24,28
– 1,3,4,17,19,20,24,28
– 1,3,4,12,13,18,25,26,30
ExamplesExamples
1. Search function
- Requirement:
User fill in search field then click search. The system
will find all search string in the document and
highlight them.
If no one is found, message on form to indicate no
result found.
( search like Notepad)
ExamplesExamples
ExamplesExamples
Relationship
of search
text and
search data
Search
Search data
Search text
Message
indicates that no
search found
Highlight all the
occurrences of the
search text in the
search data
Nothing happen
Button
Search
Relationship
of search
text and
button
Search
• Identify equivalence class:
ExamplesExamples
• Identify test case
Valid case
– 1,10,12,13, 17,21,22
– 2,10,12,14,18,21,25
– 3,4,5,6,7,8,10,12,14,17,21,25
Invalid case
– 9,21
– 3,4,8,11,12,17,21,24, 26
– 3,6,7,10,13,15,18,21,22
– 3,10,12,14,19,20,23
ExamplesExamples
One page summaryOne page summary
• To provide an approach to design test
case 
• Understand how to apply equivalence
partitioning and boundary analysis to
design test case 
PurposePurpose
1. Introduction
2. What is equivalence partitioning?
3. Identify equivalence classes
4. Define the test cases
5. Combining with boundary analyze to choose
data
6. Examples
7. Q&A
OutlineOutline
Q&AQ&A
ReferencesReferences
• The art of software testing
• Internet
Thank you!!!

Mais conteúdo relacionado

Mais procurados

Test design techniques: Structured and Experienced-based techniques
Test design techniques: Structured and Experienced-based techniquesTest design techniques: Structured and Experienced-based techniques
Test design techniques: Structured and Experienced-based techniquesKhuong Nguyen
 
Testing documents
Testing documentsTesting documents
Testing documentssuhasreddy1
 
Testing in multiplatform environment
Testing in multiplatform environmentTesting in multiplatform environment
Testing in multiplatform environmentshivanichauhan1953
 
Software testing methods, levels and types
Software testing methods, levels and typesSoftware testing methods, levels and types
Software testing methods, levels and typesConfiz
 
Software testing - EXAMPLE
Software testing  - EXAMPLESoftware testing  - EXAMPLE
Software testing - EXAMPLEpriyasoundar
 
Software Testing - Test Design Techniques
Software Testing - Test Design TechniquesSoftware Testing - Test Design Techniques
Software Testing - Test Design TechniquesRegina Vitalicio
 
Control Flow Testing
Control Flow TestingControl Flow Testing
Control Flow TestingHirra Sultan
 
Se (techniques for black box testing ppt)
Se (techniques for black box testing ppt)Se (techniques for black box testing ppt)
Se (techniques for black box testing ppt)Mani Kanth
 
Selenium Test Automation
Selenium Test AutomationSelenium Test Automation
Selenium Test AutomationBabuDevanandam
 
Fundamentals of Software Testing
Fundamentals of Software TestingFundamentals of Software Testing
Fundamentals of Software TestingSagar Joshi
 
Equivalence class testing
Equivalence  class testingEquivalence  class testing
Equivalence class testingMani Kanth
 
White box black box & gray box testing
White box black box & gray box testingWhite box black box & gray box testing
White box black box & gray box testingHimanshu
 
Testing and types of Testing
Testing and types of TestingTesting and types of Testing
Testing and types of TestingMunaam Munawar
 
White Box testing by Pankaj Thakur, NITTTR Chandigarh
White Box testing by Pankaj Thakur, NITTTR ChandigarhWhite Box testing by Pankaj Thakur, NITTTR Chandigarh
White Box testing by Pankaj Thakur, NITTTR ChandigarhPankaj Thakur
 
Testing, black ,white and gray box testing
Testing, black ,white and gray box testingTesting, black ,white and gray box testing
Testing, black ,white and gray box testingAamir Shakir
 
Testing concepts [3] - Software Testing Techniques (CIS640)
Testing concepts [3] - Software Testing Techniques (CIS640)Testing concepts [3] - Software Testing Techniques (CIS640)
Testing concepts [3] - Software Testing Techniques (CIS640)Venkatesh Prasad Ranganath
 

Mais procurados (20)

Test design techniques: Structured and Experienced-based techniques
Test design techniques: Structured and Experienced-based techniquesTest design techniques: Structured and Experienced-based techniques
Test design techniques: Structured and Experienced-based techniques
 
Testing documents
Testing documentsTesting documents
Testing documents
 
Testing in multiplatform environment
Testing in multiplatform environmentTesting in multiplatform environment
Testing in multiplatform environment
 
Effective Software Test Case Design Approach
Effective Software Test Case Design ApproachEffective Software Test Case Design Approach
Effective Software Test Case Design Approach
 
Software testing methods, levels and types
Software testing methods, levels and typesSoftware testing methods, levels and types
Software testing methods, levels and types
 
3.software testing
3.software testing3.software testing
3.software testing
 
Software testing - EXAMPLE
Software testing  - EXAMPLESoftware testing  - EXAMPLE
Software testing - EXAMPLE
 
Software Testing - Test Design Techniques
Software Testing - Test Design TechniquesSoftware Testing - Test Design Techniques
Software Testing - Test Design Techniques
 
Black box & white-box testing technique
Black box & white-box testing techniqueBlack box & white-box testing technique
Black box & white-box testing technique
 
Control Flow Testing
Control Flow TestingControl Flow Testing
Control Flow Testing
 
Se (techniques for black box testing ppt)
Se (techniques for black box testing ppt)Se (techniques for black box testing ppt)
Se (techniques for black box testing ppt)
 
Selenium Test Automation
Selenium Test AutomationSelenium Test Automation
Selenium Test Automation
 
Fundamentals of Software Testing
Fundamentals of Software TestingFundamentals of Software Testing
Fundamentals of Software Testing
 
Equivalence class testing
Equivalence  class testingEquivalence  class testing
Equivalence class testing
 
White box black box & gray box testing
White box black box & gray box testingWhite box black box & gray box testing
White box black box & gray box testing
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 
Testing and types of Testing
Testing and types of TestingTesting and types of Testing
Testing and types of Testing
 
White Box testing by Pankaj Thakur, NITTTR Chandigarh
White Box testing by Pankaj Thakur, NITTTR ChandigarhWhite Box testing by Pankaj Thakur, NITTTR Chandigarh
White Box testing by Pankaj Thakur, NITTTR Chandigarh
 
Testing, black ,white and gray box testing
Testing, black ,white and gray box testingTesting, black ,white and gray box testing
Testing, black ,white and gray box testing
 
Testing concepts [3] - Software Testing Techniques (CIS640)
Testing concepts [3] - Software Testing Techniques (CIS640)Testing concepts [3] - Software Testing Techniques (CIS640)
Testing concepts [3] - Software Testing Techniques (CIS640)
 

Destaque

Boundary value analysis and equivalence partitioning
Boundary value analysis and equivalence partitioningBoundary value analysis and equivalence partitioning
Boundary value analysis and equivalence partitioningSneha Singh
 
4. The Software Development Process - Testing
4. The Software Development Process - Testing4. The Software Development Process - Testing
4. The Software Development Process - TestingForrester High School
 
1. The Software Development Process - Analysis
1. The Software Development Process - Analysis1. The Software Development Process - Analysis
1. The Software Development Process - AnalysisForrester High School
 
Reporting On The Testing Process
Reporting On The Testing ProcessReporting On The Testing Process
Reporting On The Testing Processgavhays
 
Equivalence partitioning
Equivalence partitioningEquivalence partitioning
Equivalence partitioningSarjana Muda
 
Equivalence Class Testing [8] - Software Testing Techniques (CIS640)
Equivalence Class Testing [8] - Software Testing Techniques (CIS640)Equivalence Class Testing [8] - Software Testing Techniques (CIS640)
Equivalence Class Testing [8] - Software Testing Techniques (CIS640)Venkatesh Prasad Ranganath
 

Destaque (6)

Boundary value analysis and equivalence partitioning
Boundary value analysis and equivalence partitioningBoundary value analysis and equivalence partitioning
Boundary value analysis and equivalence partitioning
 
4. The Software Development Process - Testing
4. The Software Development Process - Testing4. The Software Development Process - Testing
4. The Software Development Process - Testing
 
1. The Software Development Process - Analysis
1. The Software Development Process - Analysis1. The Software Development Process - Analysis
1. The Software Development Process - Analysis
 
Reporting On The Testing Process
Reporting On The Testing ProcessReporting On The Testing Process
Reporting On The Testing Process
 
Equivalence partitioning
Equivalence partitioningEquivalence partitioning
Equivalence partitioning
 
Equivalence Class Testing [8] - Software Testing Techniques (CIS640)
Equivalence Class Testing [8] - Software Testing Techniques (CIS640)Equivalence Class Testing [8] - Software Testing Techniques (CIS640)
Equivalence Class Testing [8] - Software Testing Techniques (CIS640)
 

Semelhante a Design Test Case Technique (Equivalence partitioning And Boundary value analysis)

ISTQB, ISEB Lecture Notes- 4
ISTQB, ISEB Lecture Notes- 4ISTQB, ISEB Lecture Notes- 4
ISTQB, ISEB Lecture Notes- 4onsoftwaretest
 
Generating Test Cases
Generating Test CasesGenerating Test Cases
Generating Test CasesVivekRajawat9
 
Aligning tests to standards
Aligning tests to standardsAligning tests to standards
Aligning tests to standardsFariba Chamani
 
Orthogonal array approach a case study
Orthogonal array approach   a case studyOrthogonal array approach   a case study
Orthogonal array approach a case studyKarthikeyan Rajendran
 
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
 
Testcase design techniques final
Testcase design techniques finalTestcase design techniques final
Testcase design techniques finalshraavank
 
Week 11 Model Evalaution Model Evaluation
Week 11 Model Evalaution Model EvaluationWeek 11 Model Evalaution Model Evaluation
Week 11 Model Evalaution Model Evaluationkhairulhuda242
 
Machine learning and_nlp
Machine learning and_nlpMachine learning and_nlp
Machine learning and_nlpankit_ppt
 
Testcase training
Testcase trainingTestcase training
Testcase trainingmedsherb
 
Test Coverage: An Art and a Science
Test Coverage: An Art and a ScienceTest Coverage: An Art and a Science
Test Coverage: An Art and a ScienceTeamQualityPro
 
Session 08 - Test Case Design and Technique
Session 08 - Test Case Design and TechniqueSession 08 - Test Case Design and Technique
Session 08 - Test Case Design and TechniquePoojaLQA
 
Dakiry_qastandup_Olia Didyk_testdesign
Dakiry_qastandup_Olia Didyk_testdesignDakiry_qastandup_Olia Didyk_testdesign
Dakiry_qastandup_Olia Didyk_testdesignDakiry
 

Semelhante a Design Test Case Technique (Equivalence partitioning And Boundary value analysis) (20)

ISTQB, ISEB Lecture Notes- 4
ISTQB, ISEB Lecture Notes- 4ISTQB, ISEB Lecture Notes- 4
ISTQB, ISEB Lecture Notes- 4
 
Unit testing
Unit testingUnit testing
Unit testing
 
black-box-1.pdf
black-box-1.pdfblack-box-1.pdf
black-box-1.pdf
 
SE%200-Testing%20(2).pptx
SE%200-Testing%20(2).pptxSE%200-Testing%20(2).pptx
SE%200-Testing%20(2).pptx
 
Generating Test Cases
Generating Test CasesGenerating Test Cases
Generating Test Cases
 
Aligning tests to standards
Aligning tests to standardsAligning tests to standards
Aligning tests to standards
 
Unit2 for st
Unit2 for stUnit2 for st
Unit2 for st
 
G53 qat09pdf6up
G53 qat09pdf6upG53 qat09pdf6up
G53 qat09pdf6up
 
Orthogonal array approach a case study
Orthogonal array approach   a case studyOrthogonal array approach   a case study
Orthogonal array approach a case study
 
Testing
TestingTesting
Testing
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 
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
 
Testcase design techniques final
Testcase design techniques finalTestcase design techniques final
Testcase design techniques final
 
Testing techniques
Testing techniquesTesting techniques
Testing techniques
 
Week 11 Model Evalaution Model Evaluation
Week 11 Model Evalaution Model EvaluationWeek 11 Model Evalaution Model Evaluation
Week 11 Model Evalaution Model Evaluation
 
Machine learning and_nlp
Machine learning and_nlpMachine learning and_nlp
Machine learning and_nlp
 
Testcase training
Testcase trainingTestcase training
Testcase training
 
Test Coverage: An Art and a Science
Test Coverage: An Art and a ScienceTest Coverage: An Art and a Science
Test Coverage: An Art and a Science
 
Session 08 - Test Case Design and Technique
Session 08 - Test Case Design and TechniqueSession 08 - Test Case Design and Technique
Session 08 - Test Case Design and Technique
 
Dakiry_qastandup_Olia Didyk_testdesign
Dakiry_qastandup_Olia Didyk_testdesignDakiry_qastandup_Olia Didyk_testdesign
Dakiry_qastandup_Olia Didyk_testdesign
 

Último

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
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
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
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
 
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
 
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
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines 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
 
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
 
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
 
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
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
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
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
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
 

Último (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
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?
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
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
 
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
 
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
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines 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
 
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
 
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...
 
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
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
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...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
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
 

Design Test Case Technique (Equivalence partitioning And Boundary value analysis)

  • 1. 1 Design test case technique Equivalence partitioning And Boundary value analysis Estimated Time: 120 mins Trainer: Tran Thanh Tuan
  • 2. At the end of this course, you are going to know: To provide an approach to design test case. Understand how to apply equivalence partitioning and boundary to design test case. PurposePurpose
  • 3. 1.Introduction 2.What is equivalence partitioning? 3.Identify equivalence classes 4.Define the test cases 5.Combining with boundary analyze to choose data 6.Examples 7.Q&A OutlineOutline
  • 4. IntroductionIntroduction Google search : how many test cases do we need?
  • 5. Advantages of EPAdvantages of EP - To reduce the number of test cases to a necessary minimum - To select the right test cases to cover all possible scenarios ( of course not to be absolutely sure)
  • 6. What is EP?What is EP? Input, output domain Equivalence classes
  • 7. How to use to design testcaseHow to use to design testcase Test case design by EP proceeds into 2 steps: - Identify equivalence classes - Define the test cases
  • 8. 1. Introduction 2. What is equivalence partitioning ? 3. Identify equivalence class 4. Define the test case 5. Combining with boundary analyze to choose data 6. Examples 7. Q&A OutlineOutline
  • 9. • Input, output: clue from requirement • Equivalence classes are of 2 types: valid and invalid • Ex: identify equivalence classes for this requirement “ if a pupil has total score >= 75, he will pass the exam, otherwise will fail (total score is an integer)” Identify equivalence classesIdentify equivalence classes
  • 10. Identify equivalence classesIdentify equivalence classes Total score Error messageSystem Fail Pass
  • 11. Valid equivalence classes Invalid equivalence classes Total score 1. >=75 2. <75 3. Null 4. String Result of the exam 5. Pass 6. Fail 7. Error message Identify equivalence classesIdentify equivalence classes
  • 12. 1. Introduction 2. What is equivalence partitioning ? 3. Identify equivalence class 4. Define the test case 5. Combining with boundary analyze to choose data 6. Examples 7. Q&A OutlineOutline
  • 13. • Assign a unique number to each equivalence class • For valid case: until all valid equivalence classes have been covered by test case, write a new test case covering as many uncover valid equivalence classes as possible. • For invalid case: until all invalid equivalence classes have been covered by test case, write a new test case that cover one, and only one, of the uncovered invalid equivalence classes. Define test casesDefine test cases
  • 14. • Example: write test case for “ if a pupil has total score >= 75, he will be past the exam, otherwise will fail ”, using equivalence partitioning. Define test casesDefine test cases Conditions Valid equivalence class Invalid equivalence class Total score 1. >=75 2. <75 3. Null 4. String Result of the exam 5. Pass 6. Fail 7. Error message Test case: • 1, 5 • 2, 6 • 3, 7 • 4, 7
  • 15. 1. Introduction 2. What is equivalence partitioning? 3. Identify equivalence classes 4. Define the test cases 5. Combining with boundary analyze to choose data 6. Examples 7. Q&A OutlineOutline
  • 16. Boundary analyze and EPBoundary analyze and EP What is Boundary analyze? - Is a technique to refine equivalence partitioning - Concentrate on cases at the extreme ends of each equivalence class.
  • 17. Boundary analyze and EPBoundary analyze and EP Boundary values
  • 18. Boundary analyze and EPBoundary analyze and EP Boundary value analysis? - Is to use input variable value at the minimum, just above minimum, just below minimum, normal, at the maximum, just below maximum, just above maximum
  • 19. Boundary analyze and EPBoundary analyze and EP Example: • “ if a pupil has total score >= 75, he will pass the exam, otherwise will fail (total score is an integer)” Conditions Valid equivalence classes Invalid equivalence classes Total score 1. >=75 2. <75 3. Null 4. String Result of the exam 5. Pass 6. Fail 7. Error message Test case: 1. 1, 5 2. 2, 6 3. 3, 7 4. 4, 7 Data to test: 1a. 75, pass 1b. 76, pass 2. 74, fail 3. Null, error message 4a. A, error message 4b. I am a tester of EW and I love this job, error message
  • 20. 1. Introduction 2. What is equivalence partitioning? 3. Identify equivalence classes 4. Define the test cases 5. Combining with boundary analyze to choose data 6. Examples 7. Q&A OutlineOutline
  • 21. 1. Login function - Requirement: The Registered User enters credentials – a username and password – and submits the credentials. The System verifies the user’s credentials. The System presents the homepage with hello user name and log out link. If the user has been inactive, the system presents a message indicating that the account has been inactive. If invalid username or password, the system determines that the combination of username and password is in error. ( username: maximum 25 chars, not have space, unique, a-z, A-Z, number, password: minimum 6 chars long) ExamplesExamples
  • 22. ExamplesExamples Database Homepage System Password Username Button Submit Error message of username or password is incorrect Error message of inactive account Nothing happen Relation of username and password
  • 23. • Identify equivalence class: ExamplesExamples
  • 24. • Identify test case Valid case – 1,2,3,4,5,12,13,14,18,20,21,24,27 – 1,2,3,4,12,13,14,18,20,21,25,27 Invalid case – 1,6,12,13,14,19,22,21,24,28 – 7,12,19,22,21,25,28 – 8,4,5,14,19,22,21,25,28 – 9,1,2,3,4,12,18,20,21,24,29 – 10,14,18,22,21,24,28 – 11,13,19,21,22,24,28 – 1,3,4,15,19,20,23,25,28 – 1,3,4,16,19,20,24,28 – 1,3,4,17,19,20,24,28 – 1,3,4,12,13,18,25,26,30 ExamplesExamples
  • 25. 1. Search function - Requirement: User fill in search field then click search. The system will find all search string in the document and highlight them. If no one is found, message on form to indicate no result found. ( search like Notepad) ExamplesExamples
  • 26. ExamplesExamples Relationship of search text and search data Search Search data Search text Message indicates that no search found Highlight all the occurrences of the search text in the search data Nothing happen Button Search Relationship of search text and button Search
  • 27. • Identify equivalence class: ExamplesExamples
  • 28. • Identify test case Valid case – 1,10,12,13, 17,21,22 – 2,10,12,14,18,21,25 – 3,4,5,6,7,8,10,12,14,17,21,25 Invalid case – 9,21 – 3,4,8,11,12,17,21,24, 26 – 3,6,7,10,13,15,18,21,22 – 3,10,12,14,19,20,23 ExamplesExamples
  • 29. One page summaryOne page summary
  • 30. • To provide an approach to design test case  • Understand how to apply equivalence partitioning and boundary analysis to design test case  PurposePurpose
  • 31. 1. Introduction 2. What is equivalence partitioning? 3. Identify equivalence classes 4. Define the test cases 5. Combining with boundary analyze to choose data 6. Examples 7. Q&A OutlineOutline
  • 33. ReferencesReferences • The art of software testing • Internet

Notas do Editor

  1. We split input and output of a function into a number of equivalence class then just test 1 or a-few representatives from each of class is well-accepted.
  2. Read the requirements carefully then identify all input and output, any conditions associated with their use and any of their relationship. Input contains all of parameters that affect the behavior of the function: + input data characteristic (ex: string, number, …) + environment configuration + OS platform + Peripheral devices + User profiles + everything surrounds the parameter Output: think about what kind of output may be produced Partition the set of possible values into disjoint subset Define all possible input value (that could be taken by the program) Define all possible output value - User queries: such as user want to search then to choose 1 in the results to view or user want to delete a file - Mouse picks: such as click on the right mouse, the left mouse, … - Input data values: such as user want to search for “apple”, then apple is the input data value or the file name, file path is the input data for deleting file Commands – key input such as: press enter on the keyboard, or for the service we use command line to control Response to prompt: such as when the user want to delete a file, he chooses a file then click delete button and the system ask “are you sure”. Then he click ok, then click button ok is the responses to prompt. Output is what user want to see within the result, such as if user want to delete a file, he choose a file name, file path and click delete then the output here is the file is deleted.