How to call the remote server from the local code? For example: I have two computers A (192.168.112.10) and B (192.168.112.11), then how can I execute a local script on a, but use the server on B? See Appium Connect appium Service and open a session with the following examples: desired_caps = {}desired_caps[' platformname ' = ' Android 'desired_caps[' platformversion '] =
' 4.4 ' desired_caps[' devicename '] = ' 1d543708 'desired_caps[' apppackage '] = ' Com.wuba.zhuanzhuan 'desired_caps[' appactivity '] = '. Presentation.view.activity.LaunchActivity 'Driver = Webdriver. Remote ('http://127.0.0.1:4723/wd/hub', desired_caps) you can see that the actual connection to Appium server is via the
'http://127.0.0.1:4723/wd/hub
' address, if I want to connect to remote server, Just do the following:
Implementation Method take the service of A to use B as an example 1. Change the IP address of general setting of the Appium client of B from 127.0.0.1 to 192.168.112.11, then launch start the service 2. Replace the IP in the webdriver.remote ('http://127.0.0.1:4723/wd/hub', desired_caps) of the script to be executed by the a machine with the service IP of BWebdriver. Remote ('http://192.168.112.11:4723/wd/hub', desired_caps) 3. Plug the test machine onto remote machine B 4. Execute the script on machine a Reference article:https://testerhome.com/topics/2363
Appium Remote Call to Appium server