We have developed the testproject via eclipse in our Macbook (local). We can run it successfully, both headless and with GUI. However, when we try to run it on Linux Ubuntu server via Jenkins, we face problems below:
[android] Searching for Android projects...
[android] Found 1 projects to create build files for.
[android] Searching for Android projects...
[android] Project file 'TestBlackBox/project.properties' requires platform 'android-10'
[android] Ensuring platform(s) are installed: [android-10]
$ /var/lib/jenkins/tools/android-sdk/tools/android list target
[android] No related app project found; cannot create build files for test project at '/var/lib/jenkins/jobs/Android/workspace/TestBlackBox'.
Running the script test using shell is failed.
+ adb shell am instrument -w http://ift.tt/16lrR4Y
INSTRUMENTATION_STATUS: id=ActivityManagerService
INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for: ComponentInfo{http://ift.tt/16lrR4Y}
INSTRUMENTATION_STATUS_CODE: -1
android.util.AndroidException: INSTRUMENTATION_FAILED: http://ift.tt/16lrR4Y
How to solve this problem in order to make the script run successfully?
Thanks!
Aucun commentaire:
Enregistrer un commentaire