java - can i use selenium grid on single machine -


i don't have multiple machines @ job. have 1 window , 1 mac script execution. wondering if can use selenium grid script execution on single machine.i never used selenium grid. article, links or suggestion highly appreciated.

yes, can start selenium gird multiple node on single machine, ram should @ least 8gb because running test suites more 4 browser instance need more ram if not browser gets closed. http://selenium-release.storage.googleapis.com/index.html download standalone jar.

java -jar selenium-server-standalone-2.45.0.jar -role hub  

it start hub .

to start nodes open different cmd , type following command start 'n' number nodes. java -jar lib/selenium-server-standalone-2.43.1.jar -role node -hub http://localhost:4444/grid/register -port 5555

java -jar lib/selenium-server-standalone-2.43.1.jar -role node -hub http://localhost:4444/grid/register -port 6666

java -jar lib/selenium-server-standalone-2.43.1.jar -role node -hub http://localhost:4444/grid/register -port 7777

if want run same test case in different browser download browser drivers from[https://code.google.com/p/selenium/wiki/chromedriver]

[https://code.google.com/p/selenium/downloads/detail?name=iedriverserver_win32_2.39.0.zip&can=1&q=]

run following command start different browsers: eg:

java -jar selenium-server-standalone-2.45.0.jar -role webdriver -hub http://localhost:4444/grid/register -dwebdriver.chrome.driver=c:\users\xyz\desktop\chromedriver.exe

java -jar selenium-server-standalone-2.45.0.jar -role webdriver -hub http://localhost:4444/grid/register -port 6666 -dwebdriver.chrome.driver=c:\users\xyz\desktop\chromedriver.exe. 

this start chrome browser , node.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -