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

PDF
Getting Started with Dockerization of Selenium Tests Execution - Testwarez 2019
PDF
Easy Setup for Parallel Test Execution with Selenium Docker
PDF
How to Dockerize Parallel Execution of Selenium Tests - SQA Days EU, Rgia, La...
PDF
Jenkins & Selenium
PDF
Automation Testing
PDF
Automated-Testing-inside-containers
KEY
Testing with Jenkins, Selenium and Continuous Deployment
PDF
Meet the Selenium Grid
Getting Started with Dockerization of Selenium Tests Execution - Testwarez 2019
Easy Setup for Parallel Test Execution with Selenium Docker
How to Dockerize Parallel Execution of Selenium Tests - SQA Days EU, Rgia, La...
Jenkins & Selenium
Automation Testing
Automated-Testing-inside-containers
Testing with Jenkins, Selenium and Continuous Deployment
Meet the Selenium Grid

What's hot (20)

PPTX
Selenium Automation at Incapsula
PPTX
How to work with Selenium Grid: a quick walkthrough
PPTX
Extreme Testing with Selenium - @hugs at Jenkins User Conference 2011
PPTX
Continuous Delivery With Selenium Grid And Docker
PDF
Let’s start Continuous Integration with jenkins
PPT
Selenium 2: The Future of Selenium is now!
PPT
Continuous Integration (Jenkins/Hudson)
PPTX
Docker and Selenoid - Make Autotests Great Again
PPTX
Be flexible with zalenium, a dockerized selenium grid infrastructure
PPT
Selenium (1)
PDF
Testing world selenium_start_chapter1 (1)
PDF
Selenoid: browsers in containers
PDF
PPTX
QA Fest 2017. Александр Хотемской. Современные возможности в организации Prot...
PPTX
Automated Infrastructure Testing
PDF
Using Selenium 3 0
PDF
How to Install and Configure Jenkins on Centos 7
PPTX
Presentation_Protractor
PPTX
Service Configuration Management for Rapid Growth - demo 10 steps to build pi...
Selenium Automation at Incapsula
How to work with Selenium Grid: a quick walkthrough
Extreme Testing with Selenium - @hugs at Jenkins User Conference 2011
Continuous Delivery With Selenium Grid And Docker
Let’s start Continuous Integration with jenkins
Selenium 2: The Future of Selenium is now!
Continuous Integration (Jenkins/Hudson)
Docker and Selenoid - Make Autotests Great Again
Be flexible with zalenium, a dockerized selenium grid infrastructure
Selenium (1)
Testing world selenium_start_chapter1 (1)
Selenoid: browsers in containers
QA Fest 2017. Александр Хотемской. Современные возможности в организации Prot...
Automated Infrastructure Testing
Using Selenium 3 0
How to Install and Configure Jenkins on Centos 7
Presentation_Protractor
Service Configuration Management for Rapid Growth - demo 10 steps to build pi...
Ad

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

PDF
Selenium Best Practices For Web Testing
PPT
Selenium training in chennai
PPTX
Selenium
PPTX
What is Selenium Introduction to Selenium Testing.pptx
PDF
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
ODP
Test Framework for Acne Selenium+Sahi
PPTX
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
PPT
Selenium course training institute ameerpet hyderabad – Best software trainin...
PPT
Selenium course training institute ameerpet hyderabad
PPTX
Introduction to Selenium Testing
PPTX
Selenium ui paradigm - DDD North 2
DOCX
RAJESH KHANNA QA Engineer
PDF
white and grey modern website application education project group school pres...
PDF
selenium
PPT
Sakai10 Selenium Workshop
PDF
What is Selenium Testing.pdf
PPTX
Automated Testing for Websites With Selenium IDE
PPTX
Best java automation training institute in Bangalore - Selenium Labs
PPTX
QAorHighway2016
PDF
Training on Test Automation Uses Selenium | 21&28 March 2015 | Karachi, Pakistan
Selenium Best Practices For Web Testing
Selenium training in chennai
Selenium
What is Selenium Introduction to Selenium Testing.pptx
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
Test Framework for Acne Selenium+Sahi
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium course training institute ameerpet hyderabad – Best software trainin...
Selenium course training institute ameerpet hyderabad
Introduction to Selenium Testing
Selenium ui paradigm - DDD North 2
RAJESH KHANNA QA Engineer
white and grey modern website application education project group school pres...
selenium
Sakai10 Selenium Workshop
What is Selenium Testing.pdf
Automated Testing for Websites With Selenium IDE
Best java automation training institute in Bangalore - Selenium Labs
QAorHighway2016
Training on Test Automation Uses Selenium | 21&28 March 2015 | Karachi, Pakistan
Ad

More from Sargis Sargsyan (11)

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

Recently uploaded (20)

PPTX
A Presentation on Artificial Intelligence
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Spectroscopy.pptx food analysis technology
PDF
Empathic Computing: Creating Shared Understanding
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Approach and Philosophy of On baking technology
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
A Presentation on Artificial Intelligence
Group 1 Presentation -Planning and Decision Making .pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Network Security Unit 5.pdf for BCA BBA.
Diabetes mellitus diagnosis method based random forest with bat algorithm
Reach Out and Touch Someone: Haptics and Empathic Computing
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Big Data Technologies - Introduction.pptx
MIND Revenue Release Quarter 2 2025 Press Release
Advanced methodologies resolving dimensionality complications for autism neur...
Spectroscopy.pptx food analysis technology
Empathic Computing: Creating Shared Understanding
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Dropbox Q2 2025 Financial Results & Investor Presentation
Approach and Philosophy of On baking technology
NewMind AI Weekly Chronicles - August'25-Week II
MYSQL Presentation for SQL database connectivity
Encapsulation_ Review paper, used for researhc scholars
gpt5_lecture_notes_comprehensive_20250812015547.pdf

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