存根测试

public class StubTest
extends Object implements IShardableTest , IConfigurationReceiver , IAbiReceiver

java.lang.Object
com.android.tradefed.testtype.StubTest


无操作空测试实现。

概括

字段

public static final String DNAE_MESSAGE

公共构造函数

StubTest ()

公共方法

IAbi getAbi ()
IConfiguration getConfiguration ()
boolean getRunTest ()
void run ( TestInformation testInfo, ITestInvocationListener listener)

运行测试,并将结果报告给侦听器。

void setAbi ( IAbi abi)
void setConfiguration ( IConfiguration configuration)

注入正在使用的IConfiguration

split ()

将测试分成单独的可运行块。

String toString ()

字段

DNAE_MESSAGE

public static final String DNAE_MESSAGE

公共构造函数

存根测试

public StubTest ()

公共方法

得到阿比

public IAbi getAbi ()

退货
IAbi

获取配置

public IConfiguration getConfiguration ()

退货
IConfiguration

得到运行测试

public boolean getRunTest ()

退货
boolean

跑步

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

运行测试,并将结果报告给侦听器。

参数
testInfo TestInformation :包含运行测试的有用信息的TestInformation对象。

listener ITestInvocationListener : 测试结果的ITestInvocationListener

投掷
DeviceNotAvailableException

设置Abi

public void setAbi (IAbi abi)

参数
abi IAbi

设置配置

public void setConfiguration (IConfiguration configuration)

注入正在使用的IConfiguration

参数
configuration IConfiguration

分裂

public  split ()

将测试分成单独的可运行块。

这必须是确定性的,并且始终为相同的输入返回相同的IRemoteTest列表。

这将在测试执行之前调用,因此注入的依赖项(例如IDeviceTestITestDevice )可能为空。

退货
要单独执行的子测试的集合,如果测试当前不可分片则为null

到字符串

public String toString ()

退货
String