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
Set the proxy on the mobile device on which you to run your tests
For iPhone, follow the steps below to set the proxy
Open up Settings > Wifi
Click on the blue arrow next to your wifi connection.
Scroll to the bottom where there is a section for HTTP Proxy.
Select Auto from this section.
In the URL field enter the value
http://{RobusTest_URL}/tunnelConf
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
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
If running Appium tests, pass the value of the unique key as robustest.tunnelKey
Ensure that the following port policies are allowed
Requests from the machine where the tunnel client is running to the tunnel server on ports 3000 to 5000
Requests from the mobile device to the tunnel server on port 1080
Requests from the device lab to the tunnel server on port 9321