tag:blogger.com,1999:blog-8214401912480503366.post3257953271683100283..comments2023-08-10T13:35:15.093+02:00Comments on My life with Android :-): Instrumentation and JUnitGabor Pallerhttp://www.blogger.com/profile/14307475522972458932noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-8214401912480503366.post-4106586559430562072014-05-04T22:16:57.243+02:002014-05-04T22:16:57.243+02:00Anonymous, the application has to be installed fir...Anonymous, the application has to be installed first. What I did (in Eclipse) is that I exported the application APK (Export/Export Android application) then I installed it from the command prompt (adb install Calculator.apk). Then I could run the command in the post. Take care, it is not "... -w aexp.calculator.tests/android.test.InstrumentationTestRunner", just "... -w aexp.calculator/android.test.InstrumentationTestRunner"Gabor Pallerhttps://www.blogger.com/profile/02390936870056951146noreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-86921887178749171402014-04-30T15:21:40.446+02:002014-04-30T15:21:40.446+02:00Hi I have download your code and run it using comm...Hi I have download your code and run it using command<br />><br />adb shell am instrument -w aexp.calculator.tests/android.test.InstrumentationTestRunner<br /><br />Getting error<br />INSTRUMENTATION_STATUS: id=ActivityManagerService<br />INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for: Component<br />Info{aexp.calculator.tests/android.test.InstrumentationTestRunner}<br />INSTRUMENTATION_STATUS_CODE: -1<br />android.util.AndroidException: INSTRUMENTATION_FAILED: aexp.calculator.tests/and<br />roid.test.InstrumentationTestRunner<br />at com.android.commands.am.Am.runInstrument(Am.java:616)<br />at com.android.commands.am.Am.run(Am.java:118)<br />at com.android.commands.am.Am.main(Am.java:81)<br />at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)<br />at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:235)<br />at dalvik.system.NativeStart.main(Native Method)<br /><br />Is there any setting done in Eclipse?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-14660773140264548992011-09-22T15:32:12.111+02:002011-09-22T15:32:12.111+02:00Hello,
I am new to this area and would really app...Hello,<br /><br />I am new to this area and would really appreciate if someone could point me in the right direction. I am using the selenium driver on Android ( AndroidDriver ). The way I understand that it works is there is a server component that runs on jetty. When I deploy my androidjunit test through Eclipse, Eclipse takes care of transferring the .apk file onto the device and tests the AndroidDriver on the device. So I have actually got the test case mentioned in this link http://code.google.com/p/selenium/wiki/AndroidDriver working. What I want to know is, Is there a way that I could deploy this testcase as an application on the phone. So whenever a user wants to test the selenium WebDriver application, all he needs to do is start an application on the phone that will launch the test case for him.<br /><br />One idea we could think of was to do that from a web page. We open a Web browser on the phone, we go to a web page where there is a link to the client runtime application and maybe with a bit of Javascript, it downloads the app and puts it in Jetty.<br /><br />Any help is deeply appreciated.<br /><br />Thanksveenahttps://www.blogger.com/profile/12730139005134669727noreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-4618012066791304872011-09-22T15:31:26.577+02:002011-09-22T15:31:26.577+02:00Hello,
I am new to this area and would really app...Hello,<br /><br />I am new to this area and would really appreciate if someone could point me in the right direction. I am using the selenium driver on Android ( AndroidDriver ). The way I understand that it works is there is a server component that runs on jetty. When I deploy my androidjunit test through Eclipse, Eclipse takes care of transferring the .apk file onto the device and tests the AndroidDriver on the device. So I have actually got the test case mentioned in this link http://code.google.com/p/selenium/wiki/AndroidDriver working. What I want to know is, Is there a way that I could deploy this testcase as an application on the phone. So whenever a user wants to test the selenium WebDriver application, all he needs to do is start an application on the phone that will launch the test case for him.<br /><br />One idea we could think of was to do that from a web page. We open a Web browser on the phone, we go to a web page where there is a link to the client runtime application and maybe with a bit of Javascript, it downloads the app and puts it in Jetty.<br /><br />Any help is deeply appreciated.<br /><br />Thanksveenahttps://www.blogger.com/profile/12730139005134669727noreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-59063314726062957782010-09-07T12:48:07.190+02:002010-09-07T12:48:07.190+02:00$ adb shell am instrument -w aexp.calculator/andro...$ adb shell am instrument -w aexp.calculator/android.test.InstrumentationTestRunner<br />INSTRUMENTATION_STATUS: id=ActivityManagerService <br />android.util.AndroidException: INSTRUMENTATION_FAILED: aexp.calculator/android.test.InstrumentationTestRunnerINSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for: ComponentInfo{aexp.calculator/android.test.InstrumentationTestRunner}<br />INSTRUMENTATION_STATUS_CODE: -1Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-25962863871707339242010-05-17T16:07:15.602+02:002010-05-17T16:07:15.602+02:00ActivityInstrumentationTestCase has been deprecate...ActivityInstrumentationTestCase has been deprecated.<br /><br />ActivityInsutrmentationTestCase2 has replaced it.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-2356953182678042662009-01-22T08:07:00.000+01:002009-01-22T08:07:00.000+01:00Hi Gabor,See the resulst your totally having 4 tes...Hi Gabor,<BR/><BR/>See the resulst your totally having 4 tests 2 from Addtes and 2 from Subtest. But the result showing totally 6 tests executed successfully.. So tell me wht its showing 6.. and If I use something in Setup and tearDown its also get executing 6 times....<BR/><BR/>One test excuting twice...<BR/><BR/>So please chieck it....Unknownhttps://www.blogger.com/profile/11556508942976051121noreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-74318702719548377962009-01-13T14:22:00.000+01:002009-01-13T14:22:00.000+01:00Hi,I have tried to execute your code...But can you...Hi,<BR/><BR/>I have tried to execute your code...<BR/><BR/>But can you tell me what is that bild.xml file<BR/><BR/>for what we are using that...<BR/><BR/>You didn't mentioned anyting about that.....Anonymoushttps://www.blogger.com/profile/16619109642581720887noreply@blogger.comtag:blogger.com,1999:blog-8214401912480503366.post-19599204447322479372008-12-22T09:24:00.000+01:002008-12-22T09:24:00.000+01:00I cannot download your example code:( Is it the s...I cannot download your example code:( Is it the same as android_sourcecode\packages\apps\Calculator\tests ?Anonymousnoreply@blogger.com