Varun Gupta
Varun Gupta

Reputation: 3112

Specify test account details for Robo test in Firebase Test Lab

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?

Upvotes: 2

Views: 2413

Answers (2)

Wills
Wills

Reputation: 61

It takes the resourceId name without the id/ prefix

Upvotes: 0

Maik
Maik

Reputation: 3539

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.

Upvotes: 1

Related Questions