Git Product home page Git Product logo

Comments (17)

caseyburkhardt avatar caseyburkhardt commented on April 28, 2024 2

Thanks for the update @FennyR and @sunyal. Updated logs appreciated, and I'll start looking into repro'ing this today.

from accessibility-test-framework-for-android.

danAharoni2 avatar danAharoni2 commented on April 28, 2024 1

@caseyburkhardt
I'm getting the same error with v3.0 as well.

from accessibility-test-framework-for-android.

caseyburkhardt avatar caseyburkhardt commented on April 28, 2024 1

Thanks for bearing with us on this. We've revised our approach to packaging resources, which gets a bit complicated with a few of our internal release variants of the library. This should now be resolved with the latest push.

from accessibility-test-framework-for-android.

caseyburkhardt avatar caseyburkhardt commented on April 28, 2024

We've made a number of changes around string management and translation in our latest v3.1 release, which was just merged to master. Please sync the latest source and please let us know if you're still running into issues here.

from accessibility-test-framework-for-android.

AlexBeggs avatar AlexBeggs commented on April 28, 2024

This is also happening for me. I am unable to get this to work in the Robolectric environment.

from accessibility-test-framework-for-android.

AlexBeggs avatar AlexBeggs commented on April 28, 2024

Also happening in the androidTest Espresso tests

from accessibility-test-framework-for-android.

FennyR avatar FennyR commented on April 28, 2024

from accessibility-test-framework-for-android.

zakharchanka avatar zakharchanka commented on April 28, 2024

Hello. Any news?

from accessibility-test-framework-for-android.

ekimmel-ta avatar ekimmel-ta commented on April 28, 2024

I am still receiving this exception in 3.1. This is coming from a test using ParameterizedRobolectricTestRunner. If you would rather me open a new issue, let me know.

    java.util.MissingResourceException: Can't find bundle for base name .strings, locale en_US
        at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1581)
        at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1396)
        at java.util.ResourceBundle.getBundle(ResourceBundle.java:1308)
        at com.google.android.apps.common.testing.accessibility.framework.strings.StringManager.getResourceBundle(StringManager.java:63)
        at com.google.android.apps.common.testing.accessibility.framework.strings.StringManager.getString(StringManager.java:42)
        at com.google.android.apps.common.testing.accessibility.framework.checks.RedundantDescriptionCheck.checkForWords(RedundantDescriptionCheck.java:185)
        at com.google.android.apps.common.testing.accessibility.framework.checks.RedundantDescriptionCheck.runCheckOnHierarchy(RedundantDescriptionCheck.java:158)
        at com.google.android.apps.common.testing.accessibility.framework.AccessibilityViewHierarchyCheck.runDelegationCheckOnView(AccessibilityViewHierarchyCheck.java:101)
        at com.google.android.apps.common.testing.accessibility.framework.RedundantContentDescViewCheck.runCheckOnViewHierarchy(RedundantContentDescViewCheck.java:38)
        at com.google.android.apps.common.testing.accessibility.framework.integrations.espresso.AccessibilityValidator.runAccessibilityChecks(AccessibilityValidator.java:225)
        at com.google.android.apps.common.testing.accessibility.framework.integrations.espresso.AccessibilityValidator.checkAndReturnResults(AccessibilityValidator.java:87)
        at androidx.test.espresso.accessibility.AccessibilityChecks$2.check(AccessibilityChecks.java:65)

from accessibility-test-framework-for-android.

caseyburkhardt avatar caseyburkhardt commented on April 28, 2024

Reopening for some additional investigation, although we were unable to reproduce this when we were validating the 3.1 release candidate.

@ekimmel-ta Can you clarify if you're building the project from source, or from our Maven artifact? Any other information to help us reproduce this is appreciated.

from accessibility-test-framework-for-android.

ekimmel-ta avatar ekimmel-ta commented on April 28, 2024

This is pulling down the 3.1 maven artifact. I am using Espresso 3.3.0, and forcing the ATF resolution to be 3.1 while waiting for that team to merge the update officially.

I will work on reproducing the issue in a sample project.

from accessibility-test-framework-for-android.

ekimmel-ta avatar ekimmel-ta commented on April 28, 2024

Here is a minimal example showcasing the exception. https://github.com/ekimmel-ta/ATFSample

from accessibility-test-framework-for-android.

CooperCorona avatar CooperCorona commented on April 28, 2024

Hi ekimmel-ta,

Sorry for the delay. After much debugging, I think we've identified the issue. Gradle is not packaging files in the assets/ directory into unit tests. It packages them fine in the application process or Espresso tests. I think we can fix this by using the Java-style resources/ directory, instead. Working on the fix now; I'll update the issue when it's out, and we can see if that fixes your sample.

from accessibility-test-framework-for-android.

CooperCorona avatar CooperCorona commented on April 28, 2024

Hi ekimmel-ta,

We just pushed a new version to Maven. Can you try pulling 3.1.1 and see if it works?

from accessibility-test-framework-for-android.

ekimmel-ta avatar ekimmel-ta commented on April 28, 2024

Hello! I've pulled in the latest version.

Some behavior seems to have changed between v2 and v3 regarding the root view being tested for accessibility, even if it doesn't match the "suppressing result matcher". After marking some of the scaffolding of our test layout as not important for accessibility, the tests do indeed succeed! Thank you for the patch!

from accessibility-test-framework-for-android.

caseyburkhardt avatar caseyburkhardt commented on April 28, 2024

Some behavior changes are expected between versions of ATF, as we roll out new accessibility checks, fix bugs, and (hopefully) introduce fewer new bugs.

If you suspect the results you're receiving are not accurate, please do open a separate issue with a minimal repro example of your layout, and we'd be more than happy to take a look.

from accessibility-test-framework-for-android.

JadeByfield89 avatar JadeByfield89 commented on April 28, 2024

Hello, I'm still running into this issue on version 3.4.0 of the Espresso Accessibility testing library. Is there a fix for this issue, or should we be using a specific version?

from accessibility-test-framework-for-android.

Related Issues (20)

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.