How to perform Parallel Test for Android can anyone help with sample code?

How to perform Parallel Test for Android can anyone help with sample code?

Have you read this, which includes sample code?

Please check

@chetan_thummar @wreed Thank you so much, but I would like to run more than 5 device which include both iOS and Android with single Appium instance or Appium server instead of running multiple servers. is it possible? And also Maximum How much devices can we use for Parallel testing?

@VInoth_kumar If you don’t want to open several servers then you can start the appium server programatically and here pass the random port for all the threads.

Thank you, Will it work for multiple devices? Can you please share sample code for starting appium programatically for Mac ?

@VInoth_kumar http://www.automationtestinghub.com/3-ways-to-start-appium-server-from-java/

Do we need to start appium server for each device? for running parallel test with different Server port or System Port?

You just have to change the system port for each thread

So the Server Url (http://0.0.0.0:4723) will be same and only the system port is different right?

Yes just change this 4723 port for each thread

1 Like

@Love_Soni Thanks a lot.

1 Like