Firebase测试实验室-如何在Robo Test中执行Facebook登录? [英] Firebase Test Lab - How to perform Facebook Login in Robo Test?

查看:133
本文介绍了Firebase测试实验室-如何在Robo Test中执行Facebook登录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Firebase测试实验室中使用Robo测试对我的应用进行测试,但是如果没有Facebook登录并且Firebase模拟器卡在了Facebook Web登录上,我的应用将无法启动.

I'm testing my app with Robo test in Firebase Test Lab but my app can not start without Facebook Login and the Firebase emulator stuck at the Facebook Web Login.

我试图记录"Espresso测试"并放入FB测试登录凭据,但是没有工作,因为它没有在Facebook登录WebView的TextView中记录字符.

I tried to record an "Espresso Test" and put my FB Test Login Credential but didn't work since it doesn't record the characters in the TextView in the Facebook Login WebView.

是否可以通过任何方法放置我的Facebook测试帐户凭据来继续在Firebase模拟器上进行测试?

Is there any method by which I can put my Facebook test account credential to continue the test on the Firebase emulators?

Firebase构建了良好的测试环境,这让我感到奇怪,但是他们无法将FB凭据用于测试. (顺便说一句,我无法删除Facebook登录名,因为该应用程序基于FB信息)

Seems strange to me that Firebase built a good test environment but they can't put your FB credential for a test. (BTW I can't remove the Facebook Login because the app is based on FB information)

推荐答案

可能最好的方法是学习如何使用UI Automator进入WebView来操纵其元素(由Android的可访问性API公开).这不是简单明了,但绝对可行.

Probably the best path to take is learning how to use UI Automator to reach into a WebView to manipulate its elements, exposed by Android's accessibility APIs. This is not straightforward, but definitely doable.

为以下项目编写测试登录到Facebook的android应用:UIAutomator无法在Facebook的用户名字段中填写文本

这篇关于Firebase测试实验室-如何在Robo Test中执行Facebook登录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