tag:blogger.com,1999:blog-25456655.post899257020381016474..comments2024-02-09T11:53:32.369-05:00Comments on Diego Torres Milano's blog: monkeyrunner: testing views propertiesDiego Torres Milanohttp://www.blogger.com/profile/12030778501784140349noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-25456655.post-51745784580710433882013-03-17T17:27:31.679-04:002013-03-17T17:27:31.679-04:00I want to use EasyMonkeyDevice for my bachelor'...I want to use EasyMonkeyDevice for my bachelor's thesis and I have a few questions. Since there is no (?) documentation of EasyMonkeyDevice and you seem to be kind of an expert, I added you on Google+. I have a few questions. If you don't mind, could you accept me, so I can send you an email? Thanks in advance!Anonymoushttps://www.blogger.com/profile/03674453781731642307noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-74002134198086728592013-03-17T14:33:31.927-04:002013-03-17T14:33:31.927-04:00@Sammy Odenhoven,
You are completely right, Hierar...@Sammy Odenhoven,<br />You are completely right, HierarchyViewer requires the ViewServer which can only be started on devices not considered in <a href="https://github.com/dtmilano/AndroidViewClient/wiki/Secure-mode" rel="nofollow">secure mode</a>.<br /><br />This <a href="https://github.com/dtmilano/AndroidViewClient/wiki" rel="nofollow">AndroidViewClient wiki page</a> will guide you to use the possible alternatives.Diego Torres Milanohttps://www.blogger.com/profile/12030778501784140349noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-87401928164582539092013-03-16T16:53:26.589-04:002013-03-16T16:53:26.589-04:00Seems like I've found an answer. Apparently it...Seems like I've found an answer. Apparently it's a HierarchyViewer issue. It can only be run on an emulator, or on a real device which has developer version of the Android system. See http://marakana.com/forums/android/learning_android_book/472.html<br /><br />So nevermind my question!Anonymoushttps://www.blogger.com/profile/03674453781731642307noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-70810808905303420222013-03-16T16:37:38.999-04:002013-03-16T16:37:38.999-04:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/03674453781731642307noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-57787728953223295282013-03-16T16:37:23.829-04:002013-03-16T16:37:23.829-04:00Hi Diego,
Thanks for your great tutorial/blog. It...Hi Diego,<br /><br />Thanks for your great tutorial/blog. It's very helpful. <br />I want to use the EasyMonkeyDevice functionality, but I can't seem to get it right. When I try to attach EasyMonkeyDevice to the device (easyDevice = EasyMonkeyDevice(device)), I get a 'java.lang.RuntimeException: Could not connect to the view server'.<br /><br />Do you have any idea what I'm doing wrong?<br /><br />Thanks in advance!Anonymoushttps://www.blogger.com/profile/03674453781731642307noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-32808191806697800742013-01-22T23:30:39.768-05:002013-01-22T23:30:39.768-05:00HI~
in
fahrenheitId = By.id('id/fahrenheit...HI~<br />in <br />fahrenheitId = By.id('id/fahrenheit')<br />if not fahrenheitId:<br /> raise Exception("View with id/fahrenheit not found"<br /><br />"if not farhrenheitId"<br />not working,<br /><br />I think it's better to use<br />if not easyDevice.exists(fahrenheitId)Gibbshttps://www.blogger.com/profile/03328291975314439912noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-59933955024019309612012-10-06T10:08:08.626-04:002012-10-06T10:08:08.626-04:00@ProficientGroup,
Thanks for your comments.
To fin...@ProficientGroup,<br />Thanks for your comments.<br />To find a View by its unique Id you can simply do (here using 23 as an example):<br /><b><br />vc.findViewWithAttribute('uniqueId', 'id/no_id/23')<br /></b>Diego Torres Milanohttps://www.blogger.com/profile/12030778501784140349noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-45502839669125146232012-10-06T09:03:37.012-04:002012-10-06T09:03:37.012-04:00Hi Diego,
I am currently trying to use AndriodVie...Hi Diego,<br /><br />I am currently trying to use AndriodViewClient to configure Wi-Fi and Bluetooth settings. Seems the id/switchWidget is not unique for both. So i want to use Unique ID instead to find the switchWidget. Do we have something like findViewByUniqueId.<br /><br />Thanks for very useful blog.ProficientGrouphttps://www.blogger.com/profile/14304272094924140782noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-87852618324882664702012-08-02T15:57:09.124-04:002012-08-02T15:57:09.124-04:00You should ask the Google team to find out the ans...You should ask the Google team to find out the answer, they maintain monkeyrunner and chimpchat.<br /><br />Can you please give an example of what you would like to do with EasyMonkeyDevice from Java so perhaps I could give you an alternative approach?Diego Torres Milanohttps://www.blogger.com/profile/12030778501784140349noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-9765647152112272632012-07-31T19:24:00.894-04:002012-07-31T19:24:00.894-04:00Hi Diego,
Is there a chance of an EasyMonkeyDevic...Hi Diego,<br /><br />Is there a chance of an EasyMonkeyDevice port/integration with Chimpchat, so we can use the simple verification type methods EMD has directly within Java code? Otherwise, I guess the IChimpView class can be used, but since EMD already provides the interface ...<br /><br />Thanks for the informative and useful blogs btw.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-25456655.post-8861743521272783122012-07-03T15:48:30.432-04:002012-07-03T15:48:30.432-04:00Thanks for your fast answer. Today, I tried to wri...Thanks for your fast answer. Today, I tried to write a simple Chimpchap application to "touch" an icon on my Smartphone Screen. If I touch an app icon on my home screen, everything works fine. But for example in the appdrawer and the picture galery, it seems that a longpress is performed instead of an simple tap. I used the following method:<br />device.touch(x,y,TouchPressType.DOWN_AND_UP);<br /><br />and I also tried <br />device.touch(x,y,TouchPressType.DOWN);<br />device.touch(x,y;TouchPressType.UP);<br /><br />When I use the device.drag method, it seems to be the same problem: at first a long press and then a drag is performed. Is there any trick to avoid the long press in these situations? In the forum "Stackoverflow" somebody wrote that disabling the long press is a solution, but I don't have any idea how to do that. I hope you can help me again, many thanks in advance!Maxhttps://www.blogger.com/profile/15714850231355000811noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-1239648621054423192012-07-02T15:00:47.714-04:002012-07-02T15:00:47.714-04:00@Max,
Thanks for your comments. Both monkeyrunner ...@Max,<br />Thanks for your comments. Both monkeyrunner and chimpchat are SDK components and thus they are available in the sdk project: https://android.googlesource.com/platform/sdk/+/master/Diego Torres Milanohttps://www.blogger.com/profile/12030778501784140349noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-89462652742005963942012-07-02T13:42:49.360-04:002012-07-02T13:42:49.360-04:00Hi Diego, at first I want to thank you for your gr...Hi Diego, at first I want to thank you for your great blog. I'm new to Android Development and it was very helpful! In your post you said "I dug into the source code...". My question is: where can I find the source code of the Monkeyrunner or Chimpchap? I fear the answer is really obvious, but I've searched now for hours and couldn't find anything. Thanks in Advance!Maxhttps://www.blogger.com/profile/15714850231355000811noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-19501884649891846162012-05-18T09:55:44.338-04:002012-05-18T09:55:44.338-04:00EasyMonkeyDevice is part of monkeyrunner. You can ...EasyMonkeyDevice is part of monkeyrunner. You can access it by <b>from com.android.monkeyrunner.easy import EasyMonkeyDevice</b> in your monkeyrunner script.Diego Torres Milanohttps://www.blogger.com/profile/12030778501784140349noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-37048899838535990892012-05-18T02:05:09.728-04:002012-05-18T02:05:09.728-04:00@diego
Can i get the EasyMonkeyDevice class relat...@diego<br /><br />Can i get the EasyMonkeyDevice class related jar file for accessing the functionalities of itAnand Phttps://www.blogger.com/profile/08177124003172036634noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-24102277313581205162012-02-17T04:19:17.887-05:002012-02-17T04:19:17.887-05:00This is one of the user-friendly post.Thanks for s...This is one of the user-friendly post.Thanks for share with us.I like your blog tips.<br /><a href="http://www.android-app-development.com" rel="nofollow">Android app developers</a>Android app developmenthttps://www.blogger.com/profile/09663450300679743066noreply@blogger.com