Mobile QA Zone

A Mobile Application Testing Community

Facing Problem while testing APK using Robotium


Hi,

I have created project in Eclipse to test an APK which is already installed in Emulator.

1. I could run my test successfully when I create a test project for an application which I have source code.

2. I have already unsigned the application APK and then installed it on emulator.

Please help me resolve this issue.

Screenshot:

Views: 425

Comment

You need to be a member of Mobile QA Zone to add comments!

Join Mobile QA Zone

Comment by Divya on June 22, 2012 at 12:31pm

I did some r&D on this , so as per me your launcher activity string is wrong 

Just check and update me soon 

Comment by Divya on June 21, 2012 at 10:48am

Hey Parag,

I tried to predict all the situation to find out this bug, well without checking your code I cant tell you.  My suggestion is u take sample apk's from robotium site . Follow their steps. If it works then follow the same in your app. 

Even your apk's are confidential , so u cant send and I cant check signing errors .

regards,

Divya

Comment by Parag Kulkarni on June 20, 2012 at 5:34pm

Hi Divya,

If I install application APK signed by my key, it does not open on Emulator even manually.

Can you please help?

Comment by Divya on June 14, 2012 at 4:10pm

My xml file

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.robotiumandroid"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">

<uses-library android:name="android.test.runner" />
</application>
<uses-sdk android:minSdkVersion="8" />
<instrumentation android:targetPackage="com.junkjunk" android:name="android.test.InstrumentationTestRunner" />
</manifest>

Comment by Parag Kulkarni on June 14, 2012 at 3:50pm

And this is my manifest:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.pocketgems.android.tapzoo.test"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk android:minSdkVersion="5" />

<instrumentation
android:name="android.test.InstrumentationTestRunner"
android:targetPackage="com.pocketgems.android.tapzoo" />

<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<uses-library android:name="android.test.runner" />
</application>

</manifest>

Comment by Parag Kulkarni on June 14, 2012 at 3:49pm

Hi,

I have unsigned and signed both the APKs again.

Below is output of verification of both APKs:

Application APK:


123223 Thu Jun 14 15:37:24 IST 2012 META-INF/MANIFEST.MF
123344 Thu Jun 14 15:38:48 IST 2012 META-INF/DONATE_K.SF
918 Thu Jun 14 15:38:48 IST 2012 META-INF/DONATE_K.RSA
123344 Thu Jun 14 15:37:24 IST 2012 META-INF/ANDROIDD.SF
776 Thu Jun 14 15:37:24 IST 2012 META-INF/ANDROIDD.RSA
sm 38523 Thu Jun 14 15:37:20 IST 2012 assets/Achievements/CompletionImages/Girl_animals.png

X.509, CN=ParagKulkarni, OU=Unknown, O=Unknown, L=Pune, ST=MH, C=91
[certificate is valid from 13/6/12 6:33 PM to 17/3/67 6:33 PM]

X.509, CN=Android Debug, O=Android, C=US
[certificate is valid from 26/3/12 5:08 PM to 19/3/42 5:08 PM]

Test APK:

2075 Thu Jun 14 15:36:42 IST 2012 META-INF/MANIFEST.MF
2196 Thu Jun 14 15:39:04 IST 2012 META-INF/DONATE_K.SF
918 Thu Jun 14 15:39:04 IST 2012 META-INF/DONATE_K.RSA
2196 Thu Jun 14 15:36:42 IST 2012 META-INF/ANDROIDD.SF
776 Thu Jun 14 15:36:42 IST 2012 META-INF/ANDROIDD.RSA
sm 640 Thu Jun 14 15:36:40 IST 2012 res/layout/main.xml

X.509, CN=ParagKulkarni, OU=Unknown, O=Unknown, L=Pune, ST=MH, C=91
[certificate is valid from 13/6/12 6:33 PM to 17/3/67 6:33 PM]

X.509, CN=Android Debug, O=Android, C=US
[certificate is valid from 26/3/12 5:08 PM to 19/3/42 5:08 PM]

sm 1408 Thu Jun 14 15:36:42 IST 2012 AndroidManifest.xml

X.509, CN=ParagKulkarni, OU=Unknown, O=Unknown, L=Pune, ST=MH, C=91
[certificate is valid from 13/6/12 6:33 PM to 17/3/67 6:33 PM]

X.509, CN=Android Debug, O=Android, C=US
[certificate is valid from 26/3/12 5:08 PM to 19/3/42 5:08 PM]

Comment by Parag Kulkarni on June 14, 2012 at 3:12pm

The test package name is:

com.pocketgems.android.tapzoo.test

Comment by Parag Kulkarni on June 14, 2012 at 3:08pm

Also, when I install apk signed by my own key or an unsigned apk, I am not able to start the application even manually on the emulator.

Please suggest.

Comment by Parag Kulkarni on June 14, 2012 at 2:48pm

Hi Divya,

As the application APK is client property it is difficult for me to share. Can you please help me out by some other way?

Comment by Divya on June 14, 2012 at 10:06am

unsign both your apk's and send it to me

© 2014   Created by Anurag Khode.

Badges  |  Report an Issue  |  Terms of Service

Welcome to Mobile QA Zone, a Next Generation Software Testing Community.Invite your friends to join this community.Write to us to become a featured member.