SlideShare a Scribd company logo
 
	
  
	
  
	
  
T9	
  
Test	
  Data	
  
10/6/16	
  11:15	
  
	
  
	
  
	
  
	
  
	
  
Get	
  a	
  Handle	
  on	
  Your	
  Test	
  Data-­‐Starting	
  
Now	
  
Presented	
  by:	
  	
  
	
  
	
   Paul	
  Merrill	
   	
  
	
  
Beaufort	
  Fairmont	
  
	
  
Brought	
  to	
  you	
  by:	
  	
  
	
  	
  
	
  
	
  
	
  
	
  
350	
  Corporate	
  Way,	
  Suite	
  400,	
  Orange	
  Park,	
  FL	
  32073	
  	
  
888-­‐-­‐-­‐268-­‐-­‐-­‐8770	
  ·∙·∙	
  904-­‐-­‐-­‐278-­‐-­‐-­‐0524	
  -­‐	
  info@techwell.com	
  -­‐	
  http://www.starwest.techwell.com/	
  	
  	
  
	
  
	
  	
  
 
	
  
Paul	
  Merrill	
  
	
  
	
  
Paul	
  Merrill	
  is	
  principal	
  software	
  engineer	
  in	
  test	
  and	
  founder	
  Beaufort	
  Fairmont	
  
Automated	
  Testing	
  Services.	
  Paul	
  works	
  with	
  clients	
  every	
  day	
  to	
  reduce	
  risk	
  to	
  
their	
  brands,	
  customers,	
  and	
  reputation,	
  and	
  to	
  increase	
  the	
  efficacy	
  of	
  their	
  testing	
  
processes.	
  He	
  takes	
  personally	
  the	
  company	
  missionÛÓÛÏto	
  rid	
  the	
  world	
  of	
  bad	
  
code.Û_	
  An	
  entrepreneur,	
  tester,	
  and	
  software	
  engineer,	
  Paul	
  has	
  a	
  unique	
  
perspective	
  on	
  launching	
  and	
  maintaining	
  quality	
  products.	
  He	
  co-­‐hosts	
  Reflection	
  
as	
  a	
  Service,	
  a	
  podcast	
  about	
  software	
  development,	
  testing,	
  and	
  entrepreneurship.	
  
Follow	
  Paul	
  on	
  Twitter	
  @dpaulmerrill.	
  
9/21/16	
1	
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Why	do	we	care	about	the	data	used	by	the	
system	under	test?	
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Data Strategies
PAUL MERRILL
@dpaulmerrill
9/21/16	
2	
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Agenda
!   Define Terms
!   Iden9fy Constraints
!   Walk Through Examples
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Define Terms
9/21/16	
3	
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Define Terms
Data Strategy - the combina9on of code,
procedure and infrastructure that affect how
tests interact with data to s9mulate the System
Under Test (SUT).
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Define Terms
Constraint - a characteris9c that applies a force in
a way that is limi9ng to an automated test or its
environment.
9/21/16	
4	
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Define Terms
Constraints factor down to:
Policy
Cost
Infrastructure
People
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Iden9fy Constraints
9/21/16	
5	
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Examples of Constraints
Shared Environments!
Downtime!
Technical Skills!
Data Source Growth!
Repeatable Tests!
Data Variance!
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Example Data Strategies
9/21/16	
6	
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Strategies Have 2 Parts:
!   Crea9onal Strategy - how and when data is
created.
!   Cleanup Strategy - the method by which a data
source is returned to a benign state.
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Elementary Approach
!   Crea9on - Tests assume specific data in SUT -
no crea9onal strategy
!   Clean up - No clean-up strategy, no
management of data
9/21/16	
7	
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Elementary Approach
SUT	
ExecuSon	1	
ExecuSon	2	
ExecuSon	3	
Data	
Source	
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Elementary Approach

Pros:
!   Simple
!   No implementa9on
(quick)

Cons:
!   Tests are not repeatable
!   No isola9on of data
!   Does not work on
different systems
9/21/16	
8	
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Refresh Data Source Approach
!   Crea9on - Tests assume specific data in SUT
!   Cleanup - Data managed by refreshing the data
source prior to test execu9on
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Refresh Data Source Approach
SUT	
ExecuSon	1	
ExecuSon	2	
ExecuSon	3
9/21/16	
9	
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Refresh Data Source Approach
Pros:
!   Clean test bed (data-
wise) per test
!   Uniform, one-size-fits-all
process
!   No variance of data
!   Less 9me/cost to
implement
!   Total control of data
Cons:
!   Timely
!   Requires Down9me
!   Blocks shared
environments
!   No variance of data
!   Stale data over 9me
!   Doesn’t work on
different systems
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Selfish Data Genera9on
!   Crea9on - Tests create the data they need in
SUT
!   Clean up - No management of data aYer
genera9on
!   May be random (e.g. via Faker)
!   Batch process or in test
!   Via SUT or directly in Data Source
!   In-test or pre-test
9/21/16	
10	
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Selfish Data Genera9on
SUT	
ExecuSon	1	
ExecuSon	2	
ExecuSon	3	
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Selfish Data Genera9on
Pros:
!   Unique data per test
!   Does not block shared
environments
!   No down9me
!   No stale data
!   Tests can run anywhere
!   Tests become repeatable
Cons:
!   Unchecked growth of data
source
!   Requires understanding of
data model
!   Tests need to know about
data
9/21/16	
11	
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Data Genera9on & Batch Cleanup
!   Crea9on - Data generated for each test
!   Cleanup - Data cleaned up aYer test run
!   Clean up may happen in data source or via SUT
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Data Genera9on & Batch Cleanup
SUT	
ExecuSon	1	
ExecuSon	2	
ExecuSon	3
9/21/16	
12	
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Data Genera9on & Batch Cleanup
Pros:
!   Unique data per test
!   Does not block shared
environments
!   Minimal down9me
!   No stale data
!   Growth of data source kept
in check
!   Tests run anywhere
!   Tests are repeatable
Cons:
!   Requires deep
understanding of data
model
!   Must know what to clean
!   Significant scaffolding must
be created


