TestsPoolPoller
public
final
class
TestsPoolPoller
extends Object
implements
IConfigurationReceiver,
IMetricCollectorReceiver,
IRemoteTest,
ISystemStatusCheckerReceiver
| java.lang.Object | |
| ↳ | com.android.tradefed.invoker.shard.TestsPoolPoller |
测试封装容器,用于执行测试池中的所有测试。测试可以由其他 TestsPoolPoller 共享,因此需要同步。
TODO:添加了对令牌模块/测试的处理。
摘要
公共构造函数 | |
|---|---|
TestsPoolPoller(ITestsPool testsPool, CountDownLatch tracker)
提供 |
|
公共方法 | |
|---|---|
void
|
run(TestInformation info, ITestInvocationListener listener)
运行测试并向监听器报告结果。 |
void
|
setConfiguration(IConfiguration configuration)
注入正在使用的 |
void
|
setLogRegistry(ILogRegistry registry)
|
void
|
setMetricCollectors(
设置为测试运行定义的 |
void
|
setSystemStatusChecker(
从测试的配置中设置 |
公共构造函数
TestsPoolPoller
public TestsPoolPoller (ITestsPool testsPool, CountDownLatch tracker)
提供 IRemoteTest 池的构造函数。
| 参数 | |
|---|---|
testsPool |
ITestsPool:ITestsPool 的所有测试池。 |
tracker |
CountDownLatch:用于获取正在运行的轮询器数量的共享 ERROR(/CountDownLatch)。 |
公共方法
得分
public void run (TestInformation info, ITestInvocationListener listener)
运行测试并向监听器报告结果。
| 参数 | |
|---|---|
info |
TestInformation:包含运行测试的实用信息的 TestInformation 对象。 |
listener |
ITestInvocationListener:测试结果的 ITestInvocationListener |
| 抛出 | |
|---|---|
DeviceNotAvailableException |
|
setConfiguration
public void setConfiguration (IConfiguration configuration)
注入正在使用的 IConfiguration。
| 参数 | |
|---|---|
configuration |
IConfiguration |
setMetricCollectors
public void setMetricCollectors (collectors)
设置为测试运行定义的 IMetricCollector 列表。
| 参数 | |
|---|---|
collectors |
|
setSystemStatusChecker
public void setSystemStatusChecker (systemCheckers)
从测试的配置中设置 ISystemStatusChecker。
| 参数 | |
|---|---|
systemCheckers |
|