在Android的多设备支持 [英] Multi-devices support in Android

查看:632
本文介绍了在Android的多设备支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想上运行的Andr​​iod平台多设备的脚本,但我无法运行。我通过Github上页去寻求解决方案,发现下面的链接了解支持多(安卓)设备从单一Appium服务器

I am trying to run a script on Multiple devices in Andriod platform, but I am unable to run. I went through Github page for a solution and found the following link about Support multiple (Android) devices from a single Appium server

不过,我仍然无法弄清楚设置环境多台设备。

But, still I can't figure out setup environment for multiple devices.

推荐答案

要运行在多种设备上appium脚本

To run appium script on multiple devices

  1. 您必须开始appium服务器,每个设备与数字 不同的端口号。
  2. 在每个端口创建驱动程序实例 你最喜欢的语言(Java,红宝石)
  3. 在同时运行这些脚本。
  4. 您还可以创建基于线程的程序,该程序将创建不同的 驱动程序的实例。
  1. You have to start appium servers as per number of devices with different ports number.
  2. Create driver instance with each port in your favorite language (java, ruby)
  3. Run those script simultaneously.
  4. You can also create thread based program which will create different driver instances.

在这里,我已创建简单的java线程基础的方案

Here I have create simple java thread based program

https://github.com/sameer49/Appium-Grid-For-Android

这篇关于在Android的多设备支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