测试系统应用程序安装设置

public class TestSystemAppInstallSetup
extends BaseTargetPreparer

java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.TestSystemAppInstallSetup


一种ITargetPreparer ,用于将IDeviceBuildInfo.getTestsDir()文件夹中的一个或多个应用程序安装到设备上的 /system 分区上。

需要 adb root

概括

公共构造函数

TestSystemAppInstallSetup ()

公共方法

void addTestFileName (String fileName)

将文件添加到要安装的 apk 列表中

void setUp ( TestInformation testInfo)

公共构造函数

测试系统应用程序安装设置

public TestSystemAppInstallSetup ()

公共方法

添加测试文件名

public void addTestFileName (String fileName)

将文件添加到要安装的 apk 列表中

设置

public void setUp (TestInformation testInfo)

参数
testInfo TestInformation

投掷
DeviceNotAvailableException
TargetSetupError