[英]How to automate two android app simultaneously using Appium?
我必须在两个不同的设备中启动两个应用程序,并且从一个应用程序完成操作后,我必须从另一个应用程序检查它。
Up and Run two appium servers instance along with writing two different capabilities sets in your appium script as mentioned below: 如下所述,启动并运行两个appium服务器实例,并在appium脚本中编写两个不同的功能集:
1) You need 2 appium running with each different ports 1)您需要在每个不同的端口上运行2个appium
baseUrl_1 = "http://0.0.0.0:**4726**/wd/hub"
baseUrl_2 = "http:/0.0.0.0:**4725**/wd/hub"
2) You need to have 2 different instances of android emulator.So make sure you just run different emulators (what i mean it can be the same version everything but the 2nd one change the name). 2)您需要有2个不同的android模拟器实例。因此,请确保您只运行不同的模拟器(我的意思是它可以是相同版本的所有东西,但第二个会更改名称)。 Apparently appium was getting confuse if i run it with the same. 显然,如果我用相同的命令运行,appium会造成混乱。
3) You need to set the capabilities for each emulator: 3)您需要为每个仿真器设置功能:
caps1 = {
platformName:"ANDROID",
platformVersion: "4.4",
deviceName: "emulator-5554",
app: "app1Path.apk",
browserName: "",
} }
caps2 = {
platformName:"ANDROID",
platformVersion: "4.4",
deviceName: "emulator-5556",
app: "app2Path.apk",
browserName: ""
} }
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.