2

I'm attempting to run Firebase's robo test for a react-native 0.52.0 phone app (android apk / no test script)... unfortunately the robo test doesn't get past the first page.

I've read that adding testID fields was required by other automation frameworks to discover components/buttons, so I tried using react-native-testid), but this had no effect. I've also read that resource-id should be used instead (but it's not currently supported by react-native?).

Does anyone know why Firebase can't "find" the navigation buttons?

Firebase - Known Issues

Robo test is only compatible with apps that use UI elements from the Android UI framework (including View and ViewGroup objects, but excluding WebView objects). If you use Robo test to exercise apps that use other UI frameworks, including apps that use the Unity game engine, the test may exit without exploring beyond the first screen.

(thanks @Phix)

... however I assume react-native would compile/package using "UI elements from the Android UI framework".

Other Notes

I'm hoping that a Firebase developer will see this and respond... ("Here at Firebase, we’re big React fans ... If you’re running into issues, open up a question on Stackoverflow, we monitor the Firebase tag closely")

Links

3
  • 1
    Just making sure you saw this part of the docs: If you use Robo test to exercise apps that use other UI frameworks, including apps that use the Unity game engine, the test may exit without exploring beyond the first screen.
    – Phix
    Jan 10, 2018 at 0:31
  • Interesting... no I hadn't (thanks)... however I assume react-native would compile/package using "UI elements from the Android UI framework"... :/ . Jan 10, 2018 at 0:36
  • 1
    I work on the Robo at Firebase. Thanks for doing the research and compiling informative links! Are you trying to specify login and password for Robo to get past the login screen? If so, From this link, it looks like we should make Robo use "contentDescription" (in addition to resource-id) to identify input text boxes. Could you try uiautomatorviewer, which comes part of Android SDK, on the screen with login/password input boxes and check if they have different "contentDescription". Thanks! Jan 13, 2018 at 21:08

1 Answer 1

1

Firebase Test Lab currently doesn't support anything but native apps that use native Android views and widgets (as you have seen in the documentation).

If you have a feature request, please file one.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.