0

I am very new to Robotium tool. I am facing issue for the execution of first test in Robotium. Please help

Step1: I created Android virtual device in using eclipse and ADT. Details: Android 5.1.1 - API level 22 CPU - ARM Virtual device created and launched successfully.

Step2: Then Installed application apk using command line details: adb install path-of-apk\XXX.apk

Step3 Created Android Test project. Imported Robotium SOLO jar as external library. Android.jar is under Android 5.1.1 Robotium jar is under Referenced libraries

Step4 Changed Target package to correct one captured from Hierarchical view

Step5 Created test class and tried to execute it using Android JUNIT

Error i am getting is [2015-12-12 01:22:50 - Robotium_Calc] Android Launch! [2015-12-12 01:22:50 - Robotium_Calc] adb is running normally. [2015-12-12 01:22:50 - Robotium_Calc] Could not find XXX.apk!

Update: I am using Windows OS and Java 1.7

Sorry. May be this question has been asked several times here but i could not find solution which solve my problem.

Please help.

Thanks in advance.

user3717841
  • 233
  • 3
  • 7

3 Answers3

0

it seems to be a problem with your Android configuration in Eclipse IDE. Try to solve by using solutions from: Android Eclipse - Could not find *.apk

I'm not already using Robotium, but please check also a configuration for your Robotium library. Read (if you haven't done yet) this great tutorial:

http://www.vogella.com/tutorials/Robotium/article.html

EDIT: if you still not have a problem fixed read these:

https://groups.google.com/forum/#!msg/phonegap/ok44ta96GZc/YrNH3BKKVjgJ

http://mobilemancer.com/2010/12/01/could-not-find-yourapp-apk/

http://azeemhassan.com/find-helloworld-apk/

Well, according to this site I can say that is a quite often problem with Eclipse bad configuration

Community
  • 1
  • 1
piotrek1543
  • 19,130
  • 7
  • 81
  • 94
0

Probably your .APK has not been generated inside /gen/bin/ folder, check first if your project doesn´t have any errors.

I you don´t have any errors just make a Refresh -> Build

Jorgesys
  • 124,308
  • 23
  • 334
  • 268
0

Thanks for your responses.

However i think i was facing the issue because there was incompatibility between eclipse, JDK and Android version i was using. Initial config : Eclipse Indigo, JDK1.7 and Android 5.1.1 - API level 22

I changed configuration to: Eclipse Luna, JDK 1.7 and Android 5.1.1 - API level 22

So updating Eclipse to Luna solved my issue.

user3717841
  • 233
  • 3
  • 7