【发布时间】:2015-08-19 18:13:37
【问题描述】:
使用 AndroidViewClient,最近我尝试使用 Culebra 或任何相关脚本执行的每个操作都会重新启动虚拟设备。有没有人遇到过这个?
**edit 1: ** 更具体地说,我只有在尝试在特定区域触摸设备的命令后才会进入这个无休止的重启循环。
即如果我将以下内容放入我的脚本中,它只会重新启动设备,然后所有进一步的 Culebra 生成的命令都会导致设备重新启动
self.vc.device.touchDip(173, 1111)
编辑 2:添加更多信息
我已经在几个不同的模型上复制了这种行为,但我主要使用以下内容:
设备:Google Galaxy Nexus - 4.3 - API 18 - 720x1280
$ culebra -v
culebra 10.7.2
$ dump -v
dump 10.7.2
dump
android.widget.FrameLayout
android.view.View com.android.launcher:id/workspace
android.view.View com.android.launcher:id/cell3
android.appwidget.AppWidgetHostView
android.view.View com.android.deskclock:id/analog_appwidget
android.widget.TextView Camera
....
$ adb shell date
Thu Aug 20 12:44:08 EDT 2015
不同的x,y坐标也会重启设备:
adb shell input tap 200 900 <--- restarts the phone as well
【问题讨论】: