存根测试
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。
退货 | |
---|---|
要单独执行的子测试的集合,如果测试当前不可分片,则为null |
到字符串
public String toString ()
退货 | |
---|---|
String |