通過測試文件報告程序
public class PassingTestFileReporter
extends TestResultListener
implements ITestInvocationListener
java.lang.Object | ||
↳ | com.android.tradefed.result.TestResultListener | |
↳ | com.android.tradefed.result.PassingTestFileReporter |
將通過的測試用例列表保存到測試文件的ITestInvocationListener
概括
公共構造函數 | |
---|---|
PassingTestFileReporter () |
公共方法 | |
---|---|
void | invocationEnded (long elapsedTime) 報告調用已終止,無論是成功終止還是由於某些錯誤情況。 |
void | invocationStarted ( IInvocationContext context) 報告測試調用的開始。 |
void | testResult ( TestDescription test, TestResult result) |
公共構造函數
通過測試文件報告程序
public PassingTestFileReporter ()
公共方法
調用結束
public void invocationEnded (long elapsedTime)
報告調用已終止,無論是成功終止還是由於某些錯誤情況。
將由 TradeFederation 框架自動調用。參數 | |
---|---|
elapsedTime | long :調用經過的時間(以毫秒為單位) |
調用開始
public void invocationStarted (IInvocationContext context)
報告測試調用的開始。
將由 TradeFederation 框架自動調用。記者需要覆蓋此方法以支持多設備報告。
參數 | |
---|---|
context | IInvocationContext :有關調用的信息 |
測試結果
public void testResult (TestDescription test, TestResult result)
參數 | |
---|---|
test | TestDescription |
result | TestResult |