Friday, 23 January 2015

Monkey Scripts runtime error detection via ADB Logcat

This is my first script in front of you all regarding runtime error detection in Monkey Runner scripts. Hope you will enjoy it !!

Script Description :

1. Started any activity ( eg., open dialer)
2. Recording logs at the same time
3. finding a word in logs via find() function
4. If script shows error ( throws exception or opens any other activity apart from dialer) then capturing screenshot
5. Saving logs and moving to the other test case with the use of break function in python

Script :

 

 

 

 

 

 

 

 

 

Will share some more interesting scripts soon !

No comments:

Post a Comment