Forum Discussion

nimishbhuta's avatar
nimishbhuta
Frequent Contributor
8 years ago

Exit the Test and Test Iteration

Hello, 

 

Query : 

 

How can I exit the test as well as test iteration in case if the object does not exist and it throws an error?

 

In UFT, we have command such as ExitTest and ExitTestIteration, what is the command in TestComplete.

 

Regards,

 

Nimish

8 Replies

    • nimishbhuta's avatar
      nimishbhuta
      Frequent Contributor

      Thanks but Runner.Stop or Runner.Halt will stop the whole test,but I want to exist one test iteration and continue with other then how can I do it ?

       

      Example :- There are 3 actions such as Login, Action1 and Logout 

       

      I have created all this 3 action in Script and then created Keyword test and calling each of this action. Now I have data driven this now suppose first iteration runs fine and the second iteration (meaning second data row in excel) where it has issue in Action1 then I can stop that test iteration and then move to 3rd iteration. In UFT,we have ExitTestIteration which does this thing. What is possible in TestComplete?

       

      Regards,

       

      Nimish

       

       

      • baxatob's avatar
        baxatob
        Community Hero

        Hi,

         

        There is no any solution from the box. You should implement your own customized method.