SlideShare uma empresa Scribd logo
1 de 37
Baixar para ler offline
© 2015 Maveryx srl.
All rights reserved.
Data-Driven Testing
What is Data-Driven Testing
How to Create Data-Driven Tests
Data-Driven Testing by examples
Overview
What is Data-Driven Testing
Data-driven testing: a scripting technique that stores test input
and expected results in a table or spreadsheet, so that a single
control script can execute all of the tests in the table.
[ISTQB – Glossary Standard Glossary of Terms used in Software Testing Version 2.4]
In the simplest form the tester supplies the inputs from a row in
the table and expects the outputs which occur in the same row.
The table typically contains values which correspond to
boundary or partition input spaces.
[Data-driven testing, From Wikipedia, http://en.wikipedia.org/wiki/Data-driven_testing]
On Data-Driven Testing
Data-driven testing is a testing methodology where
test input and output values are read from data files
and are loaded into variables in the test scripts
Data-driven testing allows executing the same test
(or tests) multiple times with different set of data
Test input and output verification data values are
separated from the test code
On Data-Driven Testing
Test data can be stored in one or more central data
sources, such as external files (xls, csv, xml, …) or
databases
Data-driven testing is used generally for applications
requiring fixed set of actions to be performed, but
with a lot of permutations and combinations of the
various parameters which form the test cases
Pros & Cons
Advantages of data-driven testing /1
Test Data can be designed while application development is in
progress
Clean separation of Test Case and Test Data
Changes to the Test Case/Scripts do not affect the Test Data
Only the script representing a “business function” needs to be
modified in case of any change in functionality
Pros & Cons
Advantages of data-driven testing /2
Repeatability and Reusability
the same tests can be executed several times with multiple
sets of data
Reduction in Number of Test Cases/Scripts
Data-driven Scripts result in less amount of code
Pros & Cons
Disadvantages of data-driven testing
Quality and coverage strongly depends on the automation skills of
implementing person
Data validation is required.
[Manual testing for] data validation process is time consuming,
particularly when testing large pools of data
Continuous maintenance issues due to a big amount
of code
How to Create Data-Driven Tests
Common Steps involved in Data driven Testing:
1. Create a test script with a set of constant test data
2. Replace constant test data with some variables
3. Create multiple sets of test data in a data storage (e.g. Excel,
CSV, XML, ...)
4. Assign to variables the values read from the data storage
Architecture of Data-Driven Tests
A data-driven test includes the following operations performed
in a loop:
1. Retrieving input data from storage
2. Entering data in the application–under–test
3. Verifying the results
4. Continuing with the next set of input data(*)
(*) Every set of input data delivers the data for a different test case.
The example application
Passwords shall use the following
types of characters:
• Lowercase
• Uppercase
• Numbers
No special characters such as
!@#$%^&*(){}[].
The Test Tool – Maveryx
Maveryx is a
professional, test
automation tool for
functional and
regression testing of
Java™ & Android™
applications.
Architecture of the Test Scripts
With this configuration there are multiple variations that must be tested:
Test Script
1. Enter username
2. Enter Password
3. Click "Login" button
4. Verifying the results
5. Click “OK" button
The Test Script
Test Script
1. Enter username
2. Enter Password
3. Click "Login" button
4. Verifying the results
5. Click “OK" button
Data-Driven Testing Step #1
1. Create a test script with a
set of constant test data
2. Replace constant test data
with some variables
3. Create multiple sets of test
data in a data storage (e.g.
Excel, CSV, XML, ...)
4. Assign to variables the value
that is read from the data
storage
Data-Driven Testing Step #2
1. Create a test script with a set
of constant test data
2. Replace constant test data
with some variables
3. Create multiple sets of test
data in a data storage (e.g.
Excel, CSV, XML, ...)
4. Assign to variables the value
that is read from the data
storage
Data-Driven Testing Step #3
1. Create a test script with a set
of constant test data
2. Replace constant test data
with some variables
3. Create multiple sets of test
data in a data storage (e.g.
Excel, CSV, XML, ...)
4. Assign to variables the value
that is read from the data
storage
Data-Driven Testing Step #4
1. Create a test script with a set
of constant test data
2. Replace constant test data
with some variables
3. Create multiple sets of test
data in a data storage (e.g.
Excel, CSV, XML, ...)
4. Assign to variables the value
that is read from the data
storage
Anatomy of the Test Script /1
1. Manage Data Sources
2. Retrieve input data
from storage
3. Enter data in the
application-under-test
4. Verify the results
5. Continue with the
next set of input data
Create a data manager using the constructor provided
by the TestDataManager class.
Excel
CSV
XML
Anatomy of the Test Script /2
1. Manage Data Sources
2. Retrieve input data
from storage
3. Enter data in the
application-under-test
4. Verify the results
5. Continue with the
next set of input data
Retrieve the data at the specified i-ndex of the column “Username”.
Anatomy of the Test Script /3
1. Manage Data Sources
2. Retrieve input data
from storage
3. Enter data in the
application-under-test
4. Verify the results
5. Continue with the next
set of input data
Anatomy of the Test Script /4
1. Manage Data Sources
2. Retrieve input data
from storage
3. Enter data in the
application-under-test
4. Verify the results
5. Continue with the
next set of input data
Anatomy of the Test Script /5
1. Manage Data Sources
2. Retrieve input data
from storage
3. Enter data in the
application-under-test
4. Verify the results
5. Continue with the
next set of input data
Run the Test
Lessons Learned
1. Data-Driven Testing allows writing the test cases as scripts
that read their data from external files, instead of using the
same hard-coded values each time
2. By this approach there is only 1 script to drive the tests but by
changing the data testers can create any number of test
cases
Lessons Learned
3. With Maveryx you can separate test logic from test data.
Maveryx supports the most popular external sources
4. A good data-driven test script :
1. Read test data from the data storage
2. Input the data into the application-under-test
3. Verify the results
4. Continue with the next test data
© 2015 Maveryx srl.
All rights reserved.
About Maveryx…
Maveryx is a professional, award-winning test automation tool for
functional and regression testing of Java™ & Android™ applications.
Maveryx provides testers with automated testing capabilities for
functional, regression, GUI, data-driven and keyword-driven testing.
Maveryx
No GUI Maps
Intelligent Objects Recognition
Data-driven testing
Keyword-driven Testing
Assertion-based CheckPoints
Distributed testing
Single tool for Java & Android
Standard Test Logging
Built on Java & JUnit
Advanced Test API
Test Data Generation Tool
Extension plugins
Eclipse plugin
Android ADT plugin
…
Key Features
© 2014 Maveryx srl.
All rights reserved.
No GUI Maps
No Recording. No Object Spy.
No Object Maps. Nothing.
o No GUI MAP needed to create and run the test scripts
o No Object Repository to learn & maintain, maintain, maintain…
o No pre-recording or screen capture
o Independent of screen coordinates and resolutions
⇒ Test scripts immediately executable!
o A.I. Artificial Intelligence. Advanced Searching Algorithms to identify
UI objects directly at runtime during test execution, like humans do..
o Automatically accommodate UI changes without changing the scripts
o “Geolocation” of objects in the User Interface (TOP, BOTTOM, LEFT, RIGHT, UP,
DOWN, NEAR-TO …)
Intelligent Objects Recognition
© 2014 Maveryx srl.
All rights reserved.
TOP
BOTTOM
L
E
F
T
R
I
G
H
T
CENTER
o Code-free Keyword-driven Testing
o Keyword testing driven from Excel™ sheets and XML files
o No coding required ⇒ short time to implement test scripts
o Data-driven testing
o Dedicated scripting API for data-driven testing
o Varying set of data sources : Excel™ sheets , CSV & XML files
Codeless Test Automation
© 2014 Maveryx srl.
All rights reserved.
© 2014 Maveryx srl.
All rights reserved.
“One Script” Technology
Write Once, Run Many. Maveryx allows
creating scripts that can be run without
modification against any Android apps,
as well as Java desktop applications on
all platforms.
o Tests can be executed on Android Virtual Devices (AVDs) or Real
Devices ⇒ No Rooting!
o devices connected to the local PC [via USB cable or Wi-Fi]
o devices connected remotely to a mobile device lab
o Support for all versions of Android
o Support for almost all UI Elements
o …
© 2014 Maveryx srl.
All rights reserved.
Mobile Testing
The industry like us
Winner.
© 2014 Maveryx srl.
All rights reserved.
Useful Links
o Maveryx – http://www.maveryx.com
o User guide – http://www.maveryx.com/en/support/learn-
more/user-documentation.html
o Forum – http://www.maveryx.com/en/forum/index.html
o Training – http://www.maveryx.com/en/services/training.html
Thank You!
• www.maveryx.com
• sales@maveryx.com
• info@maveryx.com

Mais conteúdo relacionado

Mais procurados

Test Automation Best Practices (with SOA test approach)
Test Automation Best Practices (with SOA test approach)Test Automation Best Practices (with SOA test approach)
Test Automation Best Practices (with SOA test approach)Leonard Fingerman
 
Test automation
Test automationTest automation
Test automationXavier Yin
 
Software test automation
Software test automationSoftware test automation
Software test automationOksana Demediuk
 
Test Automation Frameworks Using Selenium | Edureka
Test Automation Frameworks Using Selenium | EdurekaTest Automation Frameworks Using Selenium | Edureka
Test Automation Frameworks Using Selenium | EdurekaEdureka!
 
Selenium Maven With Eclipse | Edureka
Selenium Maven With Eclipse | EdurekaSelenium Maven With Eclipse | Edureka
Selenium Maven With Eclipse | EdurekaEdureka!
 
Hybrid Automation Framework Development introduction
Hybrid Automation Framework Development introductionHybrid Automation Framework Development introduction
Hybrid Automation Framework Development introductionGanuka Yashantha
 
Final Automation Testing
Final Automation TestingFinal Automation Testing
Final Automation Testingpriya_trivedi
 
Test Management introduction
Test Management introductionTest Management introduction
Test Management introductionOana Feidi
 
How To Write A Test Case In Software Testing | Edureka
How To Write A Test Case In Software Testing | EdurekaHow To Write A Test Case In Software Testing | Edureka
How To Write A Test Case In Software Testing | EdurekaEdureka!
 
automation testing benefits
automation testing benefitsautomation testing benefits
automation testing benefitsnazeer pasha
 
Keyword Driven Testing
Keyword Driven TestingKeyword Driven Testing
Keyword Driven TestingMaveryx
 
Automation Framework Design
Automation Framework DesignAutomation Framework Design
Automation Framework DesignKunal Saxena
 
Test Automation Strategies For Agile
Test Automation Strategies For AgileTest Automation Strategies For Agile
Test Automation Strategies For AgileNaresh Jain
 
Automated Testing with Agile
Automated Testing with AgileAutomated Testing with Agile
Automated Testing with AgileKen McCorkell
 
Automation Framework Presentation
Automation Framework PresentationAutomation Framework Presentation
Automation Framework PresentationBen Ngo
 

Mais procurados (20)

Test automation proposal
Test automation proposalTest automation proposal
Test automation proposal
 
Test Automation Best Practices (with SOA test approach)
Test Automation Best Practices (with SOA test approach)Test Automation Best Practices (with SOA test approach)
Test Automation Best Practices (with SOA test approach)
 
Test automation
Test automationTest automation
Test automation
 
Software test automation
Software test automationSoftware test automation
Software test automation
 
Test Automation Frameworks Using Selenium | Edureka
Test Automation Frameworks Using Selenium | EdurekaTest Automation Frameworks Using Selenium | Edureka
Test Automation Frameworks Using Selenium | Edureka
 
TestNG Framework
TestNG Framework TestNG Framework
TestNG Framework
 
Selenium Maven With Eclipse | Edureka
Selenium Maven With Eclipse | EdurekaSelenium Maven With Eclipse | Edureka
Selenium Maven With Eclipse | Edureka
 
Hybrid Automation Framework Development introduction
Hybrid Automation Framework Development introductionHybrid Automation Framework Development introduction
Hybrid Automation Framework Development introduction
 
Final Automation Testing
Final Automation TestingFinal Automation Testing
Final Automation Testing
 
Automation With A Tool Demo
Automation With A Tool DemoAutomation With A Tool Demo
Automation With A Tool Demo
 
Selenium Automation Framework
Selenium Automation  FrameworkSelenium Automation  Framework
Selenium Automation Framework
 
Test Management introduction
Test Management introductionTest Management introduction
Test Management introduction
 
How To Write A Test Case In Software Testing | Edureka
How To Write A Test Case In Software Testing | EdurekaHow To Write A Test Case In Software Testing | Edureka
How To Write A Test Case In Software Testing | Edureka
 
automation testing benefits
automation testing benefitsautomation testing benefits
automation testing benefits
 
Keyword Driven Testing
Keyword Driven TestingKeyword Driven Testing
Keyword Driven Testing
 
Automation Framework Design
Automation Framework DesignAutomation Framework Design
Automation Framework Design
 
Test Automation Strategies For Agile
Test Automation Strategies For AgileTest Automation Strategies For Agile
Test Automation Strategies For Agile
 
Automated Testing with Agile
Automated Testing with AgileAutomated Testing with Agile
Automated Testing with Agile
 
Introduction to Software Test Automation
Introduction to Software Test AutomationIntroduction to Software Test Automation
Introduction to Software Test Automation
 
Automation Framework Presentation
Automation Framework PresentationAutomation Framework Presentation
Automation Framework Presentation
 

Semelhante a Data Driven Testing

Test data documentation ss
Test data documentation ssTest data documentation ss
Test data documentation ssAshwiniPoloju
 
Test automation principles, terminologies and implementations
Test automation principles, terminologies and implementationsTest automation principles, terminologies and implementations
Test automation principles, terminologies and implementationsSteven Li
 
justin presentation upload PPT june 19
justin presentation upload PPT june 19justin presentation upload PPT june 19
justin presentation upload PPT june 19techweb08
 
justin for ppt1 by browse button
justin for ppt1 by browse buttonjustin for ppt1 by browse button
justin for ppt1 by browse buttontechweb08
 
upload ppt by browse button
upload ppt by browse buttonupload ppt by browse button
upload ppt by browse buttontechweb08
 
Paper PsUpload
Paper PsUploadPaper PsUpload
Paper PsUploadtechweb08
 
justin presentation Slideshare PPT upload June 25 Final one
justin presentation Slideshare PPT upload June 25 Final onejustin presentation Slideshare PPT upload June 25 Final one
justin presentation Slideshare PPT upload June 25 Final onetechweb08
 
upload ppt1 by browse button
upload ppt1 by browse buttonupload ppt1 by browse button
upload ppt1 by browse buttontechweb08
 
upload ppt by browse button
upload ppt by browse buttonupload ppt by browse button
upload ppt by browse buttontechweb08
 
Justin Presentation PPT Upload June 25 adv
Justin Presentation PPT Upload June 25 advJustin Presentation PPT Upload June 25 adv
Justin Presentation PPT Upload June 25 advtechweb08
 
justin presentation upload PPT june 25 ADVANCED
justin presentation upload PPT june 25 ADVANCEDjustin presentation upload PPT june 25 ADVANCED
justin presentation upload PPT june 25 ADVANCEDtechweb08
 
justin presentation slideshare1
justin presentation slideshare1justin presentation slideshare1
justin presentation slideshare1techweb08
 
alka ppt test from13
alka ppt test from13 alka ppt test from13
alka ppt test from13 techweb08
 
alka ppt upload no code change
alka ppt upload no code changealka ppt upload no code change
alka ppt upload no code changetechweb08
 

Semelhante a Data Driven Testing (20)

Test data documentation ss
Test data documentation ssTest data documentation ss
Test data documentation ss
 
Test automation principles, terminologies and implementations
Test automation principles, terminologies and implementationsTest automation principles, terminologies and implementations
Test automation principles, terminologies and implementations
 
Paper CS
Paper CSPaper CS
Paper CS
 
alkatest7
alkatest7alkatest7
alkatest7
 
justin presentation upload PPT june 19
justin presentation upload PPT june 19justin presentation upload PPT june 19
justin presentation upload PPT june 19
 
justin for ppt1 by browse button
justin for ppt1 by browse buttonjustin for ppt1 by browse button
justin for ppt1 by browse button
 
Paper Ps
Paper PsPaper Ps
Paper Ps
 
upload ppt by browse button
upload ppt by browse buttonupload ppt by browse button
upload ppt by browse button
 
Paper PsUpload
Paper PsUploadPaper PsUpload
Paper PsUpload
 
justin presentation Slideshare PPT upload June 25 Final one
justin presentation Slideshare PPT upload June 25 Final onejustin presentation Slideshare PPT upload June 25 Final one
justin presentation Slideshare PPT upload June 25 Final one
 
Paper Ps
Paper PsPaper Ps
Paper Ps
 
upload ppt1 by browse button
upload ppt1 by browse buttonupload ppt1 by browse button
upload ppt1 by browse button
 
Paper Ps
Paper PsPaper Ps
Paper Ps
 
Paper Ps
Paper PsPaper Ps
Paper Ps
 
upload ppt by browse button
upload ppt by browse buttonupload ppt by browse button
upload ppt by browse button
 
Justin Presentation PPT Upload June 25 adv
Justin Presentation PPT Upload June 25 advJustin Presentation PPT Upload June 25 adv
Justin Presentation PPT Upload June 25 adv
 
justin presentation upload PPT june 25 ADVANCED
justin presentation upload PPT june 25 ADVANCEDjustin presentation upload PPT june 25 ADVANCED
justin presentation upload PPT june 25 ADVANCED
 
justin presentation slideshare1
justin presentation slideshare1justin presentation slideshare1
justin presentation slideshare1
 
alka ppt test from13
alka ppt test from13 alka ppt test from13
alka ppt test from13
 
alka ppt upload no code change
alka ppt upload no code changealka ppt upload no code change
alka ppt upload no code change
 

Mais de Maveryx

How to easily design and automate test cases.pdf
How to easily design and automate test cases.pdfHow to easily design and automate test cases.pdf
How to easily design and automate test cases.pdfMaveryx
 
User Interface Testing. What is UI Testing and Why it is so important?
User Interface Testing. What is UI Testing and Why it is so important?User Interface Testing. What is UI Testing and Why it is so important?
User Interface Testing. What is UI Testing and Why it is so important?Maveryx
 
Testing Banking Applications. Here is a practical example
Testing Banking Applications. Here is a practical exampleTesting Banking Applications. Here is a practical example
Testing Banking Applications. Here is a practical exampleMaveryx
 
Web testing
Web testingWeb testing
Web testingMaveryx
 
Codeless Web testing: a keyword-driven example with Excel
Codeless Web testing: a keyword-driven example with ExcelCodeless Web testing: a keyword-driven example with Excel
Codeless Web testing: a keyword-driven example with ExcelMaveryx
 
Keywords-driven testing vs Scripted automation
Keywords-driven testing vs Scripted automationKeywords-driven testing vs Scripted automation
Keywords-driven testing vs Scripted automationMaveryx
 
Stf 2019 workshop - enhanced test automation for web and desktop apps
Stf 2019   workshop - enhanced test automation for web and desktop appsStf 2019   workshop - enhanced test automation for web and desktop apps
Stf 2019 workshop - enhanced test automation for web and desktop appsMaveryx
 
Maveryx presentation
Maveryx presentationMaveryx presentation
Maveryx presentationMaveryx
 
Testing Android applications with Maveryx
Testing Android applications with MaveryxTesting Android applications with Maveryx
Testing Android applications with MaveryxMaveryx
 
Testing Java applications with Maveryx
Testing Java applications with MaveryxTesting Java applications with Maveryx
Testing Java applications with MaveryxMaveryx
 
Maveryx - Product Presentation
Maveryx - Product PresentationMaveryx - Product Presentation
Maveryx - Product PresentationMaveryx
 

Mais de Maveryx (11)

How to easily design and automate test cases.pdf
How to easily design and automate test cases.pdfHow to easily design and automate test cases.pdf
How to easily design and automate test cases.pdf
 
User Interface Testing. What is UI Testing and Why it is so important?
User Interface Testing. What is UI Testing and Why it is so important?User Interface Testing. What is UI Testing and Why it is so important?
User Interface Testing. What is UI Testing and Why it is so important?
 
Testing Banking Applications. Here is a practical example
Testing Banking Applications. Here is a practical exampleTesting Banking Applications. Here is a practical example
Testing Banking Applications. Here is a practical example
 
Web testing
Web testingWeb testing
Web testing
 
Codeless Web testing: a keyword-driven example with Excel
Codeless Web testing: a keyword-driven example with ExcelCodeless Web testing: a keyword-driven example with Excel
Codeless Web testing: a keyword-driven example with Excel
 
Keywords-driven testing vs Scripted automation
Keywords-driven testing vs Scripted automationKeywords-driven testing vs Scripted automation
Keywords-driven testing vs Scripted automation
 
Stf 2019 workshop - enhanced test automation for web and desktop apps
Stf 2019   workshop - enhanced test automation for web and desktop appsStf 2019   workshop - enhanced test automation for web and desktop apps
Stf 2019 workshop - enhanced test automation for web and desktop apps
 
Maveryx presentation
Maveryx presentationMaveryx presentation
Maveryx presentation
 
Testing Android applications with Maveryx
Testing Android applications with MaveryxTesting Android applications with Maveryx
Testing Android applications with Maveryx
 
Testing Java applications with Maveryx
Testing Java applications with MaveryxTesting Java applications with Maveryx
Testing Java applications with Maveryx
 
Maveryx - Product Presentation
Maveryx - Product PresentationMaveryx - Product Presentation
Maveryx - Product Presentation
 

Último

Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...chiefasafspells
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnAmarnathKambale
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxAnnaArtyushina1
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrainmasabamasaba
 
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...WSO2
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrandmasabamasaba
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...masabamasaba
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in sowetomasabamasaba
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...masabamasaba
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareJim McKeeth
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...masabamasaba
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...masabamasaba
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...Jittipong Loespradit
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024VictoriaMetrics
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension AidPhilip Schwarz
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park masabamasaba
 

Último (20)

Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 

Data Driven Testing

  • 1. © 2015 Maveryx srl. All rights reserved. Data-Driven Testing
  • 2. What is Data-Driven Testing How to Create Data-Driven Tests Data-Driven Testing by examples Overview
  • 3. What is Data-Driven Testing Data-driven testing: a scripting technique that stores test input and expected results in a table or spreadsheet, so that a single control script can execute all of the tests in the table. [ISTQB – Glossary Standard Glossary of Terms used in Software Testing Version 2.4] In the simplest form the tester supplies the inputs from a row in the table and expects the outputs which occur in the same row. The table typically contains values which correspond to boundary or partition input spaces. [Data-driven testing, From Wikipedia, http://en.wikipedia.org/wiki/Data-driven_testing]
  • 4. On Data-Driven Testing Data-driven testing is a testing methodology where test input and output values are read from data files and are loaded into variables in the test scripts Data-driven testing allows executing the same test (or tests) multiple times with different set of data Test input and output verification data values are separated from the test code
  • 5. On Data-Driven Testing Test data can be stored in one or more central data sources, such as external files (xls, csv, xml, …) or databases Data-driven testing is used generally for applications requiring fixed set of actions to be performed, but with a lot of permutations and combinations of the various parameters which form the test cases
  • 6. Pros & Cons Advantages of data-driven testing /1 Test Data can be designed while application development is in progress Clean separation of Test Case and Test Data Changes to the Test Case/Scripts do not affect the Test Data Only the script representing a “business function” needs to be modified in case of any change in functionality
  • 7. Pros & Cons Advantages of data-driven testing /2 Repeatability and Reusability the same tests can be executed several times with multiple sets of data Reduction in Number of Test Cases/Scripts Data-driven Scripts result in less amount of code
  • 8. Pros & Cons Disadvantages of data-driven testing Quality and coverage strongly depends on the automation skills of implementing person Data validation is required. [Manual testing for] data validation process is time consuming, particularly when testing large pools of data Continuous maintenance issues due to a big amount of code
  • 9. How to Create Data-Driven Tests Common Steps involved in Data driven Testing: 1. Create a test script with a set of constant test data 2. Replace constant test data with some variables 3. Create multiple sets of test data in a data storage (e.g. Excel, CSV, XML, ...) 4. Assign to variables the values read from the data storage
  • 10. Architecture of Data-Driven Tests A data-driven test includes the following operations performed in a loop: 1. Retrieving input data from storage 2. Entering data in the application–under–test 3. Verifying the results 4. Continuing with the next set of input data(*) (*) Every set of input data delivers the data for a different test case.
  • 11. The example application Passwords shall use the following types of characters: • Lowercase • Uppercase • Numbers No special characters such as !@#$%^&*(){}[].
  • 12. The Test Tool – Maveryx Maveryx is a professional, test automation tool for functional and regression testing of Java™ & Android™ applications.
  • 13. Architecture of the Test Scripts With this configuration there are multiple variations that must be tested: Test Script 1. Enter username 2. Enter Password 3. Click "Login" button 4. Verifying the results 5. Click “OK" button
  • 14. The Test Script Test Script 1. Enter username 2. Enter Password 3. Click "Login" button 4. Verifying the results 5. Click “OK" button
  • 15. Data-Driven Testing Step #1 1. Create a test script with a set of constant test data 2. Replace constant test data with some variables 3. Create multiple sets of test data in a data storage (e.g. Excel, CSV, XML, ...) 4. Assign to variables the value that is read from the data storage
  • 16. Data-Driven Testing Step #2 1. Create a test script with a set of constant test data 2. Replace constant test data with some variables 3. Create multiple sets of test data in a data storage (e.g. Excel, CSV, XML, ...) 4. Assign to variables the value that is read from the data storage
  • 17. Data-Driven Testing Step #3 1. Create a test script with a set of constant test data 2. Replace constant test data with some variables 3. Create multiple sets of test data in a data storage (e.g. Excel, CSV, XML, ...) 4. Assign to variables the value that is read from the data storage
  • 18. Data-Driven Testing Step #4 1. Create a test script with a set of constant test data 2. Replace constant test data with some variables 3. Create multiple sets of test data in a data storage (e.g. Excel, CSV, XML, ...) 4. Assign to variables the value that is read from the data storage
  • 19. Anatomy of the Test Script /1 1. Manage Data Sources 2. Retrieve input data from storage 3. Enter data in the application-under-test 4. Verify the results 5. Continue with the next set of input data Create a data manager using the constructor provided by the TestDataManager class. Excel CSV XML
  • 20. Anatomy of the Test Script /2 1. Manage Data Sources 2. Retrieve input data from storage 3. Enter data in the application-under-test 4. Verify the results 5. Continue with the next set of input data Retrieve the data at the specified i-ndex of the column “Username”.
  • 21. Anatomy of the Test Script /3 1. Manage Data Sources 2. Retrieve input data from storage 3. Enter data in the application-under-test 4. Verify the results 5. Continue with the next set of input data
  • 22. Anatomy of the Test Script /4 1. Manage Data Sources 2. Retrieve input data from storage 3. Enter data in the application-under-test 4. Verify the results 5. Continue with the next set of input data
  • 23. Anatomy of the Test Script /5 1. Manage Data Sources 2. Retrieve input data from storage 3. Enter data in the application-under-test 4. Verify the results 5. Continue with the next set of input data
  • 25. Lessons Learned 1. Data-Driven Testing allows writing the test cases as scripts that read their data from external files, instead of using the same hard-coded values each time 2. By this approach there is only 1 script to drive the tests but by changing the data testers can create any number of test cases
  • 26. Lessons Learned 3. With Maveryx you can separate test logic from test data. Maveryx supports the most popular external sources 4. A good data-driven test script : 1. Read test data from the data storage 2. Input the data into the application-under-test 3. Verify the results 4. Continue with the next test data
  • 27. © 2015 Maveryx srl. All rights reserved. About Maveryx…
  • 28. Maveryx is a professional, award-winning test automation tool for functional and regression testing of Java™ & Android™ applications. Maveryx provides testers with automated testing capabilities for functional, regression, GUI, data-driven and keyword-driven testing. Maveryx
  • 29. No GUI Maps Intelligent Objects Recognition Data-driven testing Keyword-driven Testing Assertion-based CheckPoints Distributed testing Single tool for Java & Android Standard Test Logging Built on Java & JUnit Advanced Test API Test Data Generation Tool Extension plugins Eclipse plugin Android ADT plugin … Key Features © 2014 Maveryx srl. All rights reserved.
  • 30. No GUI Maps No Recording. No Object Spy. No Object Maps. Nothing. o No GUI MAP needed to create and run the test scripts o No Object Repository to learn & maintain, maintain, maintain… o No pre-recording or screen capture o Independent of screen coordinates and resolutions ⇒ Test scripts immediately executable!
  • 31. o A.I. Artificial Intelligence. Advanced Searching Algorithms to identify UI objects directly at runtime during test execution, like humans do.. o Automatically accommodate UI changes without changing the scripts o “Geolocation” of objects in the User Interface (TOP, BOTTOM, LEFT, RIGHT, UP, DOWN, NEAR-TO …) Intelligent Objects Recognition © 2014 Maveryx srl. All rights reserved. TOP BOTTOM L E F T R I G H T CENTER
  • 32. o Code-free Keyword-driven Testing o Keyword testing driven from Excel™ sheets and XML files o No coding required ⇒ short time to implement test scripts o Data-driven testing o Dedicated scripting API for data-driven testing o Varying set of data sources : Excel™ sheets , CSV & XML files Codeless Test Automation © 2014 Maveryx srl. All rights reserved.
  • 33. © 2014 Maveryx srl. All rights reserved. “One Script” Technology Write Once, Run Many. Maveryx allows creating scripts that can be run without modification against any Android apps, as well as Java desktop applications on all platforms.
  • 34. o Tests can be executed on Android Virtual Devices (AVDs) or Real Devices ⇒ No Rooting! o devices connected to the local PC [via USB cable or Wi-Fi] o devices connected remotely to a mobile device lab o Support for all versions of Android o Support for almost all UI Elements o … © 2014 Maveryx srl. All rights reserved. Mobile Testing
  • 35. The industry like us Winner. © 2014 Maveryx srl. All rights reserved.
  • 36. Useful Links o Maveryx – http://www.maveryx.com o User guide – http://www.maveryx.com/en/support/learn- more/user-documentation.html o Forum – http://www.maveryx.com/en/forum/index.html o Training – http://www.maveryx.com/en/services/training.html
  • 37. Thank You! • www.maveryx.com • sales@maveryx.com • info@maveryx.com