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



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

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.



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.


Other Threads

1. How to destroy an Activity in android


how can I destroy an Activity in android?
e.g. if i launch the 'Calculator' Activity, how to destroy it so that
the onDestroy method will get called?

Thank you.


2. Modular resources under eclipse

I'm developing a family of applications that have a lot of
functionality in common. In eclipse, I have a "core" project with all
the base functionality. Each individual application project has this
core project on its build path, so it can use the functionality
offered by the core project.

This works fine for code: the android eclipse plugin packages all code
in the .apk files of the application projects, so each application apk
file is then a self-contained application.

However, I also want to reuse the resources that are used by the core
project, like layouts and images. The "core" project is an android
project with resources, but these resources are not packaged
automatically in the application projects.

In a perfect world, the "core" resources would be merged in the
application project seamlessly, even updating in the
application project when a core resource changed. I understand this is
probably too much to hope for, and I might end up juggling two "R"
classes in my application: the core R in one package and the
application R in another package.

Outside of eclipse I can see how this might work: I package both sets
of resources in the apk file, and with two AssetManager (and
Resources) instances manage the two sets of resources. Or maybe I use
ant to first create a single distribution by merging the core and
application project files into a single directory, and then build the
apk like you would do when there is only a single project.

Is there some way to trick eclipse into packaging both "core" and
"application" resources files into one .apk file?


3. How to get the original string data?

4. layout_weight is inconsistent for horizontal and vertical orientation.

5. problem while opening the Connection

6. ADP1 device not listing by adb devices command in Ubuntu.

7. setOnKeyListener does not works with MapView