Demo-Web-Test
From iMacros
This example demonstrates the use of the Stopwatch command for webtesting. It can be used with the IE Plug-in, the Firefox Add-on and within the iMacros Browser.
Here we test the overall time taken to login and perform a Trademark search at the US Patent and Trademarks Office website, as well as the time for the page to load, the search to return its results and the documents retrieval page to load.
The macro can be run at various times to produce results for different times of the day and night, when the load on the website varies. For this site there is heavy usage during the US working day, but much lower usage at night.
A .csv file is generated by the first run, and then subsequents runs appends time and date stamped data to the file, allowing for easy comparison in MS-Excel or other spreadsheet package.
Macro code for IE plug-in and iMacros Browser ![]()
:
VERSION BUILD=6000410 TAB T=1 TAB CLOSEALLOTHERS SET !FILESTOPWATCH usptoTimings.csv STOPWATCH ID=fullsearch STOPWATCH ID=websiteload URL GOTO=http://www.uspto.gov/# SIZE X=820 Y=713 STOPWATCH ID=websiteload TAG POS=1 TYPE=A ATTR=TXT:Trademarks TAG POS=1 TYPE=A ATTR=TXT:Search<SP>Trademarks TAG POS=1 TYPE=A ATTR=TXT:Free<SP>Form<SP>Search<SP>(Advanced<SP>Search) STOPWATCH ID=search TAG POS=1 TYPE=TEXTAREA FORM=NAME:search_text ATTR=NAME:p_s_ALL CONTENT=78829872[SN] TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:search_text ATTR=NAME:a_search STOPWATCH ID=search STOPWATCH ID=opendocument TAG POS=1 TYPE=IMG ATTR=ALT:LINK<SP>TO<SP>TRADEMARK<SP>DOCUMENT<SP>RETRIEVAL STOPWATCH ID=opendocument BACK TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:/bin/gate.exe ATTR=NAME:a_logout STOPWATCH ID=fullsearch
Macro code for Firefox add-on
:
VERSION BUILD=5200814 RECORDER=FF TAB T=1 TAB CLOSEALLOTHERS SET !FILESTOPWATCH usptoTimings.csv STOPWATCH ID=fullsearch STOPWATCH ID=websiteload URL GOTO=http://www.uspto.gov/# SIZE X=820 Y=713 STOPWATCH ID=websiteload TAG POS=1 TYPE=A ATTR=TXT:Trademarks TAG POS=1 TYPE=A ATTR=TXT:Search<SP>Trademarks TAG POS=1 TYPE=A ATTR=TXT:Free<SP>Form<SP>Search<SP>(Advanced<SP>Search) STOPWATCH ID=search TAG POS=1 TYPE=TEXTAREA FORM=NAME:search_text ATTR=NAME:p_s_ALL CONTENT=78829872[SN] TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:search_text ATTR=NAME:a_search STOPWATCH ID=search STOPWATCH ID=opendocument TAG POS=1 TYPE=IMG ATTR=ALT:LINK<SP>TO<SP>TRADEMARK<SP>DOCUMENT<SP>RETRIEVAL STOPWATCH ID=opendocument BACK TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:/bin/gate.exe ATTR=NAME:a_logout STOPWATCH ID=fullsearch
