如何查看 Android Orchestrator 日志? [英] How to see the Android Orchestrator log?

查看:35
本文介绍了如何查看 Android Orchestrator 日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的套件中有一个失败的测试,现在我正在使用 Android Orchestrator,但我得到的只是这条消息:

I have a failing test in my suite and now I am using the Android Orchestrator, but all I get is this message:

测试仪器进程崩溃.查看com.something.something_detail.SomeActivityTest#testAddSucceeds_activityIsFinished.txt详情

Test instrumentation process crashed. Check com.something.something_detail.SomeActivityTest#testAddSucceeds_activityIsFinished.txt for details

我不知道如何访问该文件.有什么帮助吗?

I don't know how to access that file. Any help?

推荐答案

您可以在设备上的 /data/data/android.support.test.orchestrator/files/ 下找到它们.

You'll find them on the device under /data/data/android.support.test.orchestrator/files/.

要通过 ADB 将它们从设备上移除(需要启用调试,并且需要有 root 权限的设备或模拟器,以便您拥有 root 权限):

To get them off the device via ADB (requires debugging enabled and either a rooted device or an emulator so you have root):

adb root
adb pull /data/data/android.support.test.orchestrator/files/

非root,AndroidX用户可以使用:

Non-root, AndroidX users can use:

adb shell run-as androidx.test.orchestrator cat /data/user_de/0/androidx.test.orchestrator/files/com.pkg.name#testName.txt

这篇关于如何查看 Android Orchestrator 日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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