Can I use Autify Connect to test localhost websites?
  • 15 Jan 2023
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Can I use Autify Connect to test localhost websites?

  • Dark
    Light

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 127.0.0.1.
Therefore, please use one of the following methods to run tests:

  1. Use [localhost.autify.com](http://localhost.autify.com).
    We have an FQDN pointing to 127.0.0.1. You can use this FQDN instead of [localhost](<http://localhost>) or 127.0.0.1.
    If you have already recorded a test scenario with a hostname such as [localhost](<http://localhost>), you can use the URL Replacement feature in the test plan.

  2. Use another IP address, such as http://192.168.86.92:3000/.

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

    127.0.0.1       local.your-application.com
    ::1             local.your-application.com
    

The hosts file is usually located at the following path:

OS Path
Linux, macOS /etc/hosts
Windows c:\Windows\System32\Drivers\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.

localhost
*.localhost
[::1]
127.0.0.1/8
169.254/16
[FE80::]/10

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

Warning

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.


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.