Awesome
17 years agoFrequent Contributor
Outputting results to html file
so i have this bit of code (thanks to this nice forum!) that grabs the results from each teststep and outputs a nice table to results.html:
for( r in testRunner.results ){
i++;
if (r.status.toString() == "OK") step_a = step_a + "" + i + " - '" + r.testStep.name + "' finished with status " + "" + r.status + "\n" ;
else if (r.status.toString() == "FAILED") step_a = step_a + "" + i + " - '" + r.testStep.name + "' finished with status " + "" + r.status + "\n" ;
}
QUESTION:
how do i grab the results of the assertions for a request from testRunner.results?
Thank you!
for( r in testRunner.results ){
i++;
if (r.status.toString() == "OK") step_a = step_a + "" + i + " - '" + r.testStep.name + "' finished with status " + "" + r.status + "\n" ;
else if (r.status.toString() == "FAILED") step_a = step_a + "" + i + " - '" + r.testStep.name + "' finished with status " + "" + r.status + "\n" ;
}
QUESTION:
how do i grab the results of the assertions for a request from testRunner.results?
Thank you!