How to identify application crashed during automation

All,

I’m automating an a mobile application. i have question here.
During running my application, if application crashes how appium will come to know ? Basically i have 5 test cases but in third test case my application crashes, how i’ll identify the crash and reopen the application.

Please give me some support or paste the code.

If anybody has parallel test produce please share me too.

It’s urgent

Thanks in advance.

All,

Anybody suggest me for above issue. it’s urgent

Hi @Karthik_Gowda
I have not tried this, but if you comb the appium logs and you see:
The target application appears to have died

That’s a crash.
You could have a job that parses the appium logs looking for that and report out accordingly.

Hope that’s helpful!
Eric