Search code examples
androideclipserobotiumandroid-testingui-testing

Robotium: Could not find XXX.apk


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.


Solution

  • 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.