samedi 14 septembre 2019

How to write a test for a service that handles redirects

I have created a server that redirects visitors if they have certain parameters in their request e.g.

www.myservice.com/1 --> redirects to google.com
www.myservice.com/2 --> redirects to facebook.com

How would I write script to automate the testing of this? It can be in any language, I am just interested in the overall concept.

Furthermore, where could I host such a script so that it runs let's say once a day? Perhaps a cron job + a log.txt file?

Aucun commentaire:

Enregistrer un commentaire