Google is committed to advancing racial equity for Black communities. See how.
本頁面由 Cloud Translation API 翻譯而成。
Switch to English

InvocationToJUnitResultForwarder

public class InvocationToJUnitResultForwarder
extends Object implements ITestInvocationListener

java.lang.Object
com.android.tradefed.result.InvocationToJUnitResultForwarder


偵聽ITestInvocationListener事件並將其轉發到TestListener

摘要

公共建設者

InvocationToJUnitResultForwarder (TestListener junitListener)

公開方法

TestSummary getSummary ()

void invocationEnded (long elapsedTime)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void testAssumptionFailure (TestDescription testId, String trace)
void testEnded (TestDescription test, testMetrics) testEnded (TestDescription test, testMetrics)

void testFailed (TestDescription testId, String trace)

void testIgnored (TestDescription test)
void testLog (String dataName, LogDataType logData, InputStreamSource dataStream)

void testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics)

void testRunFailed (String errorMessage)

void testRunStarted (String runName, int testCount)

void testRunStopped (long elapsedTime)

void testStarted (TestDescription test)

受保護的方法

TestListener getJUnitListener ()

公共建設者

InvocationToJUnitResultForwarder

public InvocationToJUnitResultForwarder (TestListener junitListener)

參量
junitListener TestListener

公開方法

getSummary

public TestSummary getSummary ()

退貨
TestSummary

調用結束

public void invocationEnded (long elapsedTime)

參量
elapsedTime long

調用失敗

public void invocationFailed (Throwable cause)

參量
cause Throwable

調用開始

public void invocationStarted (IInvocationContext context)

參量
context IInvocationContext

testAssumptionFailure

public void testAssumptionFailure (TestDescription testId, 
                String trace)

參量
testId TestDescription

trace String

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

參量
test TestDescription

testMetrics

測試失敗

public void testFailed (TestDescription testId, 
                String trace)

參量
testId TestDescription

trace String

testIgnored

public void testIgnored (TestDescription test)

參量
test TestDescription

測試日誌

public void testLog (String dataName, 
                LogDataType logData, 
                InputStreamSource dataStream)

參量
dataName String

logData LogDataType

dataStream InputStreamSource

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

參量
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (String errorMessage)

參量
errorMessage String

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

參量
runName String

testCount int

testRunStopped

public void testRunStopped (long elapsedTime)

參量
elapsedTime long

testStarted

public void testStarted (TestDescription test)

參量
test TestDescription

受保護的方法

getJUnitListener

protected TestListener getJUnitListener ()

退貨
TestListener