In a file test1.js, first configure the capabilities of the server. It’s now time to write the node.js test to be executed. You can check the logs in the command line outputs. In a second command line, launch the second server using different ports: appium -p 4728 -bp 5728 -U U is the device name (or, in case of a TCP connection, the IP).
In a command line, launch the first server: appium -p 4727 -bp 5727 -U īp specifies the port to use to communicate on the device. Then, proceed similarly to connect the second phone. At least 2 devices or emulators connected for the test.NodeJS globally installed on your system.In our example, we will use a nodesjs client with WebdriverIO (the node.js binding for the W3C WebDriver protocol). To do this, one Appium server must be run by device. Allow several teams to execute their tests on a device farm.Execute a test campaign quickly by balancing tests on several devices of the same type.Execute the same test on the same type of device by changing execution parameters (network connection, user data…).Execute the same test on different devices to validate your application wrt.In any case, this allows you to speed up you test campaign: It’s sometimes required to execute tests in parallel on several devices. Share on Facebook Share on Twitter Share on Linkedin Reading Time: 2 minutes