Appium Remote Call to Appium server

Source: Internet
Author: User
Tags appium

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.