Execution on multiple device at a time

Hi,
I want to execute scripts on multiple device at time using appium on android devices, using Selenium java.
Please help for the steps to do the same.

Hi,

You can simply run multiple instances of Appium server on different ports.
Then pass those ports as an argument for automated tests.
Means,
@Parameters({“deviceID”,“deviceName”,“osVersion”,“port”,“chromePort”,“ipAppium”}), pass these parameters while opening the app and bingo.

Hope that helps.

Thanks a lot.
But I am not using TestNg,
I want it using java(Selenium)

Hi,

Have a look at this article. It uses Java Threads to perform execution on multiple devices. This would give you an idea on how to set it up -

Here is the link … There is a framework which supports parallel execution on multiple device developed by @saikrishna321