Download - Selenium Grid

Transcript
Page 1: Selenium Grid

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

Page 2: Selenium Grid

WHAT IS SELENIUM GRID

CHROME

Firefox

IE

The Hub

Testers

Page 3: Selenium Grid

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)

Page 4: Selenium Grid

.BATMAN BEGINSUse separate batch files to run both the hub and the nodes.Able to link these batch files to CI server.

Hub:

Nodes:

Page 5: Selenium Grid

CALL IT FROM WITHIN YOUR TESTS

Page 6: Selenium Grid

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.

Page 7: Selenium Grid

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.

Page 8: Selenium Grid

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.

Page 9: Selenium Grid

ANY QUESTIONS?Feel free to approach me afterwards, or email me at

[email protected]

Page 10: Selenium Grid

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/


Top Related