Executing Tests on Local and Firewalled Websites


In some cases you would want to run tests on your own internal servers or IP restricted applications. Below are the two cases

  1. Test applications which retrict IP address

  2. Record and execute test cases on remote/local applications


1. Restricted IP applications

It becomes difficult to test IP restricted applications on cloud. But, CloudQA has an option.

All CloudQA test cases will originate from the IP addresses listed below. These IP addresses can be used for whitelisting CloudQA in your firewall or removing CloudQA traffic from your analytics.

  • Northern Virginia: 35.199.46.63

  • Iowa: 104.198.39.2

  • Oregon: 34.83.82.155

  • South Carolina: Updated to 35.237.21.17


2. Local Tunnel

Procedure to expose your locally hosted application to Internet

Tools like Ngrok allows you to expose a web server running on your local machine/server to the internet. You just need to specify what port your web server is listening on. For simplicity, we'll use Ngrok as an example. You can use any such other tools.

a. Download/Installation of Ngrok

Download single executable file. No installation or dependencies are required to run this program. Just unzip and run ngrok.

b. Run Ngrok to explore your application to internet

When you start ngrok, it will display a UI in your terminal with the public URL of your tunnel and other status and metrics information about connections made over your tunnel.

Type "ngrok http port Number" you will get the below Console ui

The ngrok console UI
--------------------------------------------------------
ngrok by @inconshreveable

Tunnel Status                 online
Version                       2.0/2.0
Web Interface                 http://127.0.0.1:4040
Forwarding                    http://92832de0.ngrok.io -> localhost:80
Forwarding                    https://92832de0.ngrok.io -> localhost:80

Connnections                  ttl     opn     rt1     rt5     p50     p90
                              0       0       0.00    0.00    0.00    0.00
---------------------------------------------------------

Use the forwarding http/https links to access the application on CloudQA

If you don't know what port your web server is listening on, it's probably port 80, the default for HTTP.

Example: Expose a web server on port 80 of your local machine to the internet command: ngrok http 80

NOTE:

  • The URL is accessible on internet until the ngrok is running
  • Every time you run this program for your application it generates a new url

results matching ""

    No results matching ""