Selenium Grid. Simple Steps from Single Platform to Multiplatform Testing

Post on 22-Nov-2014

248 views 0 download

description

Catch a slideshow from Skelia QA Tech Talk held in June. Selenium WebDriver is generally used for running automated tests against single platform (OS + Browser). In this case quality coverage is intended also in one plane, where functionality is working as expected for particular group of users - the ones, who are using same platform. Selenium WebDriver has a way to extend our assurance in quality for users, who prefer environments, other then one under test. It is called Selenium Grid - network of central hub server and executable node servers. Skelia is a ICT and BPO services company, helping you achieve growth by extending your business with dedicated teams, outsourcing processes and providing consultancy on a wide range of technologies. http://skelia.com/ Stay tuned for more useful materials: https://twitter.com/Skelia_company https://www.facebook.com/Skelia.company http://www.linkedin.com/company/2851166

transcript

SELENIUM GRID

Simple steps from single platform to multiplatform testing

by Anton Savka Test Automation Lead

What is Grid ?

┃ The latest JDK version is installed, all environmental variables are set

┃ Configured PCs, accessible in one network

Prerequisites

Launch Hub

Launch Node 1

Launch Node 2

java -jar selenium-server-standalone-2.41.0.jar

-port 7777

-role hub

Launch Hub

java -jar selenium-server-standalone-2.41.0.jar

-role node

-hub http://localhost:7777/grid/register

-browser browserName=firefox,maxInstances=3

Node 1

java -jar selenium-server-standalone-2.41.0.jar

-role node

-hub http://localhost:7777/grid/register

-browser browserName=chrome,maxInstances=3

-Dwebdriver.chrome.driver=d:\SeleniumGrid\chromedriver.exe

Node 2

case Chrome:

caps.setBrowserName(BrowserEnum.Chrome.getBrowserName());

caps.setVersion("33");

caps.setPlatform(Platform.WINDOWS);

driver = new RemoteWebDriver(

new URL("http://+ HUB_URL + ":HUB_PORT/wd/hub"), caps);

break;

Driver trigger

testng.xml

Single Browser Parallel Tests Run

testng.xml

Multiple Browsers Parallel Tests Run

QUESTIONS?

Write to us: info@skelia.com

skelia.com