JimL
13 years agoContributor
How to detect/handle testcase errors?
Hi,
We have a testcase that works fine, but when we run it under a loadtest in several (two) of our environments, after the loadtest runs for a couple of minutes, we get several errors (connection reset by peer).
We're still trying to track down why we're getting those errors (works in other environments).
In the meantime, in the teardown script of that testcase, we output start/end times to the log, and so we'd like to be able to detect when such errors occur, and log something to that effect.
The testcase in question has two assertions:
SOAP
Message contains "Success"
Can anyone tell me what we'd need to do so that, probably in the teardown script, we could tell when the testcase doesn't end successfully?
Thanks,
Jim
We have a testcase that works fine, but when we run it under a loadtest in several (two) of our environments, after the loadtest runs for a couple of minutes, we get several errors (connection reset by peer).
We're still trying to track down why we're getting those errors (works in other environments).
In the meantime, in the teardown script of that testcase, we output start/end times to the log, and so we'd like to be able to detect when such errors occur, and log something to that effect.
The testcase in question has two assertions:
SOAP
Message contains "Success"
Can anyone tell me what we'd need to do so that, probably in the teardown script, we could tell when the testcase doesn't end successfully?
Thanks,
Jim