How to retrieve test results when using “adb shell am instrument”

前端 未结 3 405
伪装坚强ぢ
伪装坚强ぢ 2020-12-30 10:30

I\'m executing some tests in my Android device by using the following command:

adb shell am instrument -w package.name/android.test.runner.AndroidJU

3条回答
  •  长情又很酷
    2020-12-30 10:46

    If you are executing your tests using AndroidTestOrchestrator your XML test results are generated and stored inside the devices storage/emulated/0/odo/ directory. So they can be accessed using:

    adb pull storage/emulated/0/odo/

    I'm not sure why this isn't mentioned anywhere in the documentation. This path is likely to be different for real devices, where I believe the results are outputted on the SDCARD somewhere.

提交回复
热议问题