Can I use Autify Connect to test localhost websites?
  • 28 Aug 2023
  • 1 Minute to read
  • Contributors
  • Dark

Can I use Autify Connect to test localhost websites?

  • Dark

Article summary

Yes, you can use Autify Connect to test websites running on localhost.
However, it will not work correctly if the target URL of the scenario links to a local host or local network, such as http://localhost and
Therefore, please use one of the following methods to run tests:

  1. Use
    We have an FQDN pointing to You can use this FQDN instead of localhost or
    If you have already recorded a test scenario with a hostname such as localhost, you can use the URL Replacement feature in the test plan.

    • Can I use with https?
      • Yes, we have a local SSL cert to make the working with https. Following the steps below to setup the SSL certificate


        sudo security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" /file/path/AutifyCA.pem


        # Install the ca-certificates package.
        sudo apt-get install -y ca-certificates
        # Rename AutifyCA.pem file to AutifyCA.crt and copy to the `/usr/local/share/ca-certificates` directory
        sudo cp AutifyCA.pem /usr/local/share/ca-certificates/AutifyCA.crt
        # Run the update command
        sudo update-ca-certificates
        • After add the root certificates, you can run your local server with the crt and key file
          • Example for Nginx setup:
        # You can find more infomation about Nginx SSL setup here:
        # Add the setup below to the Nginx config
        server {
            listen                 443 ssl;
            server_name  ;
            ssl_certificate        /file/path/;
            ssl_certificate_key    /file/path/;
        • Access and confirm
  2. Use another IP address, such as

  3. Edit the hosts file and set the application alias as follows:

    The hosts file is usually located at the following path:

    Linux, macOS/etc/hosts

Note that the following hostnames are not supported (this is not an exhaustive list).
If you record a scenario using these hostnames, you will need to implement one of the methods described above.


Tests using Windows OS, for example, will also recognize loopback.


Please note that if requests are sent directly to a localhost (or any unsupported hostname) within the app, the above workarounds will not work.

If none of the above works, please contact Autify support.

Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.