Closed YaroslavHavrylovych closed 6 years ago
Hi,
Can you share your failed run url with us, so we can help you debug it.
Did you check your desired capabilities. What may have happened is that they're set for the local execution. We shouldn't need to set these for device farm as it will do that on our behalf if that is the case. Let me know either way when you get the chance.
I used empty capabilities (as here):
DesiredCapabilities capabilities = new DesiredCapabilities();
driver = new AndroidDriver<MobileElement>("http://127.0.0.1:4723/wd/hub", capabilities);
and once tried with device set capabilities.setCapability("deviceName", "Android");
Is that what you're asking @jamesknowsbest ?
Sorry, @floorra but how can I share a url with you? I doubt you access a link even if I would post it here. Or maybe you meant something else?
@YaroslavHavrylovych yes, which device are you using? I want to try and reproduce the issue. Also @floorra I assume works for the device farm team or some derivative of. I believe they can use the GUIDs in the URL to look up the logs and see what the issues was.
Okay,
I cloned the and built the sample project using these commands:
git clone https://github.com/awslabs/aws-device-farm-sample-app-for-android.git
cd aws-device-farm-sample-app-for-android/
./gradlew cC
Then I build the sample project here using these commands:
git clone https://github.com/awslabs/aws-device-farm-appium-tests-for-sample-app.git
cd aws-device-farm-appium-tests-for-sample-app/
mvn clean package -DskipTests=true
Then I scheduled a run with appium 1.7.2 and the amazon file 2015
and I can reproduce the issue.
It looks like there is an issue with that device from the logs
Here is my URL
I parsed the logs and keep seeing this error from the logs:
2018-05-24T21:09:31.378895Z Failed to register system service "com.amazon.client.metrics.AndroidMetricsFactoryImpl". The class was not found for the provided classloader.
2018-05-24T21:09:39.225895Z Failed to register system service "com.amazon.client.metrics.AndroidMetricsFactoryImpl". The class was not found for the provided classloader.
I'm running the same test on the google pixel 7.1.2 to see if they work there.
Hi,
This is a known issue only with amazon fire 2015 device. We are working on fix for this issue. Please try other devices. You should be able to run your tests.
Thanks
can confirm, the test s work on a google pixel
I did pull the appium-tests-for-sample-app project, and generated zip-with-dependencies.zip (i.e. typed
mvn clean package -DskipTests=true
).I generated apk for sample-app and checked it worked on my device.
Add the apk to aws-farm, added tests as testng and run. Always same results: setup suite and teardown suite are done, the rest - failed. On the video from device farm I can see that the app didn't start at all. I tried even an empty test and same.
I can't find anything usefull in the logs.
Locally appium works fine. I had a lot of tests to run, but can't make it work in cloud.
I'm searching for the help or for any new idea (I spent the whole day on trying to run it).
Test results: