Forum Discussion

ahmed_daniel's avatar
ahmed_daniel
Occasional Contributor
11 years ago
Solved

Resuming test to next test item after application crash

Hi,

 

I am using TestComplete to run a couple of different tests on a single desktop application. The application is prone to crashes so I want to ask is it possible to resume test to next test item in list if the application which was being tested has crashed?

 

For example I have a project which has 3 test items and during test 2 or test 1 the application crashes. Is it possible that after that the crashed application would re-launch and resume from next test item in project? All the test items are on the same level of hierarchy.

Is there a settings in TestComplete for such a scenario?

 

Your help would be really appreciated.

 

Thanks,

Daniel

6 Replies

  • Open the Project and in the workspace pane, select the Properties tab then select Playback from the explorer pane and you will see numerous playback related options in the right pane, Un-select (uncheck) the 'Stop on error' and 'Stop on warning' check boxes and assuming your tests don't encounter runtime/unhandled exceptions, TestComplete should continue to the next test item.

    • ahmed_daniel's avatar
      ahmed_daniel
      Occasional Contributor

      I have these options disabled but they dont re-launch application (when application crashes) and continue with the next test.

      Is there a way for test complete to launch the tested application again when it detects that it has crashed during testing?

       

      Thanks for the reply.

       

      Daniel

      • AlexKaras's avatar
        AlexKaras
        Icon for Champion Level 1 rankChampion Level 1

        Hi Daniel,

         

        No, what you are looking for is not possible out-of-the-box and must be implemented yourself as a library function.

        I believe that there are two main reasons here:

        a) Test code has no idea of whether the tested application's crash was expected or not. It is quite possible that you wrote your test so it crashes the application for purpose and thus there is no need to restart it;

        b) If the tested application has crashed, there is a chance that some cleanup / setup actions must be required before application is restarted. Again, this is specific to your given application and thus must be handled by yourself.

         

        Also, http://support.smartbear.com/viewarticle/56438/ and http://support.smartbear.com/viewarticle/55754/ might appear to be relevant for you.