Forum Discussion
jimpson
11 years agoContributor
Building on Adrian's answer, you could do the following for long duration stress type testing
- Disable "Stop on Error"
- Add the global errorBool variable that Adrian mentioned
- Add an errorCount integer variable
- Build a loop to run inside of your test item (e.g. 1 test item will run 100 iterations of test)
- Throw errors where required
- Bubble the errors to the top level loop
- Set the errorBool variable in the OnLogError event handler
- Increment the error count
- Determine how to handle the error in the loop
- Reset error condition after error has been handled
We do something very similar with out long duration testing, and it works like a charm. Until, that is, TE stops responding and we are forced to restart the test.
- Disable "Stop on Error"
- Add the global errorBool variable that Adrian mentioned
- Add an errorCount integer variable
- Build a loop to run inside of your test item (e.g. 1 test item will run 100 iterations of test)
- Throw errors where required
- Bubble the errors to the top level loop
- Set the errorBool variable in the OnLogError event handler
- Increment the error count
- Determine how to handle the error in the loop
- Reset error condition after error has been handled
We do something very similar with out long duration testing, and it works like a charm. Until, that is, TE stops responding and we are forced to restart the test.