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

Community
  • 1
  • 1
Nick Grealy
  • 24,216
  • 9
  • 104
  • 119
  • 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 '18 at 00:31
  • Interesting... no I hadn't (thanks)... however I assume react-native would compile/package using "UI elements from the Android UI framework"... :/ . – Nick Grealy Jan 10 '18 at 00: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](https://github.com/facebook/react-native/issues/9777), 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! – Saswat Anand Jan 13 '18 at 21:08

1 Answers1

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.

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441