tag:blogger.com,1999:blog-25456655.post4913337035449650702..comments2024-02-09T11:53:32.369-05:00Comments on Diego Torres Milano's blog: Using Android monkeyrunner to automate test stepsDiego Torres Milanohttp://www.blogger.com/profile/12030778501784140349noreply@blogger.comBlogger15125tag:blogger.com,1999:blog-25456655.post-36215350000365905122013-03-07T03:34:39.675-05:002013-03-07T03:34:39.675-05:00I want clear example for monkey runner including m...I want clear example for monkey runner including mainapplication test application and monkey runner scripting.<br /><a href="http://www.palmbeachvendingmachines.com/" rel="nofollow">Palm Beach Vending Machine</a>Palm Beach Vending Machinehttps://www.blogger.com/profile/11437997383193578001noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-84094624536697815162012-05-24T11:42:02.292-04:002012-05-24T11:42:02.292-04:00It seems you haven't followed the steps descri...It seems you haven't followed the steps described in <a href="http://dtmilano.blogspot.com/2012/03/eclipse-working-monkeyrunner.html" rel="nofollow">Eclipse: working monkeyrunner configuration</a>. Pay special attention to the <b>Interpreter</b> tab.Diego Torres Milanohttps://www.blogger.com/profile/12030778501784140349noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-64100342979228946562012-05-24T05:03:50.252-04:002012-05-24T05:03:50.252-04:00Ok..here is my basic question..do we have to creat...Ok..here is my basic question..do we have to create a new python project to run monkeyrunner or an android project and add this ..py as an external code jus da way i do it in phonegap..??<br /><br>because what i am doing currently is creating a new python project in eclipse ubuntu and trying to run the above code..and that is where i get an erroe importing packages<b>om.android.monkeyrunner import MonkeyRunner, MonkeyDevice;</b> now where i think i am going wrong is connecting android and python scriptAmeyhttps://www.blogger.com/profile/10003989327307821418noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-60444742808815059912012-05-23T11:01:22.262-04:002012-05-23T11:01:22.262-04:00If you don't tell the error it's very diff...If you don't tell the error it's very difficult to help you. However, I'll guess that your problem is that you're not using <b>monkeyrunner</b> as the interpreter of the script and you are using python or jython instead.Diego Torres Milanohttps://www.blogger.com/profile/12030778501784140349noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-65879849377421518252012-05-23T06:16:48.654-04:002012-05-23T06:16:48.654-04:00well hello every one
i am trying to run a sample p...well hello every one<br><br />i am trying to run a sample python script using eclipse..my python and jython paths set and tested..<br />but whne i try importing <b>com.android.monkeyrunner import MonkeyRunner, MonkeyDevice;</b><br /> i am getting an error ..what i underrstand by this is the connection between android and python program is not available..how should i get across this scenarioAmeyhttps://www.blogger.com/profile/10003989327307821418noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-3241896333338975232012-02-28T00:26:11.771-05:002012-02-28T00:26:11.771-05:00reddy naku me number dorkthundha plz naku monkeyru...reddy naku me number dorkthundha plz naku monkeyrunner gurinchi help kavalitejuhttps://www.blogger.com/profile/10967681175403616219noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-42684777361698612062012-02-28T00:24:01.054-05:002012-02-28T00:24:01.054-05:00am fresher am working on monkeyrunner tool am not ...am fresher am working on monkeyrunner tool am not getting anythng about monkey runner tool<br />plz i want about monkeyrunnner how to import modules and how to add plugins i.e alrdy created android junit class filetejuhttps://www.blogger.com/profile/10967681175403616219noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-35118716403523189302012-02-28T00:21:19.111-05:002012-02-28T00:21:19.111-05:00i want clear example for monkey runner including m...i want clear example for monkey runner including mainapplication test application and monkey runner scripting .how to import test cases class file i mean how to plugin the test class to monkey runner .plz send me the solution wth clear stepstejuhttps://www.blogger.com/profile/10967681175403616219noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-54461829214451470362011-09-15T13:19:02.934-04:002011-09-15T13:19:02.934-04:00I think I just answered my own question. I just b...I think I just answered my own question. I just browsed the source code and when starting an activity they use this JythonUtils class to translate the objects in the intent to java objects. However, they use a map that only translates PyObjects to Strings, Doubles, and Integers... I hope they change this soon.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-25456655.post-4579259419702567032011-09-15T12:42:43.783-04:002011-09-15T12:42:43.783-04:00Hello Diego,
I have been trying to start an activ...Hello Diego,<br /><br />I have been trying to start an activity and pass a parcelable to that activity from python via the extras param in device.startActivity(). Here's what the code looks like.<br /><br /> user = FbUser() <br /> extraDic = {} <br /> extraDic['userName'] = 'Test' <br /> extraDic['userId'] = 'me' <br /> extraDic['userInfo'] = user <br /> d.startActivity(extras=extraDic, component=runComponent + <br />postActivity) <br /><br />FbUser is the object in my java project that implements Parcelable. The bin of the project has been properly added to the sys.path in the Jython Monkeyrunner script. When I debug the script, it creates the FbUser object correctly, however, when I print out the extras in LogCat, the 'userInfo' extra is missing but the simple string extras are present... Do you know why this might be?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-25456655.post-79299689383802492011-07-30T15:14:15.688-04:002011-07-30T15:14:15.688-04:00can we write asserts using monkey runner for funct...can we write asserts using monkey runner for functional testing?Anonymoushttps://www.blogger.com/profile/00526415556060315695noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-47844638059354490152011-07-27T01:33:39.113-04:002011-07-27T01:33:39.113-04:00Yes, you can interact with more than one activity ...Yes, you can interact with more than one activity at a time.<br />For example you can invoke <i>startActivity(component="com.android.settings/.Settings")</i>, interact with this activity, press HOME or BACK, <i>startActivity(component="...MyApp")</i> and interact.Diego Torres Milanohttps://www.blogger.com/profile/12030778501784140349noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-16017081496861099212011-07-24T12:37:25.439-04:002011-07-24T12:37:25.439-04:00Can we interact with 2 apps with the monkeyrnner.?...Can we interact with 2 apps with the monkeyrnner.?<br />Example: I want to be test wiht offlinemode.so that i need to turnoff-wifi connection in settings.apk file..<br />so that i need to interact settings.apk and Myapp.apk<br />can we test with 2 apps?Anonymoushttps://www.blogger.com/profile/00526415556060315695noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-82864347004293206192011-07-24T12:34:10.279-04:002011-07-24T12:34:10.279-04:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/00526415556060315695noreply@blogger.comtag:blogger.com,1999:blog-25456655.post-45542202166843911252011-07-04T03:25:33.636-04:002011-07-04T03:25:33.636-04:00i wonder how much i can test my project on emulato...i wonder how much i can test my project on emulator with monkeyruner. can i automatise all testing process? for example can i test login screen for both successful and failed cases. does it give error if i left empty input box or enter wrong type of input? thanksermedianhttps://www.blogger.com/profile/02296125775986377099noreply@blogger.com