www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Data Genera9on & Immediate Cleanup
!   Crea9on - tests generate their own data
!   Clean up - for each test case immediately aYer
execu9on
!   Uses a TearDown method supplied by the
framework
9/21/16	
13	
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Data Genera9on & Immediate Cleanup
SUT	
ExecuSon	1	
ExecuSon	2	
ExecuSon	3	
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Data Genera9on & Immediate Cleanup
Pros:
!   Tests are repeatable 
!   Unique data per test
!   Does not block shared
environments
!   Minimal down9me
!   No stale data
!   Growth of data source kept in
check
!   No data leY over from other tests
!   Tests run anywhere
Cons:
!   Requires deep understanding of
data model
!   Must know what to clean
!   Significant scaffolding must be
created
9/21/16	
14	
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Crea9onal Strategies
Elementary! Refresh! Generation!
Shared Env!
Downtime!
Repeatability!
Variance!
Data Growth!
Skills!
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Cleanup Strategies
Note:	Elementary	has	no	clean-up	strategy.	
Refresh! Batch! Immediate!
Shared Env!
Downtime!
Repeatability!
Skills!
9/21/16	
15	
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
How do we know what data to clean
up?
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Define Terms
Signed Data - data modified 
so as to be easily recognizable.


Username: “TestUser” 
Email address: “automated@tes9ng.com”
9/21/16	
16	
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Define Terms
Marked Data - data denoted 
so as to be easily iden9fiable.


Addi9onal Field: “isTestData” 
Created By User: “TestUser”
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
Persisted Data
!   Keep a list in memory or in datasource:
–  userIds: 
• 12312
• 4322
• 23423
–  emailIds: 
• 987
• 423423
• 234
9/21/16	
17	
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
In Review
!   Defined Terms
!   Iden9fied Constraints
!   Walked Through Examples
www.beaufor0airmont.com				984.244.2313	©	2016	Beaufort	Fairmont,	LLC	All	rights	reserved	
References
!   Icons used freely in accordance with thenounproject terms…
–  Broom Icon - Anna Weiss
–  Database Icon - Cees de Vries
–  Gavel Icon - Eugen Belyakoff
–  Wallet Icon - Margot Nadot
–  Flyover Icon - Vineet Kumar Thakur
–  Group Icon - Alexandra Coscovelnita
–  Signature Icon - Korawan.M
–  Flag Icon - lipi
–  Persisted Data Icon - Stefan Parnarov
9/21/16	
18	
www.beaufor0airmont.com				984.244.2313	
Paul Merrill

My Podcast About SoYware &
Entrepreneurship: 
Reflec9on As A Service

Wri9ng: beauformairmont.com/blog

Email: paul@beauformairmont.com
Twiner: @dpaulmerrill
Like us on Facebook!
Call us today - free consulta9on 
984.244.2313

More Related Content

PDF
The Three Pillars Approach to an Agile Testing Strategy
PDF
Testing in the Dark
PDF
Agile Strategies for Traditional Software Development Teams
PDF
Agile Testing Process Analytics: From Data to Insightful Information
PDF
Making the Move to Behavior-Driven Development
PDF
A Day in the Life of a Test Architect
PDF
Data Strategies in Testing
PPTX
Data Con LA 2022 - Why Data Quality vigilance requires an End-to-End, Automat...
The Three Pillars Approach to an Agile Testing Strategy
Testing in the Dark
Agile Strategies for Traditional Software Development Teams
Agile Testing Process Analytics: From Data to Insightful Information
Making the Move to Behavior-Driven Development
A Day in the Life of a Test Architect
Data Strategies in Testing
Data Con LA 2022 - Why Data Quality vigilance requires an End-to-End, Automat...

Similar to Get a Handle on Your Test Data—Starting Now (20)

