This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
1 / 3
Oct 2015

I am using Robot framework for high level scripting with using Appium Library
I would like to know how to run single script on 2 devices in parallel using Python

  • created

    Oct '15
  • last reply

    Oct '15
  • 2

    replies

  • 1.4k

    views

  • 2

    users

I do not know about Robot framework but i handles two devices same time in one suite. All things i have done in Java.
So high level approach would be Create Master script-- Which handles interaction between two devices.
Like
Master.java
{
Device device1 = new Device("Device1");
Device device2 = new Device("Device2");
device1.openWeb("Google);
device2.openWeb("Google");
}

Device.java
Class Device{
public Device(String cap){
if(caps.equalIgnore("Device 1")){
// Initialize device1 capability and android driver 1
}
}
public void openWeb(String site){
driver.get(site);
}
}

So above code is just sample code. you can implement as per your way.

Thanks,
Priyank Shah