You can go with a simpler approach. Add a root element of any listener, check the errors only box, select the fields you want to log and set the filename to save errors to.
You will have a log of all errors you got during the test. I use this always to log everything including request and response body to be able to tackle errors easily. www.beatsoo.org - free application performance monitoring from world wide locations. On Jun 2, 2014 2:32 PM, <[email protected]> wrote: > Hi, > > Is it possible to log a HTTP request upon error? > > I am currently using a BeanShell Listener to log the ResponseData if not > successful. > > if (!sampleResult.isSuccessful()) { > log.error(sampleResult.getResponseDataAsString()); > } > } > > But not sure how to log the HTTP request which caused this error. > > Many Thanks > > Paul > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
