Opening multiple appium server Instances on same machine

跟風遠走 提交于 2020-01-17 03:35:27

问题


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.


回答1:


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

Please refer to How to start the Appium server from command prompt in MAC machine?

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.



来源:https://stackoverflow.com/questions/40174533/opening-multiple-appium-server-instances-on-same-machine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!