How to log test results in a file? - logcat error

by Brett Chabot » Tue, 14 Jul 2009 09:06:59 GMT


Sponsored Links
 Try piping the output to a file: "adb logcat > <fileName>"

But I'm curious why you need to do this rather than just using Eclipse
with the Android plugins to run your tests and obtain the test
results.

Brett.







--~--~---------~--~----~------------~-------~--~----~



How to log test results in a file? - logcat error

by Brett Chabot » Wed, 15 Jul 2009 11:48:34 GMT


 If this helps, you can run the instrumentation from the command line
with the "-r" option specified. ie adb shell am instrument -w -r
<pkg>.android.test.InstrumentationTestRunner

This will output the test results in a format that is intended to be
parseable. This is how the Android plugin to Eclipse retrieves the
test results. There is existing code in python
(development/testrunner/am_instrument_parser) and java
(development/tools/ddmlib/.../testrunner) in the Android open source
project which can parse the instrumentation raw mode results.

Brett.









--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


How to log test results in a file? - logcat error

by Brett Chabot » Fri, 17 Jul 2009 11:34:38 GMT


 


Thats correct.


Not that I'm aware of.


--~--~---------~--~----~------------~-------~--~----~