Coder Social home page Coder Social logo

Comments (9)

floorra avatar floorra commented on July 27, 2024

Hi,

Can you share your failed run url with us, so we can help you debug it.

from aws-device-farm-appium-tests-for-sample-app.

jamesknowsbest avatar jamesknowsbest commented on July 27, 2024

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.

from aws-device-farm-appium-tests-for-sample-app.

YaroslavHavrylovych avatar YaroslavHavrylovych commented on July 27, 2024

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 ?

from aws-device-farm-appium-tests-for-sample-app.

YaroslavHavrylovych avatar YaroslavHavrylovych commented on July 27, 2024

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?

from aws-device-farm-appium-tests-for-sample-app.

jamesknowsbest avatar jamesknowsbest commented on July 27, 2024

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

from aws-device-farm-appium-tests-for-sample-app.

YaroslavHavrylovych avatar YaroslavHavrylovych commented on July 27, 2024

So device is "amazon fire 2015".

The simplest test link is here.

Thanks for your time.

from aws-device-farm-appium-tests-for-sample-app.

jamesknowsbest avatar jamesknowsbest commented on July 27, 2024

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
image

image

image

and I can reproduce the issue.

image

It looks like there is an issue with that device from the logs

image

Here is my URL

https://us-west-2.console.aws.amazon.com/devicefarm/home?region=us-east-1#/projects/3141c0a7-8f38-4099-a679-00e7a9a5e46c/runs/d1111cb3-9549-4343-96fd-585f068beb95/jobs/00000/suites/00001

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.

from aws-device-farm-appium-tests-for-sample-app.

floorra avatar floorra commented on July 27, 2024

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

from aws-device-farm-appium-tests-for-sample-app.

jamesknowsbest avatar jamesknowsbest commented on July 27, 2024

can confirm, the test s work on a google pixel

image

from aws-device-farm-appium-tests-for-sample-app.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.