PDF
From Thought to Code, Write Your Own Data Destiny.pdf
PDF
H2O World - Building Data Products for Data Natives - Monica Rogati
PPTX
Data Quality in Test Automation Navigating the Path to Reliable Testing
PDF
Python Data Cleaning Cookbook Second Edition Michael Walker
PDF
Data Quality Success Stories
PDF
Data Quality at the Speed of Work
PDF
Test Data Management Explained: Why It’s the Backbone of Quality Testing
PDF
Data Cleansing and Beyond: How to Address Data Debt for AI
PPTX
Data Driven Testing (Part 5)
PPTX
Techniques for effective test data management in test automation.pptx
PPTX
Promise notes
PDF
Web App Testing - A Practical Approach
PDF
Data Science Toolkit for Product Managers
PDF
Data science toolkit for product managers
PDF
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
PDF
Role of Data Cleaning in Data Warehouse
PPTX
Data analytics
PDF
Best practices mdm_bpm_soa
PDF
The art of debugging
From Thought to Code, Write Your Own Data Destiny.pdf
H2O World - Building Data Products for Data Natives - Monica Rogati
Data Quality in Test Automation Navigating the Path to Reliable Testing
Python Data Cleaning Cookbook Second Edition Michael Walker
Data Quality Success Stories
Data Quality at the Speed of Work
Test Data Management Explained: Why It’s the Backbone of Quality Testing
Data Cleansing and Beyond: How to Address Data Debt for AI
Data Driven Testing (Part 5)
Techniques for effective test data management in test automation.pptx
Promise notes
Web App Testing - A Practical Approach
Data Science Toolkit for Product Managers
Data science toolkit for product managers
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Role of Data Cleaning in Data Warehouse
Data analytics
Best practices mdm_bpm_soa
The art of debugging
Ad

More from TechWell (20)

PDF
Failing and Recovering
PDF
Instill a DevOps Testing Culture in Your Team and Organization
PDF
Test Design for Fully Automated Build Architecture
PDF
System-Level Test Automation: Ensuring a Good Start
PDF
Build Your Mobile App Quality and Test Strategy
PDF
Testing Transformation: The Art and Science for Success
PDF
Implement BDD with Cucumber and SpecFlow
PDF
Develop WebDriver Automated Tests—and Keep Your Sanity
PDF
Ma 15
PDF
Eliminate Cloud Waste with a Holistic DevOps Strategy
PDF
Transform Test Organizations for the New World of DevOps
PDF
The Fourth Constraint in Project Delivery—Leadership
PDF
Resolve the Contradiction of Specialists within Agile Teams
PDF
Pin the Tail on the Metric: A Field-Tested Agile Game
PDF
Agile Performance Holarchy (APH)—A Model for Scaling Agile Teams
PDF
A Business-First Approach to DevOps Implementation
PDF
Databases in a Continuous Integration/Delivery Process
PDF
Mobile Testing: What—and What Not—to Automate
PDF
Cultural Intelligence: A Key Skill for Success
PDF
Turn the Lights On: A Power Utility Company's Agile Transformation
Failing and Recovering
Instill a DevOps Testing Culture in Your Team and Organization
Test Design for Fully Automated Build Architecture
System-Level Test Automation: Ensuring a Good Start
Build Your Mobile App Quality and Test Strategy
Testing Transformation: The Art and Science for Success
Implement BDD with Cucumber and SpecFlow
Develop WebDriver Automated Tests—and Keep Your Sanity
Ma 15
Eliminate Cloud Waste with a Holistic DevOps Strategy
Transform Test Organizations for the New World of DevOps
The Fourth Constraint in Project Delivery—Leadership
Resolve the Contradiction of Specialists within Agile Teams
Pin the Tail on the Metric: A Field-Tested Agile Game
Agile Performance Holarchy (APH)—A Model for Scaling Agile Teams
A Business-First Approach to DevOps Implementation
Databases in a Continuous Integration/Delivery Process
Mobile Testing: What—and What Not—to Automate
Cultural Intelligence: A Key Skill for Success
Turn the Lights On: A Power Utility Company's Agile Transformation
Ad

Recently uploaded (20)

PPTX
ai tools demonstartion for schools and inter college
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
medical staffing services at VALiNTRY
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
top salesforce developer skills in 2025.pdf
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
System and Network Administraation Chapter 3
PDF
Nekopoi APK 2025 free lastest update
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
AI in Product Development-omnex systems
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Design an Analysis of Algorithms II-SECS-1021-03
ai tools demonstartion for schools and inter college
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
medical staffing services at VALiNTRY
VVF-Customer-Presentation2025-Ver1.9.pptx
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
top salesforce developer skills in 2025.pdf
Operating system designcfffgfgggggggvggggggggg
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
CHAPTER 2 - PM Management and IT Context
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Navsoft: AI-Powered Business Solutions & Custom Software Development
System and Network Administraation Chapter 3
Nekopoi APK 2025 free lastest update
PTS Company Brochure 2025 (1).pdf.......
Softaken Excel to vCard Converter Software.pdf
AI in Product Development-omnex systems
How to Choose the Right IT Partner for Your Business in Malaysia
Wondershare Filmora 15 Crack With Activation Key [2025
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Design an Analysis of Algorithms II-SECS-1021-03

Get a Handle on Your Test Data—Starting Now