Ask a Question

Pause on error in TestExecute

pschutz
Occasional Contributor

Pause on error in TestExecute

Is there a way to have my script pause on an error using testexecute.  In TestComplete, I have a listener for OnLogError that uses the Runner.Pause() method, but this isn't supported by TestExecute.  Also, I would like to be able to pause it on an error without debug mode being enabled.  Thanks!
4 REPLIES 4

RE: Pause on error in TestExecute


Hi Patrick,





Pausing test execution is actually stopping at a breakpoint. Since it is impossible to debug tests in TestExecute, it cannot be paused.





Could you please explain what you need this for?
--
Dmitry Nikolaev

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
pschutz
Occasional Contributor

RE: Pause on error in TestExecute

If an error occurs during the test, such as an error message popping up or something like that, I would like a way for my testers to be able to go investigate what occurred and then resume the test.



I was thinking that I could put a loop in a listener for an error post that would run until a key combination was pressed, but I couldn't find a method to do this.



Thanks!

RE: Pause on error in TestExecute


Hi Patrick,





You can create a user form with a single button that closes this form. Show this form as a modal form when you want to pause the test execution. Please find more information in the User Forms help topic.
--
Dmitry Nikolaev

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
pschutz
Occasional Contributor

RE: Pause on error in TestExecute

That's really cool! I didn't even know User Forms existed.  Thanks!
cancel
Showing results for 
Search instead for 
Did you mean: