I had also tried this solution but it’s not a good approach because, let’s suppose I have to make a selection at some point and the application next steps depends upon the kind of selection I have made but as I was not able to make the selection due to some error and if I have define the "on error" property to continue with the execution then the test case execution will continue but it will not perform any operation on the application. It could be workaround if your test cases are small in terms of time taken for execution but in my case test cases takes around 10 to 15 min for completion so if On Error property is defined to continue with execution in that case, test case will unnecessarily execute for more than 10 to 15 minutes (here I am including the timeout wait also which test complete takes if it’s not able to locate the element). And from my point of view purpose of automation should not only be to perform the execution but also catch the genuine bugs if there are any. So rather than increasing the complexity of code there should be simple solution if one iteration is failing then test complete should not halt the execution but continue with the next iteration.
Related Content
- 5 years agounderqualified
- 3 years agogoogleid_114550