Thanks Brett, that helped..

The log messages I write in the test code are not included in the
output using -r option? to get those i need to run logcat.

Also is there a mechanism to send messages from the emulator to
desktop?

-Yasser

On Jul 14, 8:48 pm, Brett Chabot <brettcha...@android.com> wrote:
> 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<yassersiddi...@gmail.com> 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 <brettcha...@android.com> 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<yassersiddi...@gmail.com> 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 <yassersiddi...@gmail.com> wrote:
> >> >> I can't find the resultinglogfile, where does it get created?
>
> >> >> On Jul 13, 1:55 pm, Radzell <basketballd...@gmail.com> wrote:
>
> >> >> > use thelog.i() method
>
> >> >> > On Jul 13, 4:37 pm, Yasser <yassersiddi...@gmail.com> 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 -- 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 android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to