Say i have one machine(Windows) where appium can be launched through Appium.exe.
I have two tests say Test1 and Test2(say both work on Calculator application but different tests) and two emulator devices called “Android Emulator1” and “Android Emulator2”.
Can anybody help me how can i execute Test1 in “Android Emulator1” and Test2 in “Android Emulator2” parallely?
I surfed net, but all i see is random stuff. For beginners to learn or practice it is very difficult/not possible to understand.
I am not sure why these kind of information also missing in help/documentation.
Things can be simple… If you are using TestNG for parallel execution.
1)In TestNg Xml, suite name=“xyz” thread-count = “2” parallel =“tests”
2)In Each test tag in Xml, pass device udid as parameter for both.
3)Include test1 in one test tag,and test2 followed by another
4)For test1 tag in Xml,
classes
class name=“test.IndividualMethodsTest”
methods
include name=“test1”
methods
/class
/classes
5)classes
class name=“test.IndividualMethodsTest”
methods
include name=“test2”
methods
/class
/classes
6)Run your TestNg Xml.(Note: Please make sure that you must start Selenium Grid (Hub) & create two appium instances for both the devices to run parallel.use json files to start two Appium servers and then run your XML )
You can execute your test by using testNG and launch appium with different port. Create capabilities with different port. I have already done it and successful. Please let me know if you need more information for the same.