简体   繁体   English

并行运行iOS的appium脚本

[英]Running appium scripts for ios in parallel

I have two mac machines with all the setup installed for appium. 我有两台Mac机器,其中所有安装都安装了appium。 I want to run the appium scripts on two ios simulators in parallel.It is not possible in one mac machine by launching two simulators in parallel because mac uses only one instrument instance at a time. 我想在两个ios模拟器上并行运行appium脚本。在一台mac机中无法通过并行启动两个模拟器来运行,因为mac一次仅使用一个仪器实例。

Is there any way to approach this by using two machines? 有没有办法使用两台机器来解决这个问题?

Thanks. 谢谢。

You could use the Selenium grid to handle your two machines, as instructed at https://github.com/appium/appium/blob/master/docs/en/advanced-concepts/grid.md 您可以使用Selenium网格来处理您的两台计算机,如https://github.com/appium/appium/blob/master/docs/en/advanced-concepts/grid.md所述

Otherwise you'll need to create a driver session against each of the servers in your script. 否则,您将需要针对脚本中的每个服务器创建驱动程序会话。 To target a specific Appium server, simply change the url:port combination to match either of your servers when creating the Appium webdriver object/session. 要定位到特定的Appium服务器,只需在创建Appium Webdriver对象/会话时更改url:port组合以匹配您的任一服务器即可。

对于android,您可以并行运行两个模拟器,因此您可以建立两个appium会话并并行运行脚本。但是进入ios xcode将不允许您并行运行模拟器。

As of now, http://appium.io/docs/en/advanced-concepts/parallel-tests/ "With Xcode9 Appium supports parallel RealDevice and Simulator testing." 到目前为止, http: //appium.io/docs/en/advanced-concepts/parallel-tests/“有了Xcode9,Appium就支持并行的RealDevice和Simulator测试。” for iOS 适用于iOS

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM