Your Script is written to run multiple concurrent users. But how can you make sure that all users are logged on successfully? We have to check the validity of the pages that are loaded for each virtual user executing the script. This can be done by adding a check option on a web requests. By default, the recording process adds a check option on every primary web requests in order to verify the title of the page (this option can be changed in the recording options).
In our sample, the “Welcome to FMStocks” page is loaded when a user has successfully logged on.
Select the "Edit/Find & Replace/Find In HTTP Responses" menu option or click the icon ().
Type “Welcome to FMStocks” in the opened dialog
The HTTP request which loads the “Welcome to FMStocks” page is listed in the Find in HTTP tab of the Output panel (http://demo.fmstocks.com/fmstocks/home.asp.)
in the Find In HTTP tab: The associated web request is
automatically located in the Script panel, the subrequest which
contains the "Welcome to FMStocks" character string
(demo.fmstocks.com/fmstocks/home.asp) and the “Welcome to
string are highlighted in the HTTP Data window (upper right
Right click in the HTTP Data window and select
the "Insert Check Point..." entry from the contextual menu.
The Check view (bottom part of the HTTP Data window) will
appear as follows.
Specifiy the "Welcome" name in the "Name" field.
Click the "Apply" button; the
CHECK option is added to the web request.
SUBMIT POST PRIMARY "http://demo.fmstocks.com/fmstocks/default.asp" IDENTIFIER 11
CHECK "Home" CONTAINS "Home" ON_FAILED CONTINUE
CHECK "Welcome" CONDITION (Substr(GetSubRequestContent("http://demo.fmstocks.com/fmstocks/home.asp", 1, NOCASE), "Welcome to FMStocks", 0) != "") ON_FAILED CONTINUE;
Launch a Job
with 10 Virtual Users executing this Script and open the Checks
View. It displays statistics about the checkpoints which are in
Copyright © AgileLoad. All rights reserved.