Tell me how to start the tunnel for automation test in UnitTest on LambdaTest.
Hello Devan,
You can easily start the tunnel for automation test in UnitTest on LambdaTest.
Here is the code to run the LT tunnel right before the test:
import subprocess
if name == “main”:
#start tunnel process tunnel_process = subprocess.Popen(["./LT","--user",username,"--key",access_key],stdout=subprocess.DEVNULL,stderr=subprocess.STDOUT) #run testcases unittest.main() #end tunnel tunnel_process.terminate()
Download and configure the GitHub repo for more details: