background image
<< Failed Transactions Graph and Report | the 33rd second of the scenario >>
<< Failed Transactions Graph and Report | the 33rd second of the scenario >>

access an HTML page using a GET statement

Analyzing Test Results · Analyzing Scenario Activity
LoadRunner Controller User's Guide (Windows)
Chapter 14, page 238
In
The following example uses a Web Vuser script. Web Vuser statements return zero
for success and a positive value for failure. The Web Vuser script below tries to
access an HTML page using a GET statement. If the GET request succeeds, the
script assigns the LR_PASS status to the transaction. If the GET request fails, the
script assigns LR_FAIL to the transaction.
On the Transactions per Second (Failed) graph, the
x-axis
represents the elapsed
time (in seconds) since the start of the scenario run. The
y-axis
represents the
number of transactions unsuccessfully performed during the scenario.
lr_start_transaction("wizard");
if (URL("http://www.wizard.com/index.html") == 0)
lr_end_transaction("wizard", LR_PASS);
else {
lr_end_transaction("wizard", LR_FAIL);
lr_log_message("Wizard home page not returned");
}