简体   繁体   English

如何使用Appium同时自动化两个Android应用程序?

[英]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.

相关问题 如何使用 appium 自动化 flutter 移动应用程序? - How to automate flutter mobile app using appium? 如何使用 selenium 和 appium 自动化移动聊天应用程序? - How to automate mobile chat app using selenium with appium? 如何使用 Appium Java 在 Android 5.0 上自动化时间选择器 - How to Automate Time Picker on Android 5.0 using Appium Java 如何使用appium自动化/测试Android混合应用程序? - how to Automate/test Android hybrid apps using appium? 如何在模拟器上使用Appium自动化android手机后退按钮 - How to automate the android phone back button using appium on emulator Appium-Java,如何在android中自动滑动? - Appium - Java, How to automate swipe in android? 如何使用appium在移动应用程序中有效地划分测试用例以使其自动化 - How to divide test cases effectively to automate them in a mobile app using appium 如何使用 appium java 客户端 6.1.0 自动化 Android 手机底部的 Home、back、up、down、Menu 按钮? - How to automate Home,back,up,down,Menu button at bottom of Android phone using appium java client 6.1.0? 如何使用appium获取Android app中的content-desc - How to get content-desc in Android app using appium 如何使用appium在Android应用程序Google地图中设置位置 - How to set Location in android app Google maps using appium
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM