I have a test script which performs this flow:
- Start appium server from code (script)
- Create android driver
- Perform test
- Stop appium server from code
When I run it locally on 127.0.01 it works fine,
The problem is when I am trying to run the test on another machine.
I have two issues:
- When I am trying to start server on remote machine (see log)
Going to execute start appium server: cmd /c C://appium//Appium//node.exe C://appium//Appium//node_modules\appium\bin\appium.js --address 192.168.13.195 --port 4723
e[33mwarne[39m: Appium support for versions of node < 0.12 has been deprecated and will be removed in a future version. Please upgrade!
e[31merrore[39m: Couldn’t start Appium REST http interface listener. Requested address is not available.
2015-11-23 16:36:34,428 INFO [main] (Drivers.java:329) - Trying to set ANDROID driver
org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Requested a new session but one was in progress) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 209 milliseconds
Build info: version: ‘2.42.2’, revision: ‘6a6995d31c7c56c340d6f45a76976d43506cd6cc’, time: ‘2014-06-03 10:52:47’
System info: host: ‘QTVR-AII015’, ip: ‘192.168.23.43’, os.name: ‘Windows 7’, os.arch: ‘amd64’, os.version: ‘6.1’, java.version: ‘1.7.0_79’
Driver info: io.appium.java_client.android.AndroidDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- In the stopping script there is no possibility to stop remotely (no ip / port in script)
cmd /c taskkill /F /IM node.exe
Thanks for the help