I was wondering if anybody knows a way that i can get the logcat while running automated tests using Appium for android mobile device. I'm using Java and I'm in a windows environment.
Any ideas? Thanks!!
I was wondering if anybody knows a way that i can get the logcat while running automated tests using Appium for android mobile device. I'm using Java and I'm in a windows environment.
Any ideas? Thanks!!
But be carefully! Function .getTimestamp() for single LogEntry returns incorrect value
Output (it's a bit formatted):
First timestamp: 1 514 841 545 766
Last timestamp: 1 514 841 594 154
A part of real logcat:
1514841545767 01-01 19:39:48.570 bla-bla-bla-first-record
1514841594154 01-01 23:19:53.440 bla-bla-bla-last-record
You can use:
You can use this implementation:
Before quitting the driver. Then just print the list to an external file.
The method will look something like that: