SlideShare a Scribd company logo
1 of 24
Download to read offline
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
Jessica Parker, PMP
21-February-2019
YourTest Cases –
Only Better!
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
What do I know anyway?
Jessica Parker, PMP® is a multidimensional leader with the ability to
drive both strategic and tactical priorities.The expertise she’s
developed over the past twenty years includes executive leadership,
financial management, project management, software quality
assurance, business analysis, and data visualization. Jessica has a track
record of success solving complex business problems and improving
processes at Fortune 500 companies. From a global perspective, she
has worked with multinational teams in countries including Australia,
Brazil, China, England, France, Germany, India, Ireland, Italy,
Philippines, Switzerland, Uruguay.
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
Topics
• Rethinking the test case
• Reusable test cases – make them modular
• Fewer test cases – make them parameterized
• BONUS: Even fewer test cases and better coverage – use an
orthogonal array
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
Rethinking the test case
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
What do you think?
• Test cases should be written with enough detail that anyone off the
street can run them and understand what they should do.
• Testing is so easy that you don’t need to write test cases – a monkey
could do the testing.
• Every possible scenario needs to be documented in test cases.
• Test case writing is fun!
• Test cases should include all of the details – every piece of data
needed.
• Updating test cases is almost as much fun as writing them!
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
Example system: a shopping (e-commerce)
website
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
Reusable test cases -
make them modular
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
Modular test cases
• A modular test case is a test written for one particular object or
screen, which can be combined with other modular tests to exercise
a logical flow through the system
• Pass data into and out of the test
• Value: reduce rework and test maintenance time
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
Building blocks
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
Home page
Product
page
Add product
to cart
Login
(successful)
Checkout
details
Order thank
you page
Home page
Login
(successful)
Product
page
Add product
to cart
Checkout
details
Order thank
you page
Go with the flow…of the system
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
Try it with sticky notes
• Think about one of the systems you are currently testing or a website
you use regularly
• Write down each module (block) on a separate sticky note
• Combine the sticky notes in a way that represents a valid path
through the system
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
Congrats – you’ve started to build the foundation
of your modular test cases!
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
Fewer test cases –
make them parameterized
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
Parameterized test cases
• Allow for reuse of test cases with multiple data variations
• Examples:
• Names: first name & last name, first name & hyphenated last name, first name & two
last names…
• Addresses: one line, two line, with special characters (, ‘ - #)…
• Put data into a numbered list, typically in Excel, which can be attached or
linked to the test case
• Include both positive and negative data variations
• Consider data that changes without changing the expected results.
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
What are examples of data you need for your
tests?
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
Test Description Test Data Step # Test Procedure Expected Results
Validate ability to order
holiday cards <site URL> 1 Call LOGIN test
The system displays the “Landing page” for the customer.
2
Enter cards in search window and
click on search button.
"Product Catalog Page" for the selected category should be displayed
<product> 3
Select the desired template. "Product detail" page should be displayed along with the selected product
features displaying
"Bundle Product Features"
Product details tab
Pricing tab
Quantity dropdown
13
Click on ok button in the popup
and then click on add to cart
button.
System displays " Save as project" popup.
14 Click on 'No' button in the popup. System displays a Shopping cart page.
15 Click on Check out Button. System displays Order summary page.
<credit card number>
<credit card expiration date>
<credit card code>
<billing first name>
<billing last name>
<billing address line 1>
<billing address line 2>
<billing city>
<billing state>
<billing zip code> 16 Call BILLING PAGE test System displays Order confirmation page.
Enter <credit card number> in “Credit Card Number” field
Enter <credit card expiration date> in “Credit Card Expiry Date” field
…
Sample parameterized test case – Excel version
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
Test Data ID First Name Last Name Address Line 1 Address Line 2 City State Zip
TestData001 Annie Body 200 Southern Blvd P.O. Box 189 Albany NY 12209-2018
TestData002 Bill Board 3219 Art’s Way Village of Little Chute WI 54913
TestData003 Chip O'Wood 1521 N Dr Martin Luther King Jr Blvd Trailer #7 Clovis NM 88101
TestData004 A. Mouse P.O. Box 9 Eek AK 99578
TestData005 Earl Leigh-Byrd 375 TRNSP/LGTTF 2510 East Dr Room 3 Scott Air Force Base IL 62225-5426
TestData006 Ginger Root 9 1/2 Pitt St. New York NY 10013
TestData007 Hope Ferterbest 5 E St Lake Lotawana MO 64086
TestData008 Chip Monk 1125 Sheridan Avenue Apartment 56 Chico CA 95926-2795
Sample test data sheet
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
What data do you need?
• Think about fields (e.g. first name, last name) rather than the specific
values
• Identify those fields where changing the data doesn’t change the
expected results
• Those fields where changing the data DOES change the expected
results should be set aside and may require additional test cases
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
Even fewer test cases and better coverage –
use an orthogonal array
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
Why use an orgthoganal array
• “There are more distinct imaginable test cases for even a simple
software product then can be performed in the natural lifetime of
any tester.” – James Bach from
http://www.satisfice.com/articles/pairwise.pdf
• Consider an orthogonal array to help identify what test cases are
needed and ensure all paths through the system have been covered
while not having to be exhaustive in your test cases
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
Test Case
new
existing
anonymous
new
saved
invalid1st
1line
2line
minfield
entries
maxfield
entries
new
saved
Visa
Visa-invalid
1st
MC
MC-invalid1st
Amex
Amex-invalid
1st
Resetpassword
Acme_Regression_01 x x x x x x x
Acme_Regression_02 x x x x x x
Acme_Regression_03 x x x x x x
Acme_Regression_04 x x x x x x
Acme_Regression_05 x x x x
Acme_Regression_06 x x x x x x x
Acme_Regression_07 x x x x x x
Acme_Regression_08 x x x x x x x x
User Type Billing address Payment
Sample orthogonal array
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
Sample Billing Information Page with 3 Modules
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
Questions?
© Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited.
In Summary
• Modular test cases reduce test case creation &
maintenance time
• Parameterized test cases reduce quantity of
test cases needed
• Orthogonal arrays increase coverage and
further reduce quantity of test cases needed
COMING IN MARCH 2019!

More Related Content

Similar to Your test cases - only better

Apex for Admins: Beyond the Basics
Apex for Admins: Beyond the BasicsApex for Admins: Beyond the Basics
Apex for Admins: Beyond the Basics
Salesforce Developers
 

Similar to Your test cases - only better (20)

ISCOM 361 Entire Course NEW
ISCOM 361 Entire Course NEWISCOM 361 Entire Course NEW
ISCOM 361 Entire Course NEW
 
Develop your inner tester
Develop your inner tester Develop your inner tester
Develop your inner tester
 
Agile testing - Testing From Day 1
Agile testing - Testing From Day 1Agile testing - Testing From Day 1
Agile testing - Testing From Day 1
 
Iscom 361 Education Specialist -snaptutorial.com
Iscom 361 Education Specialist -snaptutorial.comIscom 361 Education Specialist -snaptutorial.com
Iscom 361 Education Specialist -snaptutorial.com
 
Tuhin Mitra: How I Automate My Negative Tests
Tuhin Mitra: How I Automate My Negative TestsTuhin Mitra: How I Automate My Negative Tests
Tuhin Mitra: How I Automate My Negative Tests
 
Apex for Admins: Beyond the Basics
Apex for Admins: Beyond the BasicsApex for Admins: Beyond the Basics
Apex for Admins: Beyond the Basics
 
Six simple steps to unit testing happiness
Six simple steps to unit testing happinessSix simple steps to unit testing happiness
Six simple steps to unit testing happiness
 
Avoid Growing Pains: Scale Your App for the Enterprise (October 14, 2014)
Avoid Growing Pains: Scale Your App for the Enterprise (October 14, 2014)Avoid Growing Pains: Scale Your App for the Enterprise (October 14, 2014)
Avoid Growing Pains: Scale Your App for the Enterprise (October 14, 2014)
 
Package Protection
Package ProtectionPackage Protection
Package Protection
 
Mobile Testing: Where to Start Your Journey
Mobile Testing: Where to Start Your JourneyMobile Testing: Where to Start Your Journey
Mobile Testing: Where to Start Your Journey
 
2019 Smart Marketing for Engineers Research Report
2019 Smart Marketing for Engineers Research Report2019 Smart Marketing for Engineers Research Report
2019 Smart Marketing for Engineers Research Report
 
Control Your Online Reputation - MSP Social Media Breakfast
Control Your Online Reputation - MSP Social Media BreakfastControl Your Online Reputation - MSP Social Media Breakfast
Control Your Online Reputation - MSP Social Media Breakfast
 
Help! My Legacy Application is Unmaintainable!
Help! My Legacy Application is Unmaintainable!Help! My Legacy Application is Unmaintainable!
Help! My Legacy Application is Unmaintainable!
 
Agile Testing - Testing From Day 1
Agile Testing - Testing From Day 1Agile Testing - Testing From Day 1
Agile Testing - Testing From Day 1
 
5 Essential Tips for Load Testing Beginners
5 Essential Tips for Load Testing Beginners5 Essential Tips for Load Testing Beginners
5 Essential Tips for Load Testing Beginners
 
SplunkLive! Paris 2018: Intro to Security Analytics Methods
SplunkLive! Paris 2018: Intro to Security Analytics MethodsSplunkLive! Paris 2018: Intro to Security Analytics Methods
SplunkLive! Paris 2018: Intro to Security Analytics Methods
 
Machine Learning Application to Manufacturing using Tableau, Tableau and Goog...
Machine Learning Application to Manufacturing using Tableau, Tableau and Goog...Machine Learning Application to Manufacturing using Tableau, Tableau and Goog...
Machine Learning Application to Manufacturing using Tableau, Tableau and Goog...
 
Part II: Your Product Concept to Sourcing from a Factory
Part II: Your Product Concept to Sourcing from a FactoryPart II: Your Product Concept to Sourcing from a Factory
Part II: Your Product Concept to Sourcing from a Factory
 
Explain the Value of your Splunk Deployment Breakout Session
Explain the Value of your Splunk Deployment Breakout SessionExplain the Value of your Splunk Deployment Breakout Session
Explain the Value of your Splunk Deployment Breakout Session
 
Meet TransmogrifAI, Open Source AutoML That Powers Einstein Predictions
Meet TransmogrifAI, Open Source AutoML That Powers Einstein PredictionsMeet TransmogrifAI, Open Source AutoML That Powers Einstein Predictions
Meet TransmogrifAI, Open Source AutoML That Powers Einstein Predictions
 

Recently uploaded

Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
FIDO Alliance
 

Recently uploaded (20)

Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
UiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overviewUiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overview
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage Intacct
 
الأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهلهالأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهله
 
2024 May Patch Tuesday
2024 May Patch Tuesday2024 May Patch Tuesday
2024 May Patch Tuesday
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
 
ADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptx
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
 
Vector Search @ sw2con for slideshare.pptx
Vector Search @ sw2con for slideshare.pptxVector Search @ sw2con for slideshare.pptx
Vector Search @ sw2con for slideshare.pptx
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptx
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
How to Check GPS Location with a Live Tracker in Pakistan
How to Check GPS Location with a Live Tracker in PakistanHow to Check GPS Location with a Live Tracker in Pakistan
How to Check GPS Location with a Live Tracker in Pakistan
 
Design and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data ScienceDesign and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data Science
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
 
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdfFrisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
 

Your test cases - only better

  • 1. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. Jessica Parker, PMP 21-February-2019 YourTest Cases – Only Better!
  • 2. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. What do I know anyway? Jessica Parker, PMP® is a multidimensional leader with the ability to drive both strategic and tactical priorities.The expertise she’s developed over the past twenty years includes executive leadership, financial management, project management, software quality assurance, business analysis, and data visualization. Jessica has a track record of success solving complex business problems and improving processes at Fortune 500 companies. From a global perspective, she has worked with multinational teams in countries including Australia, Brazil, China, England, France, Germany, India, Ireland, Italy, Philippines, Switzerland, Uruguay.
  • 3. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. Topics • Rethinking the test case • Reusable test cases – make them modular • Fewer test cases – make them parameterized • BONUS: Even fewer test cases and better coverage – use an orthogonal array
  • 4. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. Rethinking the test case
  • 5. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. What do you think? • Test cases should be written with enough detail that anyone off the street can run them and understand what they should do. • Testing is so easy that you don’t need to write test cases – a monkey could do the testing. • Every possible scenario needs to be documented in test cases. • Test case writing is fun! • Test cases should include all of the details – every piece of data needed. • Updating test cases is almost as much fun as writing them!
  • 6. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. Example system: a shopping (e-commerce) website
  • 7. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. Reusable test cases - make them modular
  • 8. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. Modular test cases • A modular test case is a test written for one particular object or screen, which can be combined with other modular tests to exercise a logical flow through the system • Pass data into and out of the test • Value: reduce rework and test maintenance time
  • 9. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. Building blocks
  • 10. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. Home page Product page Add product to cart Login (successful) Checkout details Order thank you page Home page Login (successful) Product page Add product to cart Checkout details Order thank you page Go with the flow…of the system
  • 11. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. Try it with sticky notes • Think about one of the systems you are currently testing or a website you use regularly • Write down each module (block) on a separate sticky note • Combine the sticky notes in a way that represents a valid path through the system
  • 12. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. Congrats – you’ve started to build the foundation of your modular test cases!
  • 13. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. Fewer test cases – make them parameterized
  • 14. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. Parameterized test cases • Allow for reuse of test cases with multiple data variations • Examples: • Names: first name & last name, first name & hyphenated last name, first name & two last names… • Addresses: one line, two line, with special characters (, ‘ - #)… • Put data into a numbered list, typically in Excel, which can be attached or linked to the test case • Include both positive and negative data variations • Consider data that changes without changing the expected results.
  • 15. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. What are examples of data you need for your tests?
  • 16. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. Test Description Test Data Step # Test Procedure Expected Results Validate ability to order holiday cards <site URL> 1 Call LOGIN test The system displays the “Landing page” for the customer. 2 Enter cards in search window and click on search button. "Product Catalog Page" for the selected category should be displayed <product> 3 Select the desired template. "Product detail" page should be displayed along with the selected product features displaying "Bundle Product Features" Product details tab Pricing tab Quantity dropdown 13 Click on ok button in the popup and then click on add to cart button. System displays " Save as project" popup. 14 Click on 'No' button in the popup. System displays a Shopping cart page. 15 Click on Check out Button. System displays Order summary page. <credit card number> <credit card expiration date> <credit card code> <billing first name> <billing last name> <billing address line 1> <billing address line 2> <billing city> <billing state> <billing zip code> 16 Call BILLING PAGE test System displays Order confirmation page. Enter <credit card number> in “Credit Card Number” field Enter <credit card expiration date> in “Credit Card Expiry Date” field … Sample parameterized test case – Excel version
  • 17. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. Test Data ID First Name Last Name Address Line 1 Address Line 2 City State Zip TestData001 Annie Body 200 Southern Blvd P.O. Box 189 Albany NY 12209-2018 TestData002 Bill Board 3219 Art’s Way Village of Little Chute WI 54913 TestData003 Chip O'Wood 1521 N Dr Martin Luther King Jr Blvd Trailer #7 Clovis NM 88101 TestData004 A. Mouse P.O. Box 9 Eek AK 99578 TestData005 Earl Leigh-Byrd 375 TRNSP/LGTTF 2510 East Dr Room 3 Scott Air Force Base IL 62225-5426 TestData006 Ginger Root 9 1/2 Pitt St. New York NY 10013 TestData007 Hope Ferterbest 5 E St Lake Lotawana MO 64086 TestData008 Chip Monk 1125 Sheridan Avenue Apartment 56 Chico CA 95926-2795 Sample test data sheet
  • 18. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. What data do you need? • Think about fields (e.g. first name, last name) rather than the specific values • Identify those fields where changing the data doesn’t change the expected results • Those fields where changing the data DOES change the expected results should be set aside and may require additional test cases
  • 19. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. Even fewer test cases and better coverage – use an orthogonal array
  • 20. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. Why use an orgthoganal array • “There are more distinct imaginable test cases for even a simple software product then can be performed in the natural lifetime of any tester.” – James Bach from http://www.satisfice.com/articles/pairwise.pdf • Consider an orthogonal array to help identify what test cases are needed and ensure all paths through the system have been covered while not having to be exhaustive in your test cases
  • 21. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. Test Case new existing anonymous new saved invalid1st 1line 2line minfield entries maxfield entries new saved Visa Visa-invalid 1st MC MC-invalid1st Amex Amex-invalid 1st Resetpassword Acme_Regression_01 x x x x x x x Acme_Regression_02 x x x x x x Acme_Regression_03 x x x x x x Acme_Regression_04 x x x x x x Acme_Regression_05 x x x x Acme_Regression_06 x x x x x x x Acme_Regression_07 x x x x x x Acme_Regression_08 x x x x x x x x User Type Billing address Payment Sample orthogonal array
  • 22. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. Sample Billing Information Page with 3 Modules
  • 23. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. Questions?
  • 24. © Jessica Parker 2016-2019. Unauthorized use and/or duplication of this material without express and written permission from the author is strictly prohibited. In Summary • Modular test cases reduce test case creation & maintenance time • Parameterized test cases reduce quantity of test cases needed • Orthogonal arrays increase coverage and further reduce quantity of test cases needed COMING IN MARCH 2019!