- Start Selenium grid
java -jar selenium-server-standalone-X.XX.X.jar -role hub
- Access the grid console (will you see a blank page)
http://localhost:4444/grid/console
- Start the fist node (device) to register over the grid
appium --nodeconfig conf/android-23.json -p 4722 -bp 5523 -U emulator-5554
- Start the second node (device) to register over the grid
appium --nodeconfig conf/android-24.json -p 4724 -bp 5524 -U emulator-5556
- Run the
suite.xml
file
- change the device names for yours devices (E.g: emualator-5554) on the json files and suite.xml file
- the node registration to the grid (via appium) need NodeJS installed and Appium npm package
- the parameter --nodeconfig will get all the information in .json and register the device on the grid (plataform, port, url, etc...).
- the parameter -p is the port used by appium to send commands to the device. Don't use a know port and set diferent ports to other nodes.
- O the parameter -U is the device name (same reffered as udid on code and suite.xml).