Forum Discussion

googleid_108425's avatar
13 years ago

How to continue running Project Script during script failure.

Hi,



I have a project with 5 scripts. I run the project which should go through and run all 5 scripts. However if script 2 fails halfway through, I want TestComplete to stop running the current script and move onto the next script in the run project. How can this be done?

2 Replies

  • Hi Tony,



    Well, it's quite a large scope question you pose.



    You could disable "Stop on error" as described in Project Properties - Playback Options as a start.



    How you implement error checking and handling errors that occur would be up to you to define in your script architecture, but say if you're looping over rows in a data driver spreadsheet, then you would want to exit a test (written as a function perhaps) to return to the main loop iterating over the data driver spreadsheet.



    Hope this helps you with some ideas!