存根测试
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) 注入正在使用的 |
split () 将测试分成单独的可运行块。 | |
String | toString () |
字段
DNAE_MESSAGE
public static final String DNAE_MESSAGE
公共构造函数
存根测试
public StubTest ()
公共方法
得到运行测试
public boolean getRunTest ()
退货 | |
---|---|
boolean |
跑步
public void run (TestInformation testInfo, ITestInvocationListener listener)
运行测试,并将结果报告给侦听器。
参数 | |
---|---|
testInfo | TestInformation :包含运行测试的有用信息的TestInformation 对象。 |
listener | ITestInvocationListener : 测试结果的ITestInvocationListener |
投掷 | |
---|---|
DeviceNotAvailableException |
设置配置
public void setConfiguration (IConfiguration configuration)
注入正在使用的IConfiguration
。
参数 | |
---|---|
configuration | IConfiguration |
分裂
publicsplit ()
将测试分成单独的可运行块。
这必须是确定性的,并且始终为相同的输入返回相同的IRemoteTest
列表。
这将在测试执行之前调用,因此注入的依赖项(例如IDeviceTest
的ITestDevice
)可能为空。
退货 | |
---|---|
要单独执行的子测试的集合,如果测试当前不可分片则为null |
到字符串
public String toString ()
退货 | |
---|---|
String |