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

IP Restrictions allows you to define a list of IP addresses that are allowed to access your app. It becomes difficult to test these applications on cloud. But, CloudQA has an option.

  • This is very simple. You only need to whitelist our IP
  • For TruBot and TruRT, please whitelist the IP address - 35.237.21.17 and contact support
  • For TruMonitor the default IP address is 35.237.21.17. This works only for the location i.e, South Carolina, US. If you want to monitor with any other location please contact us.

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 ""