从 Gradle 托管设备运行的 Android 模拟器复制数据

问题描述 投票:0回答:1

在使用 Gradle 托管设备 管理的 Android 模拟器上运行 UITests 时,如何复制屏幕截图、黄瓜报告等数据?我无法使用

adb pull
,因为模拟器会在每次运行后立即关闭并重置。

android android-gradle-plugin cucumber adb uitest
1个回答
3
投票

有一个记录在案的功能可以做到这一点:

您在模拟器上复制的所有内容

/sdcard/Android/media/<Bundle Identifier>/additional_test_output

复制到每个托管设备的子文件夹中

app/build/outputs/managed_device_android_test_additional_output

测试运行后。

© www.soinside.com 2019 - 2024. All rights reserved.