Last updated: Apr 13, 2021 14:25
To install DevTunnel and make the security token available:
- Open the Perfecto UI and navigate to the Manual Testing view.
- Open a mobile device.
- On the device toolbar, click the DevTunnel icon .
In the DevTunnel form, do the following:Click to view image
- Click Download DevTunnelInstaller. The download tool identifies the target operating system and downloads the proper installation package.
- Open the file and follow the prompts on the screen. The installation is slightly different on Windows and Mac.
Note the default installation directory. You may change it if needed.
- When the installation is complete, click Close.
- Generate a security token:
- In the Perfecto UI at <YourCloud>.app.perfectomobile.com (where YourCloud is your actual cloud name, such as mobilecloud), click your user name and select My security token. Click to view image
In the My security token form, click Generate Security Token.Click to view images
Click Copy to clipboard. You will paste the token into a dedicated file in step 6.Click to view image
- Click Close.
- In the Perfecto UI at <YourCloud>.app.perfectomobile.com (where YourCloud is your actual cloud name, such as mobilecloud), click your user name and select My security token.
- Create a
token.txtfile in the same folder where you plan to save the CLI script and paste the copied security token into it. Then save and close the file.
Run the CLI script
DevTunnelCLISession.shand save the file to the same folder as your
Run the preferred script with the cloud name, device ID, and operating system parameters, as follows:
- When you are done working with the device, close the DevTunnel session by doing one of the following:
From another command line window opened in the same directory, run the following command:
- Press Ctrl+C.
Run the script in the background and the following command from the same command line window:
If you close the command line window that runs the script without properly stopping the script, the DevTunnel session stays connected and the device remains in use. In this case, you can manually clean up by running the provided cleanup scripts:
DevTunnelCLICleanup.sh: Use for a DevTunnel session that is connected to a device. This script disconnects DevTunnel before stopping the device session.
DevlTunnelCLISessionCleanup.sh: Use for a DevTunnel session that is not connected to a device.
To clean up:
Run the respective cleanup script with the cloud name as the only parameter, as follows: