2 z409595641 z409595641 于 2016.03.15 15:41 提问

android studio 的UIAutomator用例 如何通过adb 启动

现在在AS 上写了个uiautomator的用例,但是每次要测都要打开AS run这个test工程,现在是想是否可用adb命令来做,这样就可以写个脚本来用了。。但是死活不知如何启动。
Installing APK: H:\dev\AndroidStudioProjects\MyApplication\testapp\build\outputs\apk\testapp-debug.apk
Uploading file to: /data/local/tmp/com.example.android.testing.uiautomator.BasicSample
Installing com.example.android.testing.uiautomator.BasicSample
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example.android.testing.uiautomator.BasicSample"
pkg: /data/local/tmp/com.example.android.testing.uiautomator.BasicSample
Success

Installing APK: H:\dev\AndroidStudioProjects\MyApplication\testapp\build\outputs\apk\testapp-debug-androidTest-unaligned.apk
Uploading file to: /data/local/tmp/com.example.android.testing.uiautomator.BasicSample.test
Installing com.example.android.testing.uiautomator.BasicSample.test
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example.android.testing.uiautomator.BasicSample.test"
pkg: /data/local/tmp/com.example.android.testing.uiautomator.BasicSample.test
Success

**********************以上的都是可以的,但是安装完后不知如果做以下操作
Running tests
Test running startedFinish

1个回答

z409595641
z409595641   2016.03.15 16:18
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!