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. On Mon, Jul 13, 2009 at 6:27 PM, Yasser<[email protected]> wrote: > > The test results are just visible in the Eclipse IDE. Actually I need > to create an automated report after the run parsing the test results. > > On Jul 13, 6:06 pm, Brett Chabot <[email protected]> wrote: >> 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. >> >> >> >> On Mon, Jul 13, 2009 at 4:13 PM, Yasser<[email protected]> wrote: >> >> > I am getting log messages by logcat command but when I try to use "adb >> > logcat -f <filename>", it gives "could't open output file: read-only >> > file system" error. >> >> > On Jul 13, 2:36 pm, Yasser <[email protected]> wrote: >> >> I can't find the resultinglogfile, where does it get created? >> >> >> On Jul 13, 1:55 pm, Radzell <[email protected]> wrote: >> >> >> > use thelog.i() method >> >> >> > On Jul 13, 4:37 pm, Yasser <[email protected]> wrote: >> >> >> > > Hi, >> >> >> > > I am using assert methods of JUnit's Assert class on passing/failing >> >> > > of a test case. >> >> >> > > How can Ilogthese messages in a file on the desktop so that I can >> >> > > parse them to know the testresults? >> >> >> > > Thanks >> >> > > Yasser- Hide quoted text - >> >> >> > - Show quoted text -- Hide quoted text - >> >> >> - Show quoted text -- Hide quoted text - >> >> - Show quoted text - > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

