在同一台计算机上打开多个appium服务器实例 [英] Opening multiple appium server Instances on same machine

查看:265
本文介绍了在同一台计算机上打开多个appium服务器实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以同时在我的机器上启动2个appium服务器实例,以便可以在连接到该机器的2个不同设备上同时执行测试脚本吗? 实际上,我正在尝试在连接到同一Windows机器的2台设备上运行测试脚本.为此,我正在使用TestNG传递Android驱动程序URL来启动会话.该网址将是动态的,因为2个设备将使用2个Appium服务器实例.我可以同时创建2个Appium服务器实例吗?如果是这样,那么我可以使用代码来创建那些实例,因为我不想使用GUI来启动它.

Can I start 2 appium server instances on my machine at the same time so that I can execute my test script simultaneously on 2 different devices connected to the machine? Actually what I'm trying is to run my test script on 2 devices connected to same windows machine. For this I am using TestNG to pass the Android Driver url to start session. This url will be dynamic as 2 devices will be using 2 Appium server instances. Can I create 2 instances of Appium server at same time? If so then can I use code to create those instances as I don't want to use GUI to start it.

推荐答案

这个问题已经被提出并回答(如果我正确阅读了您想要的内容).

This question has already been asked and answer (if I am reading what you want correctly).

请参考如何从MAC机中的命令提示符启动Appium服务器?

在Windows计算机上,应该有一个appium可执行文件,您可以使用命令行参数--address 127.0.0.1 -p 4273

On a windows machine there should be an appium executable which you run with the command line arguments --address 127.0.0.1 -p 4273

本质上,您所需要做的就是使用其他端口进行测试.

In essence all you need to do is use a different port for your tests.

这篇关于在同一台计算机上打开多个appium服务器实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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