Articles on: Running tests

Testing localhost applications

Uilicious needs a public url to test your application. You can use a free service like ngrok (or similar alternatives) which will temporarily expose your application to a public url with a secure tunnel.

Installing ngrok:
Open the command prompt or terminal, and run the following to install ngrok.

npm install ngrok -g


Running ngrok:
If your application runs on port 3000, run the following to start ngrok.

ngrok http 3000



Once ngrok is started, you'll see the screen like this, showing you the public url you can use to access your localhost application, e.g. http://8a030552.ngrok.io .

Using the ngrok url in your test:
You can then use the ngrok url to access your application in the test like this:

I.goTo("http://8a030552.ngrok.io")

Updated on: 19/09/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!