Local Testing For Linux
LambdaTest tunnel feature allows you to test your private server URLs or locally hosted web-apps or websites on 3000+ real browsers through LambdaTest. You can test plain HTML, CSS, PHP, Python, or other similar web files saved on your local system, over combinations of operating systems, browsers, and screen resolutions that are available on LambdaTest. You can leverage the new LambdaTest tunnel binary for corporate firewalls and proxy settings without any restrictions. LambdaTest tunnel follows various protocols such as Web Socket, HTTPS, SSH(Secure Shell), etc. to help you establish a secure and unique tunnel connection through corporate firewalls between your system and LambdaTest cloud servers.
Feel more confident than ever, before deploying any UI specific change into Production. Test your development thoroughly with LambdaTest tunnel and experience the flexibility to securely test your website on 3000+ browsers and their assorted versions, running on real OS code for cross-platform and cross browser compatibility, even before it gets deployed over the Production environment.
You can download the binary file responsible for establishing a tunnel connection between your local device and our testing cloud by clicking on the downloadable link below.
DOWNLOAD LambdaTest tunnel ZIP FOR LINUX 64 BIT |
---|
Configuring Connection With LambdaTest tunnel
Step 1: Click the button ‘Configure Tunnel’. Download the binary zip file by clicking the ‘Download Link’. Press the ‘Copy’ button in the form that opens up to copy the complete string to your system’s clipboard.
What is this zip file for?
This zip file contains the tunnel binary which will help in establishing a secure tunnel connection to LambdaTest cloud servers so you could test your locally hosted web pages over thousands of browsers and operating systems for desktop and mobile using LambdaTest.
Step 2: Extract the downloaded zip file. Go to the terminal and route your pointer to the same directory where you extracted the zip file.
Step 3: Paste the copied string to execute the downloaded binary file. The command will look like:
LT --user {user's login email} --key {user's access key} --tunnelName {user's tunnel name}
So for example, if your user login email is example@lambdatest.com, user key is 123456789abcdefghijklmnopqrstuv and tunnel name is LambdaTest, the command would be:
LT --user example@lambdatest.com --key 123456789abcdefghijklmnopqrstuv --tunnelName LambdaTest
Note: After you execute the command, you may be asked for user permission. Make sure you have administrator access to allow the file to run successfully.
In a few seconds, after you execute the command, a tunnel connection will be established. You will receive a message inside your command prompt mentioning "You can start testing now".
Testing Locally Hosted Web Pages Using LambdaTest tunnel
Step 1: Make sure you turn on XAMPP or any other web hosting tool to provide you an Apache test environment. If you are using XAMPP, Press the ‘Start’ button for ‘Apache’ under ‘Actions’. If you also want to test the back-end functionality for your website then Press the ‘Start’ button for ‘MySQL’ as well.
Step 2: Navigate to ‘Real Time Testing’ menu. Enter the localhost URL you want to test in the text field provided and Select the tunnel via which you want to run the test.
Step 3: Select the test configuration of your choice. You can select from various major browsers & their assorted versions to perform a test session. After selecting the configuration, click on the ‘Start’ button.
Once you press the ‘Start’ button, your test will start and you will be navigated to your localhost URL.
Note: If
http://localhost:{port}
does not work then try with eitherhttp://localhost.lambdatest.com:{port}
or your machine’s private IPhttp://{IP}:{port}
.
Testing Local Folder Files Using LambdaTest tunnel
Note: If you were already running a test session through tunnel then you will have to terminate the existing tunnel connection in cmd before you re-establish it for a new directory.
Step 1: Navigate to ‘Configure Tunnel’ button.
Step 2: Click on ‘Folder’ button and copy the string on your system’s clipboard.
Step 3: After you establish a tunnel connection, go to LambdaTest and navigate to ‘Real Time Test’. Enter local-folder.lambdatest.com
in URL bar. The list of all files/folders present under the selected directory will be displayed in the browser. Select the test configuration(OS, Browser and screen resolution) of your choice. Click on the ‘Start’ button.
Once the VM (Virtual Machine) is launched, you will be able to access your local folders on a testing environment hosted by our cloud servers.
Note: Similarly, if you want to run any file in the specified directory, you need to give URL as
local-folder.lambdatest.com/filename
.
For example: If you have a filetest.html
in your folder. You need to give URL aslocal-folder.lambdatest.com/test.html
to run the same file.
In this way, you can run any HTML, PHP, Python, or similar web files present in any folder of your system, directly in the LambdaTest browser.
Terminating The LambdaTest tunnel Connection
A secure tunnel connection is maintained unless you explicitly disconnect it. You can disconnect the tunnel in the following ways:
Option 1: You can kill the process by using ‘Ctrl+C’ in the terminal. You will receive the below-highlighted message ‘Tunnel stopped successfully’ indicating the termination of Tunnel Connection.
Option 2: You can also disconnect it using the option provided in the user interface. In the top right corner of the LambdaTest interface, you will find a button that says ‘Tunnel active’. This button displays the number of active tunnels. As you click on it, you will find your tunnel name along with an **‘x’**button. Press the