iMacros Web Testing


Published on

In-Browser Web Testing for Internet Explorer and Firefox

Published in: Technology, Design
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • iMacros Web Testing

    1. 1. Performance Testing & Internet Monitoring
    2. 2. STOPWATCH Command <ul><li>Intended for: </li></ul><ul><li>Performance testing (Response time measurements) </li></ul><ul><li>Internet Monitoring </li></ul><ul><li>Why?: </li></ul><ul><li>Response time is a top factor for most visitors in choosing a website. For many visitors response time is even more important than prices or quality of content. </li></ul><ul><li>Monitor server uptime and server load </li></ul><ul><li>Notify webmaster in case of problems </li></ul>
    3. 3. Insert STOPWATCH Command <ul><li>VERSION BUILD=6120323 </li></ul><ul><li>SET !FILESTOPWATCH mydata.csv </li></ul><ul><li>STOPWATCH ID=Total </li></ul><ul><li>URL GOTO= </li></ul><ul><li>STOPWATCH ID=SubmitData </li></ul><ul><li>TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:WebDataEntry ATTR=NAME:SendButton&&VALUE:*submit* </li></ul><ul><li>STOPWATCH ID=SubmitData </li></ul><ul><li>ADD !EXTRACT {{!STOPWATCHTIME}} </li></ul><ul><li>STOPWATCH ID=Store </li></ul><ul><li>TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:order ATTR=NAME:ORDER_PRODUCT_NOW&&VALUE:Order<SP>Now </li></ul><ul><li>STOPWATCH ID=Store </li></ul><ul><li>ADD !EXTRACT {{!STOPWATCHTIME}} </li></ul><ul><li>STOPWATCH ID=Total </li></ul>Some lines have been omitted for better readability. Please see Demo-Stopwatch for complete macro.
    4. 4. Demo-Stopwatch Sample Data <ul><li>&quot;2008/03/25&quot;,&quot;3:33:30&quot;,&quot;demo-stopwatch&quot;,&quot; FIRSTPAGE &quot;,&quot;1.902&quot; </li></ul><ul><li>&quot;2008/03/25&quot;,&quot;3:33:33&quot;,&quot;demo-stopwatch&quot;,&quot; SUBMITDATA &quot;,&quot;0.731&quot; </li></ul><ul><li>&quot;2008/03/25&quot;,&quot;3:33:45&quot;,&quot;demo-stopwatch&quot;,&quot; STORE &quot;,&quot;5.157&quot; </li></ul><ul><li>&quot;2008/03/25&quot;,&quot;3:33:45&quot;,&quot;demo-stopwatch&quot;,&quot; TOTAL &quot;,&quot;16.503&quot; </li></ul><ul><li>&quot;2008/03/25&quot;,&quot;3:38:49&quot;,&quot;demo-stopwatch&quot;,&quot; FIRSTPAGE &quot;,&quot;1.092&quot; </li></ul><ul><li>&quot;2008/03/25&quot;,&quot;3:38:52&quot;,&quot;demo-stopwatch&quot;,&quot; SUBMITDATA &quot;,&quot;0.731&quot; </li></ul><ul><li>&quot;2008/03/25&quot;,&quot;3:39:03&quot;,&quot;demo-stopwatch&quot;,&quot; STORE &quot;,&quot;5.308&quot; </li></ul><ul><li>&quot;2008/03/25&quot;,&quot;3:39:03&quot;,&quot;demo-stopwatch&quot;,&quot; TOTAL &quot;,&quot;15.062&quot; </li></ul><ul><li>&quot;2008/03/25&quot;,&quot;3:44:06&quot;,&quot;demo-stopwatch&quot;,&quot; FIRSTPAGE &quot;,&quot;0.611&quot; </li></ul><ul><li>&quot;2008/03/25&quot;,&quot;3:44:09&quot;,&quot;demo-stopwatch&quot;,&quot; SUBMITDATA &quot;,&quot;0.721&quot; </li></ul><ul><li>&quot;2008/03/25&quot;,&quot;3:44:33&quot;,&quot;demo-stopwatch&quot;,&quot; STORE &quot;,&quot;6.95&quot; </li></ul><ul><li>&quot;2008/03/25&quot;,&quot;3:44:33&quot;,&quot;demo-stopwatch&quot;,&quot; TOTAL &quot;,&quot;20.61&quot; </li></ul><ul><li>&quot;2008/03/25&quot;,&quot;3:49:36&quot;,&quot;demo-stopwatch&quot;,&quot; FIRSTPAGE &quot;,&quot;0.641&quot; </li></ul><ul><li>&quot;2008/03/25&quot;,&quot;3:49:39&quot;,&quot;demo-stopwatch&quot;,&quot; SUBMITDATA &quot;,&quot;1.051&quot; </li></ul><ul><li>&quot;2008/03/25&quot;,&quot;3:49:56&quot;,&quot;demo-stopwatch&quot;,&quot; STORE &quot;,&quot;7.841&quot; </li></ul><ul><li>&quot;2008/03/25&quot;,&quot;3:49:56&quot;,&quot;demo-stopwatch&quot;,&quot; TOTAL &quot;,&quot;20.169&quot; </li></ul>Monitoring Station: Heidelberg, Germany
    5. 5. Response Time Data (March 2005) Server 1 (iOpus): Houston, Texas Server 2 (Store): Denver, Colorado Monitoring Station: Dallas, Texas Macro Demo-Stopwatch: FirstPage Store SubmitData Total
    6. 6. Best Practice for Response Time Measurements <ul><li>iMacros response time measurements always reflects the true user experience as they are measured using a real browser and the original browser plug-ins such as Adobe Flash Player, Silverlight or SUN Java runtime. </li></ul><ul><li>Add a CLEAR statement to your macro. </li></ul><ul><li>Average Measurements. The &quot;internet speed&quot; can fluctuate from minute to minute even on a fast connection. </li></ul><ul><li>Accuracy depends on the accuracy of the PC clock. This applies to all software that does time measurements on a PC. </li></ul><ul><li>Under normal conditions the processor speed does not influence the measured response times. Only if the PC is so slow that the web page rendering of the browser is slowed down, will the CPU speed have an influence on the measured response time. </li></ul>
    7. 7. Keyword Assertion Search for a keyword can be done via TAG Create a macro with only two lines: VERSION BUILD=6120125  TAG POS=1 TYPE=B ATTR=TXT : * completed * In this example, we are searching the web page for the first occurrence (POS=1) of the keyword &quot;completed“. The TAG command will test if keyword appeared on website.
    8. 8. Image Assertion Search for an image can be done via the SAVEITEM feature: CLEAR URL GOTO= TAG POS=1 TYPE=IMG ATTR=TXT:Only*version CONTENT=EVENT:SAVEITEM This macro will download an image. If the image is missing on your web page, the macro stops with an “Image not found&quot; error. To make sure that the missing image is not stored in the browser cache, it is recommended that you use the CLEAR command before this test.
    9. 9. Demo: Internet Monitoring <ul><li>Part1: Record an “Online Shopping Experience” macro at “” and use it for response time measurements. Measure response time at various critical points separately, for example when an item is placed into the shopping cart. </li></ul><ul><li>Part 2: Make sure the price is displayed correctly </li></ul><ul><li>Part 3: Make sure the item image is displayed correctly </li></ul>