I am trying to log some custom error messages so that I know exactly why
something failed. For example, if I try to log in to an application, it mail
fail for many reasons. I have a Response Assertion that checks for an error
message. This works fine. But now I also want to log what the username and
password caused the error since the test plan picks from a large data set.
I've tried added a BeanShell Assertion on top of the Response Assertion, but
the value of SampleResult is always false.
Is there a way to act upon the Response Assertion and log a custom error
message if the Response Assertion fails?