SlideShare a Scribd company logo
Selenium - Web Browser Automation
Selenium - Test automation for web applications
ANIS GHELISSI
GLS Consulting
glsconsulting@hotmail.com
November 5, 2018
Selenium - Web Browser Automation
Overview
1 Introduction to Selenium
Web applications test generalities
Selenium
2 Selenium IDE
Tests and test suites
Selenese scripts
3 Selenium WebDrive
Presentation
View Results
4 Selenium Grid
Presentation
Grid Architecture
Grid Configuration
GUI Locators
Xpath
5 Advanced usages
Selenium - Web Browser Automation
Introduction to Selenium
Web applications test generalities
Web application and testing terminology
Functionality
Usability
Interface
Compatibility
Performance
Security
Typology of tests
Selenium - Web Browser Automation
Introduction to Selenium
Selenium
Presentation
Functionalities
Architecture
Selenium - Web Browser Automation
Introduction to Selenium
Web application and testing terminology
What is web application?
What is testing for web application?
Selenium - Web Browser Automation
Introduction to Selenium
What is web application?
server side resources (PHP code, Jsp, Servlet, Java ....)
client side resources (html, javascript, css, images..)
Selenium - Web Browser Automation
Introduction to Selenium
What is testing for web application?
As for single applications testing, the objective is to look for
potential bugs in the web application.
Unit test
During development, for developers.
Instant feedback.
Easy to maintain.
End to end test
Presented to the client.
Easy to read.
Selenium - Web Browser Automation
Introduction to Selenium
Functionality
Links
Forms
Html/Css validation
Data
Selenium - Web Browser Automation
Introduction to Selenium
Functionality
check all the links(internal/external/mail)
check all the forms(validation, messages
(error,confirmation,...),mandatory and optional fields)
Html/Css validation (https://validator.w3.org/)
Data Consistency/ Data Integrity
Selenium - Web Browser Automation
Introduction to Selenium
Usability
Learning curve
Ease of navigation
Content consistency
Selenium - Web Browser Automation
Introduction to Selenium
Usability
how to measure the interaction between the person and the web
application.
ease of navigation (complex web interface vs simple web
interface/how many clicks do I need to get the job done/ the
user expect the web application to be easy to use).
content consistency(main menu should be visible on all pages,
avoid annoying colors and fonts, image placement should be
nifty, whenever you encounter an anchored text you would
expect it to work properly etc.... ).
Selenium - Web Browser Automation
Introduction to Selenium
Interface
Web Server
Database
Selenium - Web Browser Automation
Introduction to Selenium
Interface
The web application should be able to interact properly with the
server side including the database, the network and the database
Selenium - Web Browser Automation
Introduction to Selenium
Compatibility
Selenium - Web Browser Automation
Introduction to Selenium
Performance
Load test
many users are loading the same page, simultaneous user
requests,heavy load ...
Selenium - Web Browser Automation
Introduction to Selenium
Performance
Stress test
Push the web application to it’s limits to observe how it
behaves, how it recovers.
Generally input fields are pushed the most.
Performed on different operating systems and different
hardware to detect flaws like potential memory leaks.
Could be used to measure scalability.
Selenium - Web Browser Automation
Introduction to Selenium
Security
Access
if you have different level of user access, you should check that
only the authorized users could view only the content at their
level.
Other related security tests
vulnerability, password cracking, viruses and malware
detection..
Selenium - Web Browser Automation
Introduction to Selenium
Selenium presentation
Cross browsers
Many languages
Selenium - Web Browser Automation
Introduction to Selenium
Selenium functionalities
Record/playback tests
Write specific tests - Selenium API
Launch remote tests
Selenium - Web Browser Automation
Introduction to Selenium
Selenium architecture
IDE
WebDrive
Grid
Selenium - Web Browser Automation
Selenium IDE
Tests and test suites
Record and playback
Integrated development environment that exists in the form of an
extension to the browser(firefox, chrome).
FireFox/Chrome plugin
Save as a test
Group tests as test suites
Selenium - Web Browser Automation
Selenium IDE
Selenese scripts
Selenese scripts
Command
Target
Value
Selenium - Web Browser Automation
Selenium WebDrive
Presentation
WebDrive
Integrate Selenium to your code
Multiplutform
Specific driver for navigator
Selenium - Web Browser Automation
Selenium WebDrive
View Results
How to evaluate results
Java Context, Junit / TestNG
IDE (IDA Intellij used in this session)
Selenium - Web Browser Automation
Selenium Grid
Presentation
Selenium Grid Presentation
Scale
Manage multiple environments
Minimize the maintenance time
Selenium - Web Browser Automation
Selenium Grid
Grid Architecture
Selenium Grid Architecture
Hub
Nodes
Jar file
Java commands
Selenium - Web Browser Automation
Selenium Grid
Grid Configuration
Grid Configuration
http://localhost:4444/grid/console
Selenium - Web Browser Automation
Selenium Grid
GUI Locators
GUI locator
Hyperlink
Id
name
Css
Selenium - Web Browser Automation
Selenium Grid
Xpath
Xpath
Node selection in xml documents
Used in html to locate elements in DOM
Selenium - Web Browser Automation
Selenium Grid
Xpath
Xpath Selection
By Tag
By Attribute
By Tag content
Selenium - Web Browser Automation
Selenium Grid
Xpath
Xpath Selection
By Tag
By Attribute
By Tag content
Selenium - Web Browser Automation
Advanced usages
Selenium - Web Browser Automation
Advanced usages
The End

More Related Content

What's hot (20)

PDF
What type of testing is selenium commonly used for?
Serena Gray
 
PPTX
تست وب اپ ها با سلنیوم - علیرضا عظیم زاده میلانی
irpycon
 
PPTX
Intermediate ASP.NET MVC
Joe Wilson
 
PDF
Introduction to Selenium Webdriver - SpringPeople
SpringPeople
 
PPSX
Selenium WebDriver
ANKUR-BA
 
PPTX
Selenium presentation
shivani thakur
 
PPTX
Web Testing
muhamedwaseem09
 
PPTX
Selenium Automation
MuhammadusmanRana10
 
PPSX
Selenium RC
ANKUR-BA
 
PPTX
Joomla Features
US Joomla Force
 
PDF
How to Handle Multiple Windows in Selenium Webdriver | Edureka
Edureka!
 
PDF
What's new in Joomla 1.6?
Alessandro Nadalin
 
PPT
Soa testing soap ui (2)
Knoldus Inc.
 
PPTX
Selenium
sunilabj
 
PPTX
New Features of ASP.NET 4.0
Buu Nguyen
 
PDF
Introduction to Threat Modeling
slicklash
 
PPTX
NodeJS - Creating a Restful API
Rogério Rodrigues
 
PPSX
Selenium Installation
ANKUR-BA
 
PDF
Web services automation workshop sreedhar dakshinamurthy
Thoughtworks
 
What type of testing is selenium commonly used for?
Serena Gray
 
تست وب اپ ها با سلنیوم - علیرضا عظیم زاده میلانی
irpycon
 
Intermediate ASP.NET MVC
Joe Wilson
 
Introduction to Selenium Webdriver - SpringPeople
SpringPeople
 
Selenium WebDriver
ANKUR-BA
 
Selenium presentation
shivani thakur
 
Web Testing
muhamedwaseem09
 
Selenium Automation
MuhammadusmanRana10
 
Selenium RC
ANKUR-BA
 
Joomla Features
US Joomla Force
 
How to Handle Multiple Windows in Selenium Webdriver | Edureka
Edureka!
 
What's new in Joomla 1.6?
Alessandro Nadalin
 
Soa testing soap ui (2)
Knoldus Inc.
 
Selenium
sunilabj
 
New Features of ASP.NET 4.0
Buu Nguyen
 
Introduction to Threat Modeling
slicklash
 
NodeJS - Creating a Restful API
Rogério Rodrigues
 
Selenium Installation
ANKUR-BA
 
Web services automation workshop sreedhar dakshinamurthy
Thoughtworks
 

Similar to Selenium -Test automation for web applications (20)

PDF
Intelligent Testing Tool: Selenium Web Driver
IRJET Journal
 
PDF
Selenium Automation Testing - A Complete Guide
Abhay Kumar
 
PDF
Selenium Automation Testing - A Complete Guide.pdf
kalichargn70th171
 
PDF
Selenium Automation Testing - A Complete Guide.pdf
flufftailshop
 
PPTX
Test Automation Using Selenium
Nikhil Kapoor
 
PPT
Selenium
conect2krish
 
PPT
Selenium Concepts
Swati Bansal
 
PPT
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
DOCX
What is selenium
Pesara Swamy
 
PPTX
Selenium- A Software Testing Tool
Zeba Tahseen
 
PPTX
Selenium Testing
Shreshtt Bhatt
 
PPT
Selenium
Daksh Sharma
 
PPTX
Selenium training
Suresh Arora
 
PDF
Automation Testing using Selenium Webdriver
Pankaj Biswas
 
PPTX
Web UI Tests: Introduce UI tests using Selenium
Peyman Fakharian
 
PDF
Selenium Testing The Complete Step-by-Step Tutorial.pdf
Steve Wortham
 
PDF
Introduction to Automation Testing and Selenium overiew
Disha Srivastava
 
PPTX
Selenium-Automation-The-Definitive-Guide (1).pptx
shivanshpandeyrewa20
 
PPTX
SKILLWISE_SELENIUM
Skillwise Consulting
 
Intelligent Testing Tool: Selenium Web Driver
IRJET Journal
 
Selenium Automation Testing - A Complete Guide
Abhay Kumar
 
Selenium Automation Testing - A Complete Guide.pdf
kalichargn70th171
 
Selenium Automation Testing - A Complete Guide.pdf
flufftailshop
 
Test Automation Using Selenium
Nikhil Kapoor
 
Selenium
conect2krish
 
Selenium Concepts
Swati Bansal
 
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
What is selenium
Pesara Swamy
 
Selenium- A Software Testing Tool
Zeba Tahseen
 
Selenium Testing
Shreshtt Bhatt
 
Selenium
Daksh Sharma
 
Selenium training
Suresh Arora
 
Automation Testing using Selenium Webdriver
Pankaj Biswas
 
Web UI Tests: Introduce UI tests using Selenium
Peyman Fakharian
 
Selenium Testing The Complete Step-by-Step Tutorial.pdf
Steve Wortham
 
Introduction to Automation Testing and Selenium overiew
Disha Srivastava
 
Selenium-Automation-The-Definitive-Guide (1).pptx
shivanshpandeyrewa20
 
SKILLWISE_SELENIUM
Skillwise Consulting
 
Ad

Recently uploaded (20)

PDF
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
PPTX
Distribution reservoir and service storage pptx
dhanashree78
 
PPT
Testing and final inspection of a solar PV system
MuhammadSanni2
 
PDF
Design Thinking basics for Engineers.pdf
CMR University
 
PPTX
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
PDF
AN EMPIRICAL STUDY ON THE USAGE OF SOCIAL MEDIA IN GERMAN B2C-ONLINE STORES
ijait
 
PDF
aAn_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
PPTX
fatigue in aircraft structures-221113192308-0ad6dc8c.pptx
aviatecofficial
 
PPTX
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
PPTX
美国电子版毕业证南卡罗莱纳大学上州分校水印成绩单USC学费发票定做学位证书编号怎么查
Taqyea
 
PDF
Digital water marking system project report
Kamal Acharya
 
PPTX
MODULE 04 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
PDF
methodology-driven-mbse-murphy-july-hsv-huntsville6680038572db67488e78ff00003...
henriqueltorres1
 
PPTX
Numerical-Solutions-of-Ordinary-Differential-Equations.pptx
SAMUKTHAARM
 
PDF
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 
PPTX
2025 CGI Congres - Surviving agile v05.pptx
Derk-Jan de Grood
 
PPT
Footbinding.pptmnmkjkjkknmnnjkkkkkkkkkkkkkk
mamadoundiaye42742
 
PDF
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
PPTX
Final Major project a b c d e f g h i j k l m
bharathpsnab
 
PDF
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
Distribution reservoir and service storage pptx
dhanashree78
 
Testing and final inspection of a solar PV system
MuhammadSanni2
 
Design Thinking basics for Engineers.pdf
CMR University
 
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
AN EMPIRICAL STUDY ON THE USAGE OF SOCIAL MEDIA IN GERMAN B2C-ONLINE STORES
ijait
 
aAn_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
fatigue in aircraft structures-221113192308-0ad6dc8c.pptx
aviatecofficial
 
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
美国电子版毕业证南卡罗莱纳大学上州分校水印成绩单USC学费发票定做学位证书编号怎么查
Taqyea
 
Digital water marking system project report
Kamal Acharya
 
MODULE 04 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
methodology-driven-mbse-murphy-july-hsv-huntsville6680038572db67488e78ff00003...
henriqueltorres1
 
Numerical-Solutions-of-Ordinary-Differential-Equations.pptx
SAMUKTHAARM
 
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 
2025 CGI Congres - Surviving agile v05.pptx
Derk-Jan de Grood
 
Footbinding.pptmnmkjkjkknmnnjkkkkkkkkkkkkkk
mamadoundiaye42742
 
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
Final Major project a b c d e f g h i j k l m
bharathpsnab
 
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
Ad

Selenium -Test automation for web applications

  • 1. Selenium - Web Browser Automation Selenium - Test automation for web applications ANIS GHELISSI GLS Consulting [email protected] November 5, 2018
  • 2. Selenium - Web Browser Automation Overview 1 Introduction to Selenium Web applications test generalities Selenium 2 Selenium IDE Tests and test suites Selenese scripts 3 Selenium WebDrive Presentation View Results 4 Selenium Grid Presentation Grid Architecture Grid Configuration GUI Locators Xpath 5 Advanced usages
  • 3. Selenium - Web Browser Automation Introduction to Selenium Web applications test generalities Web application and testing terminology Functionality Usability Interface Compatibility Performance Security Typology of tests
  • 4. Selenium - Web Browser Automation Introduction to Selenium Selenium Presentation Functionalities Architecture
  • 5. Selenium - Web Browser Automation Introduction to Selenium Web application and testing terminology What is web application? What is testing for web application?
  • 6. Selenium - Web Browser Automation Introduction to Selenium What is web application? server side resources (PHP code, Jsp, Servlet, Java ....) client side resources (html, javascript, css, images..)
  • 7. Selenium - Web Browser Automation Introduction to Selenium What is testing for web application? As for single applications testing, the objective is to look for potential bugs in the web application. Unit test During development, for developers. Instant feedback. Easy to maintain. End to end test Presented to the client. Easy to read.
  • 8. Selenium - Web Browser Automation Introduction to Selenium Functionality Links Forms Html/Css validation Data
  • 9. Selenium - Web Browser Automation Introduction to Selenium Functionality check all the links(internal/external/mail) check all the forms(validation, messages (error,confirmation,...),mandatory and optional fields) Html/Css validation (https://validator.w3.org/) Data Consistency/ Data Integrity
  • 10. Selenium - Web Browser Automation Introduction to Selenium Usability Learning curve Ease of navigation Content consistency
  • 11. Selenium - Web Browser Automation Introduction to Selenium Usability how to measure the interaction between the person and the web application. ease of navigation (complex web interface vs simple web interface/how many clicks do I need to get the job done/ the user expect the web application to be easy to use). content consistency(main menu should be visible on all pages, avoid annoying colors and fonts, image placement should be nifty, whenever you encounter an anchored text you would expect it to work properly etc.... ).
  • 12. Selenium - Web Browser Automation Introduction to Selenium Interface Web Server Database
  • 13. Selenium - Web Browser Automation Introduction to Selenium Interface The web application should be able to interact properly with the server side including the database, the network and the database
  • 14. Selenium - Web Browser Automation Introduction to Selenium Compatibility
  • 15. Selenium - Web Browser Automation Introduction to Selenium Performance Load test many users are loading the same page, simultaneous user requests,heavy load ...
  • 16. Selenium - Web Browser Automation Introduction to Selenium Performance Stress test Push the web application to it’s limits to observe how it behaves, how it recovers. Generally input fields are pushed the most. Performed on different operating systems and different hardware to detect flaws like potential memory leaks. Could be used to measure scalability.
  • 17. Selenium - Web Browser Automation Introduction to Selenium Security Access if you have different level of user access, you should check that only the authorized users could view only the content at their level. Other related security tests vulnerability, password cracking, viruses and malware detection..
  • 18. Selenium - Web Browser Automation Introduction to Selenium Selenium presentation Cross browsers Many languages
  • 19. Selenium - Web Browser Automation Introduction to Selenium Selenium functionalities Record/playback tests Write specific tests - Selenium API Launch remote tests
  • 20. Selenium - Web Browser Automation Introduction to Selenium Selenium architecture IDE WebDrive Grid
  • 21. Selenium - Web Browser Automation Selenium IDE Tests and test suites Record and playback Integrated development environment that exists in the form of an extension to the browser(firefox, chrome). FireFox/Chrome plugin Save as a test Group tests as test suites
  • 22. Selenium - Web Browser Automation Selenium IDE Selenese scripts Selenese scripts Command Target Value
  • 23. Selenium - Web Browser Automation Selenium WebDrive Presentation WebDrive Integrate Selenium to your code Multiplutform Specific driver for navigator
  • 24. Selenium - Web Browser Automation Selenium WebDrive View Results How to evaluate results Java Context, Junit / TestNG IDE (IDA Intellij used in this session)
  • 25. Selenium - Web Browser Automation Selenium Grid Presentation Selenium Grid Presentation Scale Manage multiple environments Minimize the maintenance time
  • 26. Selenium - Web Browser Automation Selenium Grid Grid Architecture Selenium Grid Architecture Hub Nodes Jar file Java commands
  • 27. Selenium - Web Browser Automation Selenium Grid Grid Configuration Grid Configuration http://localhost:4444/grid/console
  • 28. Selenium - Web Browser Automation Selenium Grid GUI Locators GUI locator Hyperlink Id name Css
  • 29. Selenium - Web Browser Automation Selenium Grid Xpath Xpath Node selection in xml documents Used in html to locate elements in DOM
  • 30. Selenium - Web Browser Automation Selenium Grid Xpath Xpath Selection By Tag By Attribute By Tag content
  • 31. Selenium - Web Browser Automation Selenium Grid Xpath Xpath Selection By Tag By Attribute By Tag content
  • 32. Selenium - Web Browser Automation Advanced usages
  • 33. Selenium - Web Browser Automation Advanced usages The End