StatusCake

Using StatusCake to test login, and a variety of other transactions

With StatusCake you can use a variety of methods to test basic “transactions”, including forms that deal with login, data protection, and others.

The Tools

Form and Raw POST data – We can send form or raw POST data along with our normal test requests, in many cases when dealing with HTML forms we can submit this data to the form in order to test the associated function.

Basic Authentication login – For pages where there’s not a HTML form to submit to, and instead access is gained through basic authentication. You can see an example of a Basic Auth dialogue below:

1

Content/String Match – Once we’ve submitted to the form or gained access to the page, it’s important to then verify that the expected page and results are returned. To do this we can use our Content Match feature. This will run a string match for one or multiple strings on the resulting page.

Final URL – You can use the Final URL feature to confirm that the page you’ve reached at the end of the process contains the correct URL, great for catching erroneous errors.

The Method

First of all, you should assess which tools you need to use, and where the testing should be targeted. If you are dealing with a HTML based login form you should submit Form POST data, and your target should be the URL of that form rather than the main page URL.

2

If it’s a basic authentication job then your URL target should be that of the main page, and you should use the basic auth fields on the test on our end to gain access:

3

For other types of HTML form, which could be for a wide range of uses, you just need to grab the field submission names from the source code, these can again be entered in the Form POST field invalid JSON format with your desired values. This way you can use the feature to test pretty much any type of entry form.

4

Validating the Results

Once your form or login dialogue is being actioned, it’s time to set up validation of the process, this can be done in two ways.

String Match – Using the String Match field on the test you can confirm the presence of one or more strings in the source of the resulting page after whichever process has been carried out. You can be alerted optionally if these strings are found/not found.

Final Location – With this, you can verify that the final URL in the process is an expected URL, for example, if you are expecting http://mysite.com/allgood.php ,  but the URL reached is http://mysite.com/notgreat.php – you will receive an alert for the test.

Share this

More from StatusCake

developer tools
short-reads

Software developer tools to increase productivity 

5 min read In this blog post I want to go over some of the software I use alongside my IDE/version control tools during my day-to-day work. These tools allow me to cut down on wasted time spent doing things inefficiently, track my work, take notes, and generally make my life easier.

statuscake
short-reads

5 surprising things you might not know about StatusCake

3 min read Here’s everything you might need to know about StatusCake that might just surprise you! From the range of customers, to our check rates, this is a list that you should definitely be reading.

Want to know how much website downtime costs, and the impact it can have on your business?

Find out everything you need to know in our new uptime monitoring whitepaper 2021

*By providing your email address, you agree to our privacy policy and to receive marketing communications from StatusCake.