SampleResult.getErrorCount()

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

SampleResult.getErrorCount()

Stuart Barlow
Hi,

Using a simple test case with one HTTP Request configured to retrieve all
embedded resources. I also attach a JSR223 Postprocessor to the HTTP
Request.

In the processor I call prev.getErrorCount() and would expect the total
number of errors to be returned. However 1 is always returned.

Did I misinterpret the method SampleResult.getErrorCount()?

If you would like to reproduce the test, a sample URL to call with some
broken nested elements is http://www.deadlinkcity.com

And the Postprocessor contains:

log.error("Errors found in nested resources = " + prev.getErrorCount())


(with Language set to Groovy)

Thanks,

Stuart