Hi all,
So far I’ve followed all necessary setup for parallel execution:
- Use ThreadLocal to get and set driver instance
- Add required capabilities: http://appium.io/docs/en/advanced-concepts/parallel-tests/
- I use TestNG, so I also add parallel=tests and thread count value also
My used libraries:
- Appium 1.15.1
- Java client: 6.1.0
However, upon parallel execution, I still face an issue that the Appium commands frequently perform on the wrong devices, and it occurs very frequently. Imagine I have these simple steps:
- Login
- Purchase order
Sometimes after ‘purchase order’ steps are performed on device 2 because device 1 has completed ‘Login’ step, sometimes it doesn’t
I don’t know what else should I do to achieve proper parallel execution.
Do you guys have any ideas why?