I am trying to integrate Android JUnit tests with our Bamboo Ant builds. I have already tested the installation locally and I can run the tests.
But when I tried the same setup on our Bamboo server, when I run the tests, I get the following error:
INSTRUMENTATION_STATUS: id=ActivityManagerService INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for: ComponentInfo{com.synapticstuff.guitartabs/pl.polidea.instrumentation.PolideaInstrumentationTestRunner} INSTRUMENTATION_STATUS_CODE: -1 android.util.AndroidException: INSTRUMENTATION_FAILED: com.synapticstuff.guitartabs/pl.polidea.instrumentation.PolideaInstrumentationTestRunner
Please note that I used a special library for Instrumentation ( http://code.google.com/p/the-missing-android-xml-junit-test-runner/ ) so that I can pull out the JUNit xml test results and submit it to the bamboo.
In addition, the assembly agent used to create the assembly is the Ubuntu virtual machine, which does not have a graphical interface, so I need to do everything through the command line. AVD is already running on this virtual machine.
I ran into the same problem when I first ran the adb shell am instrument .. <snip> locally, and it seemed strange to me that it worked after running the test from Eclipse.
By raising the error log, the Android Instrumentation Framework tells me that
"It is possible that the apk device is not installed on your device or the package name is incorrect in the manifest file."
therefore, it must be established that the hardware apk is not installed.
So, how do I install the apk hardware on AVD?
Thanks!
source share