SlideShare a Scribd company logo
Design patterns in test
automation
Mikalai Alimenkou
http://xpinjection.com
@xpinjection
Design patterns in test automation
Design patterns in test automation
Disclaimer
This talk is based on
personal experience
Design pattern? What is it?
Classical
Design
Patterns
Main driver is *ity
Test
Logic
Application
Driver
Test
Data
Reliability
Clarity
Flexibility
Maintainability
Stability
Structural Patterns
Structure test code better to improve
maintainability, avoid duplicates and separate
concepts, so it becomes easier for test engineer
to understand, change and support tests.
Index
Page
Main
Page
login
Search
Page
search
filter
ordersearch
Details
Page
open
see more
show me like this
close
#1. Page Object
Page structure
Available methods
#2. Fluent/Chain of invocations
#3. Factory/Page Factory
#4. Page Element/Composite
List of Items
Link
Menu
Panel
Checkbox
No duplicated code
#5. Loadable Component
#6. Strategy
• Validation
• Navigation
• Calculation
• Execution
Data Patterns
Separate data management from test logic
and reduce amount of data related boilerplate
code in tests, making logic more clear and
maintainable for test engineers.
#7. Value Object
#8. Builder
#9. Assert Object/Matchers
#10. Data Registry
#11. Object Pool/Flyweight
• DB instance
• Browser
• Pages
• Heavy domain objects
#12. Data Provider
Entity Driven Data Provider
Technical Patterns
Keep technical aspects separately from test
logic if some additional level of control or low
level data is needed, reducing tests complexity
and improving test code maintainability.
#13. Decorator
Driver in driver in
driver in driver in
driver in driver in
driver in driver in
driver…
#14. Proxy
Use HTTP proxy for tests
• Blacklist external resources (Facebook, Twitter, Ads,
etc.)
• Cache images and other nonfunctional resources
• Collect HTTP traffic for analysis (404, redirects,
loading time, etc.)
• Speedup page loading
Business Involvement Patterns
Try to bring business people and
requirements as close as possible to test
automation, making it more valuable and
helpful for the whole product team.
#15. Keyword Driven Testing
#16. Behavior Specification
Behavior Driven Development
#17. Steps
WebDriver or Pages inside
Steps is a key for success
Acceptance
tests
Page
Objects
Steps in different formats
=
Testing
scenario
WebDriver
test
Design patterns in test automation
@xpinjection
http://xpinjection.com
mikalai.alimenkou@xpinjection.com

More Related Content

What's hot (20)

PPTX
How to Get Started with Cypress
Applitools
 
PPTX
ASP.NET MVC Presentation
Volkan Uzun
 
DOCX
My resume selenium
AltafLakhani1
 
PPTX
Automation Framework Presentation
Ben Ngo
 
DOC
Hybrid framework for test automation
srivinayak
 
PPT
Security testing
baskar p
 
PDF
JVM Memory Management Details
Azul Systems Inc.
 
PPT
TESTING STRATEGY.ppt
FawazHussain4
 
PPTX
Unit Testing Concepts and Best Practices
Derek Smith
 
PDF
Test cases
Chandra Maddigapu
 
PDF
Developing a test automation strategy by Brian Bayer
QA or the Highway
 
PPS
Unit Testing
Anuj Arora
 
DOCX
Selenium interview questions
girichinna27
 
PPT
Test automation using selenium
shreyas JC
 
PPT
Centralized test automation framework implementation
Bharathi Krishnamurthi
 
PPT
Test case development
Hrushikesh Wakhle
 
PPTX
Locators in selenium - BNT 09
weekendtesting
 
PPTX
Hibernate tutorial
Mumbai Academisc
 
PPTX
Selenium web driver
Roman Savitskiy
 
PDF
Selenium Maven With Eclipse | Edureka
Edureka!
 
How to Get Started with Cypress
Applitools
 
ASP.NET MVC Presentation
Volkan Uzun
 
My resume selenium
AltafLakhani1
 
Automation Framework Presentation
Ben Ngo
 
