TestComplete 12.50 and Windows 10 (1709)
We are having a problem with tests in Windows 10 that were developed on the same system as the ones we are currently executing the tests on where the test will end prematurely with only a message that says, "The test execution was interrupted."
The steps leading up to that message are all successful. The step this happens on varies within the same test. We have seen this happen on a number of different tests that we are writing, and can't explain why.
Has anyone seen this happen? Any suggestions to try?
Solved! Go to Solution.
@DavidE, "The test execution was interrupted." It usually comes when you stop the test manually.
This will happen when you enabled StopOnError.
Do you have StopOnError enabled in your project?
Most all our tests run with Stop on Error enabled @shankar_r. However, I took your suggestion and turned it off. The test did run to completion.
However, that brings me to my next question. What error am I getting? As I said, the commands are being executed successfully up until the point where I get the test interrupted message. There is no prior error and nothing else is stopping the test.
I get the following message. However, there are no other errors in the log, I did not stop the test manually, and my test does not call the Runner.Halt method.
- An error or warning occurred during the test run. See the preceding log entries to locate and identify the error.
- The test run was stopped manually.
- The test run was terminated as a result of the Runner.Halt method call.
@shankar_r I appreciate the willingness to try and help, but I did just discover the problem. We use Jenkins to execute our tests, and we had set some timeout values for the test, i.e. a maximum run time. Due to some changes in our environment some of these tests are running longer than they used to and as a result are hitting the timeout values and Jenkins is stopping the test. So it is truly being interrupted.