Forum Discussion

ashwinpendyala's avatar
ashwinpendyala
Occasional Contributor
6 years ago

recovery mechanism when app crashes

We have android and ios app where while running batch testing, app crashes in between making all rest of scripts as fail, so is there recovery mechanism that Testcomplete identifies the crash and relaunches the app again.

 

Any one has idea how to implement such crash scenario?? Please help me in this

1 Reply

  • baxatob's avatar
    baxatob
    Community Hero

    Hi,

     

    You can use OnLogError event handler, which would perform a check after each error been posted to the log. You check the presence of your application as a running process on the tested device. If process is not presented, then you make required steps to launch it again.