rgratis
12 years agoFrequent Contributor
Feature Request: Script method to stop execution of current project within project suite run
I've gone through the documentation a few times, and it doesn't seem that there is a way to stop only the execution of the current project within a running project suite. I do not want the project to stop on just any error, but with TestComplete's given methods, I can only call a stop to the current test item within the project or the entire project suite run.
Usage scenario for this is as follows:
- All projects that need to be run are added to a project suite. Project suite is run.
- In one project within the suite, there is a error, perhaps in the setup scripts, that is going to cause all the items within that project to fail.
- At this point, the best case would be to log an error and halt the execution of this particular project, thus moving on to the next project in the project suite. It appears my only options are to continue through the project and let every item fail or stop the entire project suite from continuing.
There are, of course, other workarounds, such as running each project individually via a script rather than trying to run them by running the parent project suite, but I feel that it would be useful to those of us with project suites if we could call a stop to a single project within the suite.
Usage scenario for this is as follows:
- All projects that need to be run are added to a project suite. Project suite is run.
- In one project within the suite, there is a error, perhaps in the setup scripts, that is going to cause all the items within that project to fail.
- At this point, the best case would be to log an error and halt the execution of this particular project, thus moving on to the next project in the project suite. It appears my only options are to continue through the project and let every item fail or stop the entire project suite from continuing.
There are, of course, other workarounds, such as running each project individually via a script rather than trying to run them by running the parent project suite, but I feel that it would be useful to those of us with project suites if we could call a stop to a single project within the suite.
Hi,
Actually, you can set a test item's Stop on error option to Project. In this case, if the test item fails, the execution of the current project will be halted. If you run a project suite, the next project will be run. Is this what you are talking about?