Reputation: 681
I have the appium server installed in a remote machine and the android device & tests in a local machine.my requirement is like need to start the appium server in the remote machine and execute the test on android devices in local machine .
please share your thoughts
Upvotes: 0
Views: 177
Reputation: 880
The device/emulator must be connected to the same machine that launches the Appium Server.
For real devices Appium communicates with the tested device with the help of adb (Android Debug Bridge) or Xcode via USB-connection. For emulators/simulators the connection similarly must be on the machine that hosts the Appium.
If you're able to provide the same connection to the device remotely so that the machine hosting the Appium server can see the device, then of course it would then be able to automate the device remotely as well.
Upvotes: 2
Reputation: 1331
you can execute the way you have mentioned above. provide you should enter the ip address of the local machine where you need to run , while setting the capabilities
capa = new DesiredCapabilities();
driver = new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capa);
replace 127.0.0.1 with you machine ip. Appium will contact through the ip even if its different machine
Upvotes: 2