Hybrid framework for test automation
srivinayak
 
Security testing
baskar p
 
JVM Memory Management Details
Azul Systems Inc.
 
TESTING STRATEGY.ppt
FawazHussain4
 
Unit Testing Concepts and Best Practices
Derek Smith
 
Test cases
Chandra Maddigapu
 
Developing a test automation strategy by Brian Bayer
QA or the Highway
 
Unit Testing
Anuj Arora
 
Selenium interview questions
girichinna27
 
Test automation using selenium
shreyas JC
 
Centralized test automation framework implementation
Bharathi Krishnamurthi
 
Test case development
Hrushikesh Wakhle
 
Locators in selenium - BNT 09
weekendtesting
 
Hibernate tutorial
Mumbai Academisc
 
Selenium web driver
Roman Savitskiy
 
Selenium Maven With Eclipse | Edureka
Edureka!
 

Similar to Design patterns in test automation (20)

PDF
Patterns of a “good” test automation framework
Anand Bagmar
 
PDF
Test Automation Design Patterns_ A Comprehensive Guide.pdf
flufftailshop
 
PDF
Patterns of Test Automation
vodQA
 
PDF
Test Automation Design Patterns_ A Comprehensive Guide.pdf
kalichargn70th171
 
PDF
Patterns of a "Good" Test Automation Framework, Locators & Data
Agile Testing Alliance
 
PDF
Patterns in Test Automation
Anand Bagmar
 
PDF
Test automation design patterns
Vitaly Tatarinov
 
PPT
Test Automation Framework Development Introduction
Ganuka Yashantha
 
PPTX
You have Selenium... Now what?
Great Wide Open
 
PPTX
An easy way to automate complex UI
Ivan Pashko
 
PDF
6 Traits of a Successful Test Automation Architecture
Erdem YILDIRIM
 
PPTX
ModelDT: how to industrialize testing
Greg Soulsby
 
PPTX
TDD in functional testing with WebDriver
Mikalai Alimenkou
 
PDF
Ramp up your testing solution, ExpoQA 2023
Gáspár Nagy
 
PPTX
Small is Beautiful- Fully Automate your Test Case Design
Georgina Tilby
 
PPT
Test Automation Framework Online Training by QuontraSolutions
Quontra Solutions
 
PPTX
Testing Harmony Design Patterns & Anti-Patterns Unveiled
Knoldus Inc.
 
PPT
Pa Project And Best Practice 2
alice yang
 
PDF
UI Testing Pattern
David Harrison
 
PPT
Designing a Test Automation Framework By Quontra solutions
QUONTRASOLUTIONS
 
Patterns of a “good” test automation framework
Anand Bagmar
 
Test Automation Design Patterns_ A Comprehensive Guide.pdf
flufftailshop
 
Patterns of Test Automation
vodQA
 
Test Automation Design Patterns_ A Comprehensive Guide.pdf
kalichargn70th171
 
Patterns of a "Good" Test Automation Framework, Locators & Data
Agile Testing Alliance
 
Patterns in Test Automation
Anand Bagmar
 
Test automation design patterns
Vitaly Tatarinov
 
Test Automation Framework Development Introduction
Ganuka Yashantha
 
You have Selenium... Now what?
Great Wide Open
 
An easy way to automate complex UI
Ivan Pashko
 
6 Traits of a Successful Test Automation Architecture
Erdem YILDIRIM
 
ModelDT: how to industrialize testing
Greg Soulsby
 
TDD in functional testing with WebDriver
Mikalai Alimenkou
 
Ramp up your testing solution, ExpoQA 2023
Gáspár Nagy
 
Small is Beautiful- Fully Automate your Test Case Design
Georgina Tilby
 
Test Automation Framework Online Training by QuontraSolutions
Quontra Solutions
 
Testing Harmony Design Patterns & Anti-Patterns Unveiled
Knoldus Inc.
 
Pa Project And Best Practice 2
alice yang
 
UI Testing Pattern
David Harrison
 
Designing a Test Automation Framework By Quontra solutions
QUONTRASOLUTIONS
 
