Forum Discussion

nisgupta's avatar
nisgupta
Valued Contributor
7 years ago

Stoping the script which fails and pick up the next script

We have multiple TestItems i.e. scripts in one project. When we run the whole project all these scripts will run one by one . Now we have some issues - for e.g. we have 4 scripts in one project 

 

1. If first script fails then how can we stop the first script form further running as soon as failure occurs. Testcomplete should pick up the second script . If the second script fails then  Testcomplete should stop the second script and pick up the 3rd script and so the 4th script .

 

I am not able to figure out how can we can achieve this. We are using javascript based scrip in the testComplete.

 

Summary is if the script failed or has some errors then it should stop as soon as failure occurs but it should not stop the other scripts which are in line.

 

Let me know if you need additional information

 

Thanks

NG 

13 Replies