Hi Peddi, Here's an example of the usage of loadImageFromFile:
from com.android.monkeyrunner import MonkeyRunner img = MonkeyRunner.loadImageFromFile(path='/home/napier/logo.png') Since loadImageFromFile is something that can be done at any time and really has nothing to do with a device, it didn't make a whole lot of sense to me to add it as a method on MonkeyDevice. If you've got a good argument as to why it should be there, I'll listen to it. Thanks, Bill On Fri, Apr 8, 2011 at 9:23 AM, Peddi Kanumuri <peddi.kanum...@gmail.com>wrote: > Please check this issue @ > http://code.google.com/p/android/issues/detail?id=16049 > > -Peddi. > > On Apr 7, 4:59 pm, Peddi Kanumuri <peddi.kanum...@gmail.com> wrote: > > Bill, > > > > How to build just the monkeyrunner.jar with these changes? > > We are in need of loadImageFromFile API. > > > > -Peddi. > > > > On Mar 7, 8:02 pm, Bill Napier <nap...@android.com> wrote: > > > > > > > > > > > > > > > > >https://review.source.android.com//#change,21478 > > > > > <https://review.source.android.com//#change,21478>Adds support for > this > > > change. If you check the android source out and build monkeyrunner > from > > > that, you should be able to read images from the file system. It will > also > > > eventually find its way into an SDK release, but checking it out and > > > building it youself is the fastest way to get it. > > > > > Bill > > > > > On Fri, Feb 25, 2011 at 5:52 PM, Andrew W. Hill <kj6...@gmail.com> > wrote: > > > > > > I know this is an old thread, but I was wondering if MonkeyRunner has > > > > the capability to read screenshots from the file system yet. I > > > > couldn't find any info on it. > > > > Cheers, > > > > Andrew > > > > > > On Feb 15, 4:11 pm, Bill Napier <nap...@android.com> wrote: > > > > > Hi Christopher, > > > > > > > Being able to load an image into MonkeyRunner from the filesystem > > > > > makes a lot of sense, I don't see how I had missed that. All the > > > > > test's we've been using MonkeyRunner before only ever wanted to > > > > > compare to subsequent snapshots (to see what has changed). This > looks > > > > > pretty straight forward feature to add, but may take me a couple > days > > > > > to get to it. > > > > > > > Bill > > > > > > > On Mon, Feb 14, 2011 at 6:14 PM, Christopher M. Judd < > javaj...@gmail.com> > > > > wrote: > > > > > > > > According to the monkeyrunner documentation, you can compare > > > > > > screenshot output to known screenshot for regression testing. How > do > > > > > > you do this? I see the method sameAs on MonkeyImage but that > takes a > > > > > > MonkeyImage presumably one saved on disk for regression testing > but > > > > > > there appears to be no way to load one from disk. > > > > > > > > -- > > > > > > 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+unsubscr...@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+unsubscr...@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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en