Open cloudtestsoftware opened 8 years ago
Hi
This looks to be PermGen space issue . Are you able to install and build other plugins. Also in the screenshot you have pasted, the "Application" textbox contains a .zip file which is incorrect. Application file should be an apk (for Android) or ipa (for IOS).
Meanwhile there are two other ways to install the aws-device-farm plugin. I suggest trying these out.
1) Download the latest plugin from http://updates.jenkins-ci.org/latest/aws-device-farm.hpi 2) Upload plugin using the below path Jenkins UI -> Manage Jenkins -> Manage Plugins - > Advanced Tab - > Upload plugin
OR Jenkins UI -> Manage Jenkins -> Manage Plugins - > Available Tab Search for aws-device-farm in the search button on top right. You will be able to see the device farm plugin and install it
Hi @cloudtestsoftware, have you tried @anurag1408's suggestions?
I installed the latest plugin. Can you give me URL to your trial device farm sample program to try out. I will use your program and see whether it works in my env. I have 2 scenario to try out 1) Hybrid web app which includes Native App + Web View 2) Only web view browser based application with HTML 5 (no native app)
Please point me to the repo with example code for each of these above scenario and how to configure using AWS Device Farm Jenkins including build and run. I will just point to your repo and run using Jenkin first to see if works for me. If I can run your program successfully then I will try with something new.
The sample app that we've published is at https://github.com/awslabs/aws-device-farm-sample-app-for-android. Let us know what you find.
Hi,
I tried again and it wont work. I used the sample project located at
https://github.com/suwa-yuki/DeviceFarmSampleForWebApp
My Jenkins steps are as follows
1) I will run a parametrized build which will compile my TestNg classes which has selenium test script for our responsive HTML5 application which should be tested in Android and iphone devices. The build will create a zip file consists of all runtime jar with XML configuration and data
2) The post build action should use AWS Device Farm plugin in Jenkins and upload the ZIP file to AWS Device Farm for test
3) The tests should be executed and report and logs should be transfer from the Device Farms to my location in the Jenkins server.
Please let me know how I can achieve this goal with some sample program and configuration steps in the jenkins to test that this process works.
[INFO] Reading assembly descriptor: src/main/assembly/zip.xml [INFO] Building zip: C:\automation\workspace\QVCMobile\target\zip-with-dependencies.zip [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:34 min [INFO] Finished at: 2016-01-13T22:04:21+00:00 [INFO] Final Memory: 26M/63M [INFO] ------------------------------------------------------------------------ Waiting for Jenkins to finish collecting data [JENKINS] Archiving C:\automation\workspace\QVCMobile\pom.xml to com.amazon.aws.adf.referenceapp.appium.test/Referenceapp-Appium-Test/1.0-SNAPSHOT/Referenceapp-Appium-Test-1.0-SNAPSHOT.pom [JENKINS] Archiving C:\automation\workspace\QVCMobile\target\Referenceapp-Appium-Test-1.0-SNAPSHOT.jar to com.amazon.aws.adf.referenceapp.appium.test/Referenceapp-Appium-Test/1.0-SNAPSHOT/Referenceapp-Appium-Test-1.0-SNAPSHOT.jar [JENKINS] Archiving C:\automation\workspace\QVCMobile\target\Referenceapp-Appium-Test-1.0-SNAPSHOT-tests.jar to com.amazon.aws.adf.referenceapp.appium.test/Referenceapp-Appium-Test/1.0-SNAPSHOT/Referenceapp-Appium-Test-1.0-SNAPSHOT-tests.jar [JENKINS] Archiving C:\automation\workspace\QVCMobile\target\zip-with-dependencies.zip to com.amazon.aws.adf.referenceapp.appium.test/Referenceapp-Appium-Test/1.0-SNAPSHOT/Referenceapp-Appium-Test-1.0-SNAPSHOT.zip channel stopped [AWSDeviceFarm] Using Project 'CloudTest' [AWSDeviceFarm] Using DevicePool 'Top Devices' [AWSDeviceFarm] Using App '**/target/zip-with-dependencies.zip' [AWSDeviceFarm] Archiving artifact 'zip-with-dependencies.zip' [AWSDeviceFarm] Uploading zip-with-dependencies.zip to S3 [AWSDeviceFarm] Waiting for upload zip-with-dependencies.zip to be ready (current status: INITIALIZED) [AWSDeviceFarm] Upload zip-with-dependencies.zip failed! Build step 'Run Tests on AWS Device Farm' marked build as failure Finished: FAILURE
I'm not familiar with the sample you're using but looks like it failed because it tried to upload your tests, not your app, to Device Farm. Please ensure you're uploading the built APK.
@cloudtestsoftware Did you get the solution?. Otherwise read below
Actually you are configuring wrongly. For "Application" field you need to specify path to apk file Ex : app/build/output/app-debug.apk
And for "Tests" field you need to specify **/targe/zip-with-dependencies.zip
@SanyasiraoM: that is really a very insightful information. It solved my problem.. Thanks.
Hi,
I clone this project and try to run using Jenkins with below settings attached file. I got fatal error. Below is the log message
at 137.5 KB/sec) [INFO] Reading assembly descriptor: src/main/assembly/zip.xml [INFO] Building zip: C:\automation\workspace\AndroidTest\target\zip-with-dependencies.zip [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 57.281 s [INFO] Finished at: 2015-10-28T06:41:50+00:00 [INFO] Final Memory: 26M/63M [INFO] ------------------------------------------------------------------------ Waiting for Jenkins to finish collecting data [JENKINS] Archiving C:\automation\workspace\AndroidTest\pom.xml to com.amazon.aws.adf.referenceapp.appium.test/Referenceapp-Appium-Test/1.0-SNAPSHOT/Referenceapp-Appium-Test-1.0-SNAPSHOT.pom [JENKINS] Archiving C:\automation\workspace\AndroidTest\target\Referenceapp-Appium-Test-1.0-SNAPSHOT.jar to com.amazon.aws.adf.referenceapp.appium.test/Referenceapp-Appium-Test/1.0-SNAPSHOT/Referenceapp-Appium-Test-1.0-SNAPSHOT.jar [JENKINS] Archiving C:\automation\workspace\AndroidTest\target\Referenceapp-Appium-Test-1.0-SNAPSHOT-tests.jar to com.amazon.aws.adf.referenceapp.appium.test/Referenceapp-Appium-Test/1.0-SNAPSHOT/Referenceapp-Appium-Test-1.0-SNAPSHOT-tests.jar [JENKINS] Archiving C:\automation\workspace\AndroidTest\target\zip-with-dependencies.zip to com.amazon.aws.adf.referenceapp.appium.test/Referenceapp-Appium-Test/1.0-SNAPSHOT/Referenceapp-Appium-Test-1.0-SNAPSHOT.zip channel stopped FATAL: PermGen space FATAL: PermGen space Finished: SUCCESS![screen shot 2015-11-29 at 10 50 31 pm](https://cloud.githubusercontent.com/assets/15186575/11465253/f8ec88b4-96eb-11e5-8279-56e59e838c34.png)