Upload
kuri
View
132
Download
0
Tags:
Embed Size (px)
DESCRIPTION
Selenium Grid. By David Williams Digital Instinct - Selenium Monkey Test Analyst. What is Selenium Grid. Testers. CHROME. IE. Firefox. The Hub. To Get Up And Running. Need to install: - Browser Drivers - Selenium Server - Java Currently we use: - PowerPoint PPT Presentation
Citation preview
SELENIUM GRID
B Y DA V I D
WI L
L I AM S
D I GI T
A L I NS T I N
C T - S E L E N I UM M O N K E Y T E S T
A N A L Y S T
WHAT IS SELENIUM GRID
CHROME
Firefox
IE
The Hub
Testers
TO GET UP AND RUNNINGNeed to install:
- Browser Drivers- Selenium Server- Java
Currently we use:Link:
http://selenium-release.storage.googleapis.com/index.html?path=2.42/ - Download selenium-server-standalone- Firefox – Comes as part of selenium server.- IE Driver
Link: http://chromedriver.storage.googleapis.com/index.html -Chrome
NOTE: Both IE and Chrome need to be a part of your PATH (Environmental Variables)
.BATMAN BEGINSUse separate batch files to run both the hub and the nodes.Able to link these batch files to CI server.
Hub:
Nodes:
CALL IT FROM WITHIN YOUR TESTS
CALL IT FROM WITHIN YOUR TESTS (CONT…)This is an example of using parameterised tests.The 1,2,3 is the int used is the browserID.
This browserID is then passed into the constructor, and then into the getBrowserDriver method.
PROS TO SELENIUM GRIDGateway between Webdriver and Cross browser
functional testing.Opens the door for parallel testing.Advanced packages not be feasible within budget at
current and Selenium Grid provides a “free” alternative.
Impossible to justify the costs of more advanced packages (e.g. SauceLabs) without prototyping automated testing.
More control over the testing systemMore security, company not wanting to hand their
product over an outside business.
FLAWS OF SELENIUM GRIDMaintenance, whenever there are upgrades to
browsers it usually coincides with updates to selenium and the appropriate drivers.- Upgrading takes time and can be an inconvenience
Bare bones, the nicer features aren’t there to begin with and may need some developer help to get them (e.g. Screenshot on fail).
Whereas SauceLabs offers screenshots and video.May be better hardware options to test on, using
Selenium Grid is a lot more restrictive.
Note1: Can’t comment on other packages, as haven’t used or investigated them.Note2: Selenium 2.42.2 adds much better screenshot handling, so this is a bad example.
ANY QUESTIONS?Feel free to approach me afterwards, or email me at
REFERENCESKraken Picture: http
://www.fubiz.net/2012/03/09/the-kraken-existence/the-kraken-existence2/
Batman Picture:http://i.imgur.com/3SAl7wE.jpg
Not a reference per say, but a great resource for selenium and selenium grid.
Elemental Seleniumhttp://elementalselenium.com/