Skip to content

Files

Latest commit

61a90d4 · Sep 15, 2021

History

History
56 lines (31 loc) · 1.71 KB

tunnelClientConfig.rst

File metadata and controls

56 lines (31 loc) · 1.71 KB

Setting Up Tunneling

To configure tunneling for your tests in such a way that all requests from your test device go through a system/server that you have identified, you need to do the following

  1. Set the proxy on the mobile device on which you to run your tests

For iPhone, follow the steps below to set the proxy

  1. Open up Settings > Wifi
  2. Click on the blue arrow next to your wifi connection.
  3. Scroll to the bottom where there is a section for HTTP Proxy.
  4. Select Auto from this section.
  5. In the URL field enter the value

http://{RobusTest_URL}/tunnelConf

  1. Download the tunneling client from the device lab using the following URL

Linux

{Device Lab URL}/download/file/robustest_tunnel_linux_amd64

MacOS

{Device Lab URL}/download/file/robustest_tunnel_mac

Windows

{Device Lab URL}/download/file/robustest_tunnel_window_386.exe

  1. On the machine from which you want all requests to pass through, run the following command

{tunnel client filename} connect --key <key unique to the client> --nerve {RobusTest_URL} --accessKey {User Access Key}

Make sure you note down the unique key, this key will need to be passed on when running your tests

  1. If running Appium tests, pass the value of the unique key as robustest.tunnelKey
  2. Ensure that the following port policies are allowed
  1. Requests from the machine where the tunnel client is running to the tunnel server on ports 3000 to 5000
  2. Requests from the mobile device to the tunnel server on port 1080
  3. Requests from the device lab to the tunnel server on port 9321