AlertFox is part of the Ipswitch family of tools and services. Learn More »

Debugging Web Transaction Tests by analyzing HTTP traffic

by / Wednesday, 14 September 2011 / Published in Web Monitoring
Recently a customer reported a failed transaction test (iMacros macro) to us. He said that the screenshot looked fine to him. He could even see the image the macro couldn’t find, on the screenshot.

I have tested the sensor and looked at the .har file the test produced and it took me only a couple of seconds to understand what the problem was: The user’s macro was specifying a full path to the image like this:

TAG POS=1 TYPE=IMG ATTR=SRC:http://my.url.com/images/buttons/btn.png

However, the HAR file showed that btn.png was coming from a different domain: static.url.com.
It would sometimes come from my.url.com and sometimes from static.url.com.

The solution was to change the macro line from
TAG POS=1 TYPE=IMG ATTR=SRC:http://my.url.com/images/buttons/btn.png
to
TAG POS=1 TYPE=IMG ATTR=SRC:*.url.com/images/buttons/btn.png

This is one of dozens of other things a visualized .har file can tell you. It even includes snapshots of HTML for every page you’ve accessed within your iMacros sensor. HTTP Archive files (.har) are very useful when debugging complex problems with your web pages.
Read more about .har files here.

blog_image_har_domain

Leave a Reply

TOP