Warm tip: This article is reproduced from serverfault.com, please click

integration testing-如何查看Android Orchestrator日志?

(integration testing - How to see the Android Orchestrator log?)

发布于 2017-09-26 21:02:19

我的套件中的测试失败,现在使用的是Android Orchestrator,但我得到的只是以下消息:

测试仪器过程崩溃。检查com.something.something_detail.SomeActivityTest#testAddSucceeds_activityIsFinished.txt以获取详细信息

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

Questioner
Leandro Borges Ferreira
Viewed
0
9,738 2018-12-07 22:16:12

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

要通过ADB将它们从设备上移除(需要启用调试功能,并且必须有root用户的设备或仿真器才能拥有root用户):

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

非root用户,AndroidX用户可以使用:

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