zero tests to run and com.google.android.apps.chrome.Main does not exist

0

Hi,

I run tests on Web app mobile but I have this error : Activity class {com.android.chrome/com.google.android.apps.chrome.Main} does not exist. And 0 tests to run.

I'm using multiple combinaisons of params of Capabilities but no success. I'm using custom environment offers by default (the standard environment not working also) I'm using a simple test :

    DesiredCapabilities capabilities = new DesiredCapabilities();
    capabilities.setCapability(AUTOMATION_NAME, "UIAutomator2");
    driver = new AndroidDriver<>(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
    driver.manage().timeouts().implicitlyWait(60, SECONDS);
    driver.get("https://mywebsite.com");

Have you a simple example for testing Appium Web Java JUnit with DesiredCapabilities to include and the custom file yaml that work fine ?

Thank you

질문됨 일 년 전310회 조회
1개 답변
0

Hello,

This is Tom from AWS Support.

I see that we would like to use Appium Junit with Appium Desired Capabilities.

Device Farm supports the use of Desired Capabilities through custom test environments setup. Please note that, according to Device Farm documentation shown here [1], Appium capabilities must be a shell-escaped, quoted JSON structure.

For more information about setting up custom test environment and sample YAML specifications, please refer to this page [2]. Please note that the example shown here is for TestNG suite, but the syntax shall be similar to JUnit test.

This guide [3] shows step-by-step guide in how to create and build Appium test for Device Farm. For sample code solutions, here are the GitHub repository for both Android [4] and iOS [5].

I hope the above resources are helpful for developing Appium test. Have a nice day.

Links and References

[1] https://docs.aws.amazon.com/devicefarm/latest/developerguide/custom-test-environments-extending.html#w12aac28c19b7

[2] https://docs.aws.amazon.com/devicefarm/latest/developerguide/custom-test-environments.html#custom-test-environment-example

[3] https://docs.aws.amazon.com/devicefarm/latest/developerguide/test-types-appium.html

[4] https://github.com/aws-samples/aws-device-farm-sample-app-for-android

[5] https://github.com/aws-samples/aws-device-farm-sample-app-for-ios

AWS
지원 엔지니어
Tom_T
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