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

How to see the Android Orchestrator log?

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

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

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?

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

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

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/

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