SlideShare a Scribd company logo
Make	Your	Selenium	Suite	Faster	and	Reliable:
Test	Setup	with	REST	APIs
Sargis Sargsyan
s How	to	design	the	framework	to	be	able	to	use	HTTP	
requests
q How	to	create	Test	Data	before	test	and	clean	up	after	
test	without	UI	actions w How	to	store	login	create/edit/delete	objects	without	UI	
actions
Best	practices	of	Selenium	WebDriverhPractical	example	how	to	use	HTTP	lib	from	the	Java	
code7
Maintaining	HTTP	responsesÖ
Main	Topics
What	is	Test	Setup?	Why	is	it	Important?
[ A	single	Selenium	test	should	test	one	and	only	thing.	A	bug	
in	another	part	of	the	application	that	is	not	exactly	related	
to	the	test	should	not	cause	the	test	to	fail.
L Every	test	should	be	independent.	The	test	outcome	should	
not	affected	by	another	test	in	the	suite.
Make	a	faster	tests.	As	quicker	test	suite	as	much	useful	it	is.s
n Every	test	should	create	and	clean	the	data	before	and	the	
after	the	test	run.
Test Case Life	Cycle
y
Test	clean	up
S
Run	the	test
Test	initialize
Why	should	 test	data	be	created	before	test	execution?
Ĥ
E
7
a
Selenium	tests	often	
involve	setups.	Only	after	
doing	those	things	you	
are	ready	to	assert	on	
some	aspect	of	the	
website
Sign	Up	/	Login
Submissions
Pages	
Navigation
Interactions	/	
Actions
å Test	Run
Tools &
libraries
7
Java
Maven
TestNG
OkHttp
Gson
Selenium
Source Code
https://github.com/sargissargsyan/selenium-setup-rest-api
Taiga.io
Getting Started with
Selenium
s
Let’s	Test	Like	and	Watching	Buttons
Let’s	Test	Like	and	Watching	Buttons
Let’s	Test	Like	and	Watching	Buttons
Let’s	Test	Like	and	Watching	Buttons
Let’s	Test	Like	and	Watching	Buttons
Let’s	Test	Like	and	Watching	Buttons
Let’s	Test	Like	and	Watching	Buttons
Let’s	Test	Like	and	Watching	Buttons
Let’s	Test	Like	and	Watching	Buttons
Let’s	Test	Like	and	Watching	Buttons
Let’s	Test	Like	and	Watching	Buttons
Login
á
What’s	Happening	 When	You	Click	on	Login?
What’s	Happening	 When	You	Click	on	Login?
What’s	Happening	 When	You	Click	on	Login?
What’s	Happening	 When	You	Click	on	Login?
What’s	Happening	 When	You	Click	on	Login?
What’s	Happening	 When	You	Click	on	Login?
What’s	Happening	 When	You	Click	on	Login?
What’s	Happening	 When	You	Click	on	Login?
What’s	Happening	 When	You	Click	on	Login?
Create Project
`
How	to	Create	Project
How	to	Create	Project
How	to	Create	Project
How	to	Create	Project
How	to	Create	Project
Integrate	with	Page	Object	Patten
The	Same	Test	with	Rest	API	setup
The	Test	Run	with	Rest	API	setup
Test	Run	Time
Create	Issue	in	Project	with	API
Clean up after
y
Delete	Created	Project
Delete	Created	Project
Tips and Tricks
Ĥ
Login	Info	in	Cookies
Manage	Cookies
Download	Selenium	Drivers	with	Maven	plugin
Execute	JavaScript	to	Click	on	Element
Wait	for	Page	Load
57
Take	a	Screenshot	on	Failure
58
Get	HTML	Source
59
Maximize	the	Window
Thank You!
Have a Nice	Day...
Ö
sargis.sargsyan@live.com
ą
/sargissargsyan
t
@sargisqa

More Related Content

What's hot (20)

PPTX
Selenium Automation at Incapsula
adamcarmi
 
PPTX
How to work with Selenium Grid: a quick walkthrough
Noam Zakai
 
PPTX
Extreme Testing with Selenium - @hugs at Jenkins User Conference 2011
hugs
 
PPTX
Continuous Delivery With Selenium Grid And Docker
Barbara Gonzalez
 
PDF
Let’s start Continuous Integration with jenkins
Tomohide Kakeya
 
PPT
Selenium 2: The Future of Selenium is now!
AutomatedTester
 
PPT
Continuous Integration (Jenkins/Hudson)
Dennys Hsieh
 
PPTX
Docker and Selenoid - Make Autotests Great Again
COMAQA.BY
 
PPTX
Be flexible with zalenium, a dockerized selenium grid infrastructure
Georgios Romanas
 
PPT
Selenium (1)
onlinemindq
 
PDF
Testing world selenium_start_chapter1 (1)
Testing World
 
PDF
Selenoid: browsers in containers
Ivan Krutov
 
PDF
Kloud
Pankaj Kaushal
 
PPTX
QA Fest 2017. Александр Хотемской. Современные возможности в организации Prot...
QAFest
 
PPTX
Automated Infrastructure Testing
Ranjib Dey
 
PDF
Using Selenium 3 0
TEST Huddle
 
PDF
How to Install and Configure Jenkins on Centos 7
AniketGoyal14
 
PPTX
Presentation_Protractor
Umesh Randhe
 
PPTX
Service Configuration Management for Rapid Growth - demo 10 steps to build pi...
Takashi Someda
 
Selenium Automation at Incapsula
adamcarmi
 
How to work with Selenium Grid: a quick walkthrough
Noam Zakai
 
Extreme Testing with Selenium - @hugs at Jenkins User Conference 2011
hugs
 
Continuous Delivery With Selenium Grid And Docker
Barbara Gonzalez
 
Let’s start Continuous Integration with jenkins
Tomohide Kakeya
 
Selenium 2: The Future of Selenium is now!
AutomatedTester
 
Continuous Integration (Jenkins/Hudson)
Dennys Hsieh
 
Docker and Selenoid - Make Autotests Great Again
COMAQA.BY
 
Be flexible with zalenium, a dockerized selenium grid infrastructure
Georgios Romanas
 
Selenium (1)
onlinemindq
 
Testing world selenium_start_chapter1 (1)
Testing World
 
Selenoid: browsers in containers
Ivan Krutov
 
QA Fest 2017. Александр Хотемской. Современные возможности в организации Prot...
QAFest
 
Automated Infrastructure Testing
Ranjib Dey
 
Using Selenium 3 0
TEST Huddle
 
How to Install and Configure Jenkins on Centos 7
AniketGoyal14
 
Presentation_Protractor
Umesh Randhe
 
Service Configuration Management for Rapid Growth - demo 10 steps to build pi...
Takashi Someda
 

Similar to Make Your Selenium Suite Faster and Reliable: Test Setup with REST APIs - SQA Days 23, Minsk, Belarus (20)

PDF
How To Use Selenium Successfully (Java Edition)
Dave Haeffner
 
PDF
Automation Testing using Selenium
Naresh Chintalcheru
 
PDF
Selenium Testing The Complete Step-by-Step Tutorial.pdf
Steve Wortham
 
PDF
An Overview of Selenium Grid and Its Benefits
Shubham Joshi
 
ODP
Dov'è il tasto ok?
Michele Orselli
 
PPT
Selenium using C# by Yogesh Kumar
Software Testing Board
 
PDF
Boston selenium meetup: Selenium 2
epall
 
PDF
Selenium
g2ix
 
PPTX
Automated ui-testing
Slobodan Lohja
 
PPTX
Selenium Testing
Shreshtt Bhatt
 
DOC
Selenium course syllabus
lakshmipriyaaka
 
PPT
Selenium and The Grinder
OpenSource Connections
 
PPTX
Helpful Automation Techniques - Selenium Camp 2014
Justin Ison
 
PPTX
6. Automation Testing tools.pptxSoftwareQulaity
tiyaAbid
 
PDF
Mastering Selenium WebDriver: A Comprehensive Tutorial with Real-World Examples
jamescantor38
 
PDF
Selenium Automation Testing - A Complete Guide.pdf
kalichargn70th171
 
PDF
Selenium Ide Tutorial
metapix
 
PDF
Tellurium At Rich Web Experience2009
John.Jian.Fang
 
PPTX
Selenium IDE
b4usolution .
 
PPT
Selenium training
Robin0590
 
How To Use Selenium Successfully (Java Edition)
Dave Haeffner
 
Automation Testing using Selenium
Naresh Chintalcheru
 
Selenium Testing The Complete Step-by-Step Tutorial.pdf
Steve Wortham
 
An Overview of Selenium Grid and Its Benefits
Shubham Joshi
 
Dov'è il tasto ok?
Michele Orselli
 
Selenium using C# by Yogesh Kumar
Software Testing Board
 
Boston selenium meetup: Selenium 2
epall
 
Selenium
g2ix
 
Automated ui-testing
Slobodan Lohja
 
Selenium Testing
Shreshtt Bhatt
 
Selenium course syllabus
lakshmipriyaaka
 
Selenium and The Grinder
OpenSource Connections
 
Helpful Automation Techniques - Selenium Camp 2014
Justin Ison
 
6. Automation Testing tools.pptxSoftwareQulaity
tiyaAbid
 
Mastering Selenium WebDriver: A Comprehensive Tutorial with Real-World Examples
jamescantor38
 
Selenium Automation Testing - A Complete Guide.pdf
kalichargn70th171
 
Selenium Ide Tutorial
metapix
 
Tellurium At Rich Web Experience2009
John.Jian.Fang
 
Selenium IDE
b4usolution .
 
Selenium training
Robin0590
 
Ad

More from Sargis Sargsyan (11)

PDF
Let’s Talk About Quality Engineering
Sargis Sargsyan
 
PDF
Your Road to Quality Assurance
Sargis Sargsyan
 
PDF
Appium Dockerization: from Scratch to Advanced Implementation - HUSTEF 2019
Sargis Sargsyan
 
PDF
Run your Appium tests using Docker Android - AppiumConf 2019
Sargis Sargsyan
 
PDF
Test Data Preparation: Tips and Tricks - SQA Days 22 - Saint Petersburg
Sargis Sargsyan
 
PDF
Better Page Object Handling with Loadable Component Pattern - SQA Days 20, Be...
Sargis Sargsyan
 
PDF
Better Page Object Handling with Loadable Component Pattern
Sargis Sargsyan
 
PDF
Agile Testing
Sargis Sargsyan
 
PDF
Selenium Testing on Chrome - Google DevFest Armenia 2015
Sargis Sargsyan
 
PDF
Web Application Testing with Selenium
Sargis Sargsyan
 
PDF
QA MeetUp Yerevan - Aug 25
Sargis Sargsyan
 
Let’s Talk About Quality Engineering
Sargis Sargsyan
 
Your Road to Quality Assurance
Sargis Sargsyan
 
Appium Dockerization: from Scratch to Advanced Implementation - HUSTEF 2019
Sargis Sargsyan
 
Run your Appium tests using Docker Android - AppiumConf 2019
Sargis Sargsyan
 
Test Data Preparation: Tips and Tricks - SQA Days 22 - Saint Petersburg
Sargis Sargsyan
 
Better Page Object Handling with Loadable Component Pattern - SQA Days 20, Be...
Sargis Sargsyan
 
Better Page Object Handling with Loadable Component Pattern
Sargis Sargsyan
 
Agile Testing
Sargis Sargsyan
 
Selenium Testing on Chrome - Google DevFest Armenia 2015
Sargis Sargsyan
 
Web Application Testing with Selenium
Sargis Sargsyan
 
QA MeetUp Yerevan - Aug 25
Sargis Sargsyan
 
Ad

Recently uploaded (20)

PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
July Patch Tuesday
Ivanti
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PDF
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PDF
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
July Patch Tuesday
Ivanti
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 

Make Your Selenium Suite Faster and Reliable: Test Setup with REST APIs - SQA Days 23, Minsk, Belarus