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. Intent to Trigger a Dialog Only

I want to expose a portion of my app with an intent that will only
display a simple dialog box for system setting. The only way I
currently know how to do this is to have an activity that accepts an
intent. In the activity I don't use setContentView. I only create and
show the dialog. The activity is finished after you press OK from the

This is kind of okay, but the activity shows as a black backdrop under
the dialog, until you press OK which brings you back to the last
application. I'd like to just be able to show the dialog on top of the
calling Activity. Any idea on how this can be done? CAN it be done?

2. How I call startActivity() in BradocastReceiver

1. This is the wrong group, you should be posting in android-porting.
2. You should post enough information for people to actually help you.  What
does "phone goes in panic" mean?  Is there a stack crawl?  Log output?
3. There is lots of documentation in the SDK about these things.  Please be
sure you read these first -- there is documentation in the Intent class for
these flags, overview documentation about the general application model,

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.


3. weird accelerometer readings?

4. Audio record from Bluetooth headset

5. Just got notice of my first chargeback, any other devs getting them?

6. Change the location of the tab in a TabLayout

7. layout_weight is inconsistent for horizontal and vertical orientation.