Thursday, September 8, 2011

[android-developers] Re: Is it possible to use MonkeyRunner from java

Hello Bill,

Is this ChimpChat.jar available? I can't seem to find it. I have SDK
Tools r12.

Also, will this ChimpChat allow for loading IMonkeyImage's from disk?
I see that it is currently only supported in Python and not when
writing test scripts in Java.

My overall goal is to write a script that compares old screenshots
with current screenshots from an app.

Thanks

On Aug 22, 1:42 pm, Bill Napier <nap...@android.com> wrote:
> We re-factored a bunch of code to take a lot of the MonkeyRunner source and
> make it available as a library, specifically for people doing project
> similar to what you're doing.  You should probably stop depending on the
> monkeyrunner.jar and start depending on chimpchat.jar (the new java library
> that encapsulates this functionality).  A new example looks like this:
>
>                 Map<String, String> options = new TreeMap<String, String>();
>                 options.put("backend", "adb");
>                 ChimpChat chimpchat = ChimpChat.getInstance(options);
>                 IChimpDevice device = chimpchat.waitForConnection();
>
> Which is the same snippet as before, but with the updated code.
>
> Bill
>
>
>
>
>
>
>
> On Sat, Aug 20, 2011 at 1:34 PM, Vikram <smartd...@gmail.com> wrote:
> > Dear Bill,
>
> > Why would I be getting the following error while trying to compile ?
>
> > Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved
> > compilation problem:
> >     Type mismatch: cannot convert from AdbBackend to IMonkeyBackend
>
> > AM using what you had quoted to initiate the connection to the device.
>
> > CHeers,
> > Vikram.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscribe@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment