RemoteTestTimeOutEnforcer
public
class
RemoteTestTimeOutEnforcer
extends Object
implements
ITestInvocationListener
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.suite.RemoteTestTimeOutEnforcer |
可用於檢查指定測試設定的執行時間,並在超過指定逾時時間時失敗的事件監聽器。
請注意,這個強制執行程序不會中斷測試,但會導致測試失敗。
摘要
欄位 | |
|---|---|
public
static
final
String |
REMOTE_TEST_TIMEOUT_DESCRIPTION
|
public
static
final
String |
REMOTE_TEST_TIMEOUT_OPTION
|
公用建構函式 | |
|---|---|
RemoteTestTimeOutEnforcer(ModuleListener listener, ModuleDefinition moduleDefinition, IRemoteTest test, Duration timeOut)
使用指定的逾時期限建立 |
|
公用方法 | |
|---|---|
void
|
testRunEnded(long elapsedTime,
回報測試執行結束。 |
欄位
REMOTE_TEST_TIMEOUT_DESCRIPTION
public static final String REMOTE_TEST_TIMEOUT_DESCRIPTION
REMOTE_TEST_TIMEOUT_OPTION
public static final String REMOTE_TEST_TIMEOUT_OPTION
公用建構函式
RemoteTestTimeOutEnforcer
public RemoteTestTimeOutEnforcer (ModuleListener listener, ModuleDefinition moduleDefinition, IRemoteTest test, Duration timeOut)
使用指定的逾時期限建立 RemoteTestTimeOutEnforcer。
| 參數 | |
|---|---|
listener |
ModuleListener:每個測試執行作業的 ModuleListener。 |
moduleDefinition |
ModuleDefinition:要執行的測試模組的 ModuleDefinition。 |
test |
IRemoteTest:要執行的 IRemoteTest。 |
timeOut |
Duration:每個測試執行作業的逾時 ERROR(/Duration)。 |
公用方法
testRunEnded
public void testRunEnded (long elapsedTime,
runMetrics) 回報測試執行結束。
| 參數 | |
|---|---|
elapsedTime |
long:裝置回報的經過時間,以毫秒為單位 |
runMetrics |
:測試執行結束時回報的鍵/值組合 |