RoboScript无法在Firebase Testlab中单击“启用位置确定"按钮 [英] RoboScript not able click Enable Location OK button in Firebase Testlab

查看:69
本文介绍了RoboScript无法在Firebase Testlab中单击“启用位置确定"按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Firebase TestLab上使用RoboScript测试基于Google Map的Android应用.默认情况下,TestLab设备上的位置是禁用的.要启用它们,我们需要模拟在系统提示上单击确定"按钮.但是这种点击永远不会发生.您可以在下面看到屏幕截图.永远不会按下确定"按钮,并且流程在此处停止.

I am trying to test an Google Map based Android app using RoboScript on Firebase TestLab. By default location is disabled on TestLab devices. To enable them we need to simulate a click on OK button on the system prompt. But this click never happens. You can see the screenshot below. The OK button never gets pressed and flow stops here.

我检查了RoboScript json文件.Android Studio从未记录过确定"按钮的单击.我试图创建另一个如下所示的元素.但是无法确定系统对话框的resourceId应该是什么.

I checked the RoboScript json file. Android studio never recorded the OK button click. I tried to create another element like below. But couldn't identify what should be the resourceId for the system dialog.

    {
        "eventType": "VIEW_CLICKED",
        "timestamp": 1512127956674,
        "replacementText": "",
        "actionCode": -1,
        "delayTime": 0,
        "canScrollTo": false,
        "elementDescriptors": [
          {
            "className": "android.widget.LinearLayout",
            "recyclerViewChildPosition": -1,
            "adapterViewChildPosition": -1,
            "groupViewChildPosition": 0,
            "resourceId": "com.entransys.parkeze:id/confirm_linear",
            "contentDescription": "",
            "text": ""
          },
          {
            "className": "android.support.v7.widget.ContentFrameLayout",
            "recyclerViewChildPosition": -1,
            "adapterViewChildPosition": -1,
            "groupViewChildPosition": 1,
            "resourceId": "android:id/content",
            "contentDescription": "",
            "text": ""
          },
          {
            "className": "android.support.v7.widget.FitWindowsLinearLayout",
            "recyclerViewChildPosition": -1,
            "adapterViewChildPosition": -1,
            "groupViewChildPosition": 0,
            "resourceId": "com.entransys.parkeze:id/action_bar_root",
            "contentDescription": "",
            "text": ""
          }
        ]
      }

所以我的问题是a)是否可以选择在Firebase TestLab上的设备上开始测试之前启用位置?

So my question is a) Is there an option to make location enabled before the test starts on the device in Firebase TestLab ?

b)是否可以使用Robo脚本在系统级对话框上生成点击

b) Is there an option to generate clicks on the system level dialog using Robo Script

添加了屏幕截图

是的,如果按下确定按钮或按下确定按钮[应用程序栏中出现位置图标]与地图不可见之间存在混淆.没有错误,流在这里停止.

Edit 2: Yes, there is confusion between if the ok button is getting pressed or Ok button got pressed [location icon is appearing in appbar] and map is not visible. There is no error and flow stops here.

推荐答案

我正在为我的应用录制机器人脚本.它从未记录过对运行时权限执行的操作.

I am recording the robo script for my app. It never recorded the actions performed on runtime permissions.

这篇关于RoboScript无法在Firebase Testlab中单击“启用位置确定"按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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