Hi Dev:

You might be able to use or build upon the ddmlib library that is part
of the Android toolset. To take a look, download the Android source
code from source.android.com, and peruse the
development/tools/ddms/libs/ddmlib/src/com/android/ddmlib/testrunner
package. The Android Eclipse plugins use the ddmlib library to run
tests on the Android platform and report back the results into the
Eclipse JUnit UI.

Here's a direct web link to that package:
http://android.git.kernel.org/?p=platform/development.git;a=tree;f=tools/ddms/libs/ddmlib/src/com/android/ddmlib/testrunner;h=554db95a5e9d59d01ad6baaa232b526d47cca406;hb=HEAD

Regards,
Brett.

On Wed, Jun 3, 2009 at 2:23 AM, dev <[email protected]> wrote:
>
> Hi all,
>
> I am trying to write a simple test framework.
> This is what I want to do:
>
> My actual test is an apk file on android device, and I write a
> TestCase or some instrumentation for that which runs on host side. I
> trigger the test using adb commands or some IDE.
>
> I am able to refer to some examples which does above.Now what I want
> to know is any way of getting results back using any api available in
> TestCase or such class.This result can be any string value or an
> object too.
>
> 1. can I use TestResult for this purpose ? I expect it ot be similar
> to function calland return value from function.i.e. on completion of
> test I should get back the result in a structured way probably defined
> by me.Is this possible at all.
>
> 2. or return value is always going to be put to stdout? or logcat?
>
> 3.how do I parse and collect stdout or logcat prints into a file?
>
> any input would be of great help.
>
> Regards,
> Dev
>
> >

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to