如何查看Android Orchestrator日志? [英] How to see the Android Orchestrator log?
问题描述
我的套件测试失败,现在正在使用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屋!