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

PPT
Scrum Testing Methodology
PPTX
Testing strategy for agile projects updated
PDF
우리 제품의 검증 프로세스 소개 자료
PPT
Test Automation Framework Designs
PDF
50 Soruda Yazılım Testi
PDF
위험기반테스트접근 테스트계획 사례
PDF
Test Automation Framework Design | www.idexcel.com
PPTX
AUTOMATION FRAMEWORK USING SELENIUM & TESTNG ALONG WITH MAVEN
Scrum Testing Methodology
Testing strategy for agile projects updated
우리 제품의 검증 프로세스 소개 자료
Test Automation Framework Designs
50 Soruda Yazılım Testi
위험기반테스트접근 테스트계획 사례
Test Automation Framework Design | www.idexcel.com
AUTOMATION FRAMEWORK USING SELENIUM & TESTNG ALONG WITH MAVEN

What's hot (20)

PPTX
Data driven Automation Framework with Selenium
PPTX
Selenium Test Automation
PPTX
Kanban/Scrumban - taking scrum outside its comfort zone
PDF
Test Environment Management
PPT
Selenium Automation Framework
PDF
소프트웨어 테스팅
PDF
New trends in testing automation
PPSX
Yazilim Projelerinde Test Sureci
DOC
Manual Testing Notes
PDF
Selenium Maven With Eclipse | Edureka
PPTX
Introduction to Selenium Web Driver
PPTX
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
ODP
BDD with Cucumber
PDF
Manual Testing Interview Questions | Edureka
PDF
Selenium with Cucumber
PPTX
How to Design a Successful Test Automation Strategy
PDF
Istqb 4-테스트설계기법-2015-3-배포
PDF
Non-Functional testing
PDF
CQRS and Event Sourcing in Action
PPTX
Selenium WebDriver
Data driven Automation Framework with Selenium
Selenium Test Automation
Kanban/Scrumban - taking scrum outside its comfort zone
Test Environment Management
Selenium Automation Framework
소프트웨어 테스팅
New trends in testing automation
Yazilim Projelerinde Test Sureci
Manual Testing Notes
Selenium Maven With Eclipse | Edureka
Introduction to Selenium Web Driver
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
BDD with Cucumber
Manual Testing Interview Questions | Edureka
Selenium with Cucumber
How to Design a Successful Test Automation Strategy
Istqb 4-테스트설계기법-2015-3-배포
Non-Functional testing
CQRS and Event Sourcing in Action
Selenium WebDriver
Ad

Similar to Design patterns in test automation (20)

PDF
Patterns of a “good” test automation framework
PDF
Test Automation Design Patterns_ A Comprehensive Guide.pdf
PDF
Patterns of Test Automation
PDF
Test Automation Design Patterns_ A Comprehensive Guide.pdf
PDF
Patterns of a "Good" Test Automation Framework, Locators & Data
PDF
Patterns in Test Automation
PDF
Test automation design patterns
PPT
Test Automation Framework Development Introduction
PPTX
You have Selenium... Now what?
PPTX
An easy way to automate complex UI
PDF
6 Traits of a Successful Test Automation Architecture
PPTX
ModelDT: how to industrialize testing
PPTX
TDD in functional testing with WebDriver
PDF
Ramp up your testing solution, ExpoQA 2023
PPTX
Small is Beautiful- Fully Automate your Test Case Design
PPT
Test Automation Framework Online Training by QuontraSolutions
PPTX
Testing Harmony Design Patterns & Anti-Patterns Unveiled
PPT
Pa Project And Best Practice 2
PDF
UI Testing Pattern
PPT
Designing a Test Automation Framework By Quontra solutions
Patterns of a “good” test automation framework
Test Automation Design Patterns_ A Comprehensive Guide.pdf
Patterns of Test Automation
Test Automation Design Patterns_ A Comprehensive Guide.pdf
Patterns of a "Good" Test Automation Framework, Locators & Data
Patterns in Test Automation
Test automation design patterns
Test Automation Framework Development Introduction
You have Selenium... Now what?
An easy way to automate complex UI
6 Traits of a Successful Test Automation Architecture
ModelDT: how to industrialize testing
TDD in functional testing with WebDriver
Ramp up your testing solution, ExpoQA 2023
Small is Beautiful- Fully Automate your Test Case Design
Test Automation Framework Online Training by QuontraSolutions
Testing Harmony Design Patterns & Anti-Patterns Unveiled
Pa Project And Best Practice 2
UI Testing Pattern
Designing a Test Automation Framework By Quontra solutions
Ad

More from Mikalai Alimenkou (20)

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

Recently uploaded (20)

PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPT
Teaching material agriculture food technology
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Electronic commerce courselecture one. Pdf
PPTX
Cloud computing and distributed systems.
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
NewMind AI Monthly Chronicles - July 2025
Review of recent advances in non-invasive hemoglobin estimation
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Teaching material agriculture food technology
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Spectral efficient network and resource selection model in 5G networks
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Network Security Unit 5.pdf for BCA BBA.
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Per capita expenditure prediction using model stacking based on satellite ima...
Unlocking AI with Model Context Protocol (MCP)
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Electronic commerce courselecture one. Pdf
Cloud computing and distributed systems.
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
“AI and Expert System Decision Support & Business Intelligence Systems”
Build a system with the filesystem maintained by OSTree @ COSCUP 2025

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.