1

I am trying to run a Robo test in Firebase Test Lab. I want to specify a login username for the app. The app is built using React Native. Below is the login screen for the app

App login screen

The app is built using react-native. I found the resource name for the User Name text input field using Layout Inspector in Android Studio. Below is a screen of the Layout Inspector for the above screen.

Layout Inspector Screenshot

The mID for the text input field is specified as id/0xF. I specified this as the username resource in the test account details and specified a valid value in the value field as shown below

Test account details in Test Lab

When I ran the test, the username was not specified and hence the test never went past this screen.

How do I specify the username in the Test Lab such that the test can go past this screen and test the actual app?

Varun Gupta
  • 2,870
  • 6
  • 33
  • 73
  • I believe resources for Robo need to be specified as the strings they are assigned when you define them in XML layouts (when writing native Android apps). It may be the case that React naive doesn't work well with this scheme since it's not use a resource name, but rather assigning a numeric hex value. – Doug Stevenson Jun 30 '17 at 06:46
  • @DougStevenson Thanks for the insight. Is there a way forum where I can request for adding such support for apps created using react-native within Firebase Test Lab. – Varun Gupta Jun 30 '17 at 09:06
  • https://firebase.google.com/support/contact/bugs-features/ – Doug Stevenson Jun 30 '17 at 14:25

2 Answers2

0

The issue is that Test Lab currently can only crawl "native" user interfaces, i.e. built with the Android UI framework.

A feature request for React (and other web-based UIs) exists already, but you can definitely let the team know that you are looking for support for this.

The Test Lab team can also be contacted via the Firebase Community Slack channel #test-lab.

Maik
  • 3,419
  • 1
  • 23
  • 34
0

It takes the resourceId name without the id/ prefix

Wills
  • 61
  • 4