How do I run the LambdaTest tunnel using Java TestNG?
Hi Mark!
To run the LambdaTest tunnel in Java TestNG, follow the below steps -
- After downloading the binary file, extract it to a folder
- Open up terminal and navigate to the extracted folder.
- Run the following command.
LT --user {user's login email} --key {user's access key} --tunnelName {user's tunnel name}
Once you are able to connect LambdaTest Tunnel successfully, you would just have to pass on tunnel capabilities in the code as shown below:
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("tunnel", true);