appiumparallel-testingnativeapplication

Opening multiple appium server Instances on same machine


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.


Solution

  • 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.