Ad

More from Mikalai Alimenkou (20)

PPTX
Rise and fall of Story Points. Capacity based planning from the trenches.
Mikalai Alimenkou
 
PPTX
Static analysis tools as the best friend of QA
Mikalai Alimenkou
 
PPTX
Modern CI/CD in the microservices world with Kubernetes
Mikalai Alimenkou
 
PPTX
Saga about distributed business transactions in microservices world
Mikalai Alimenkou
 
PPTX
Effectiveness tips from Kubernetes trenches by Captain Obvious
Mikalai Alimenkou
 
PPTX
Ride the database in JUnit tests with Database Rider
Mikalai Alimenkou
 
PPTX
Wastful waste or why everything is so slow in development
Mikalai Alimenkou
 
PPTX
Hexagonal architecture with Spring Boot
Mikalai Alimenkou
 
PPTX
Wastful waste or why everything is so slow in development
Mikalai Alimenkou
 
PPTX
DevOps checklist or how to understand where is your team in DevOps landscape ...
Mikalai Alimenkou
 
PPTX
DevOps checklist or how to understand where is your team in DevOps landscape
Mikalai Alimenkou
 
PDF
Практические трудности в разработке Медкарты для целой страны
Mikalai Alimenkou
 
PPTX
Hexagonal architecture with Spring Boot [EPAM Java online conference]
Mikalai Alimenkou
 
PPTX
Bro, manage test data like a pro! [QA Fest 2018]
Mikalai Alimenkou
 
PPTX
Agile antipatterns: review after 10 years of practice
Mikalai Alimenkou
 
PPTX
Hexagonal architecture with Spring Boot
Mikalai Alimenkou
 
PPTX
Bro, manage test data like a pro!
Mikalai Alimenkou
 
PPTX
Бытовая классификация тестировщиков с точки зрения разработчика
Mikalai Alimenkou
 
PPTX
Code Review tool for personal effectiveness and waste analysis
Mikalai Alimenkou
 
PDF
Funny stories and anti-patterns from DevOps landscape
Mikalai Alimenkou
 
Rise and fall of Story Points. Capacity based planning from the trenches.
Mikalai Alimenkou
 
Static analysis tools as the best friend of QA
Mikalai Alimenkou
 
Modern CI/CD in the microservices world with Kubernetes
Mikalai Alimenkou
 
Saga about distributed business transactions in microservices world
Mikalai Alimenkou
 
Effectiveness tips from Kubernetes trenches by Captain Obvious
Mikalai Alimenkou
 
Ride the database in JUnit tests with Database Rider
Mikalai Alimenkou
 
Wastful waste or why everything is so slow in development
Mikalai Alimenkou
 
Hexagonal architecture with Spring Boot
Mikalai Alimenkou
 
Wastful waste or why everything is so slow in development
Mikalai Alimenkou
 
DevOps checklist or how to understand where is your team in DevOps landscape ...
Mikalai Alimenkou
 
DevOps checklist or how to understand where is your team in DevOps landscape
Mikalai Alimenkou
 
Практические трудности в разработке Медкарты для целой страны
Mikalai Alimenkou
 
Hexagonal architecture with Spring Boot [EPAM Java online conference]
Mikalai Alimenkou
 
Bro, manage test data like a pro! [QA Fest 2018]
Mikalai Alimenkou
 
Agile antipatterns: review after 10 years of practice
Mikalai Alimenkou
 
Hexagonal architecture with Spring Boot
Mikalai Alimenkou
 
Bro, manage test data like a pro!
Mikalai Alimenkou
 
Бытовая классификация тестировщиков с точки зрения разработчика
Mikalai Alimenkou
 
Code Review tool for personal effectiveness and waste analysis
Mikalai Alimenkou
 
Funny stories and anti-patterns from DevOps landscape
Mikalai Alimenkou
 
Ad

Recently uploaded (20)

PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 

Design patterns in test automation

Editor's Notes

  • #40: This is all I wanted to share with you today. Thanks for participation! I would be happy to answer any questions or continue discussion during the break.