How to run the same appium test on multiple devices?
There is an open source framework built on top of appium that does this out of the box. Have a look at it here
Open Multiple Insatnces of Appium and Use different port and host in Appium server. @jitenderbhardwaj
@jitenderbhardwaj If you are using optimus, it takes care of starting multiple instances of appium servers on different ports. So you could just connect the devices that you want to run test on, and tests will be run in parallel on them.
Hi there,
When trying to connect more than 4 Android devices, the log doesnāt show more than 4 appium servers being initialized. The fifth one seems like itās being taken over due to a socket error being ended by another session. Please help
[debug] [AndroidBootstrap] Sending command to android: {ācmdā:āactionā,āactionā:āelement:getAttributeā,āparamsā:{āattributeā:āclassNameā,āelementIdā:ā8ā}}
[MJSONWP] Encountered internal error running command: Error: Android bootstrap socket crashed: Error: This socket has been ended by the other party
at Socket. (ā¦/ā¦/lib/bootstrap.js:87:21)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Socket.writeAfterFIN [as write] (net.js:294:8)
at ā¦/ā¦/lib/bootstrap.js:112:25
at Promise.F (C:\Users\pmadeya\AppData\Roaming\npm\node_modules\appium\node_modules\core-js\library\modules$.export.js:30:36)
at AndroidBootstrap.sendCommand$ (ā¦/ā¦/lib/bootstrap.js:108:18)
Not working.
Giving me error:
āoptimusā is not recognized as an internal or external command,
operable program or batch file.
Have you installed the optimus-cli utility?
yes.
But when i entered: optimus doctor then i got: āoptimusā is not recognized as an internal or external command,
operable program or batch file.