ModuleListener

public class ModuleListener
extends CollectingTestListener

java.lang.Object
com.android.tradefed.result.CollectingTestListener
com.android.tradefed.testtype.suite.ModuleListener


リスナーは、それぞれに取り付けられたIRemoteTest結果のリストを収集するために、各モジュールの。

概要

パブリックコンストラクター

ModuleListener (ITestInvocationListener listener)

コンストラクタ。

パブリックメソッド

boolean hasLastAttemptFailed ()

リスナーの最後の再試行セッションが失敗したかどうかを返します。

void logAssociation (String dataName, LogFile logFile)

void setAttemptIsolation (CurrentInvocation.IsolationGrade isolation)

試行を分離として報告するかどうかを設定します。

void setCollectTestsOnly (boolean collectTestsOnly)

テストのみを収集するかどうかを設定します。

void setMarkTestsSkipped (boolean skip)

スキップされたすべてのテストケースにマークを付けるかどうか。

void testAssumptionFailure (TestDescription test, String trace)
void testAssumptionFailure (TestDescription test, FailureDescription failure)
void testEnded (TestDescription test, long endTime, testMetrics) testEnded (TestDescription test, long endTime, testMetrics)

void testEnded (TestDescription test, testMetrics) testEnded (TestDescription test, testMetrics)

void testFailed (TestDescription test, FailureDescription failure)

void testFailed (TestDescription test, String trace)

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

void testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)

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

void testRunFailed (FailureDescription failure)

void testRunFailed (String errorMessage)

void testRunStarted (String name, int numTests, int attemptNumber)

void testRunStarted (String name, int numTests, int attemptNumber, long startTime)

void testStarted (TestDescription test, long startTime)

パブリックコンストラクター

ModuleListener

public ModuleListener (ITestInvocationListener listener)

コンストラクタ。

パラメーター
listener ITestInvocationListener

パブリックメソッド

hasLastAttemptFailed

public boolean hasLastAttemptFailed ()

リスナーの最後の再試行セッションが失敗したかどうかを返します。

戻り値
boolean

logAssociation

public void logAssociation (String dataName, 
                LogFile logFile)

パラメーター
dataName String

logFile LogFile

setAttemptIsolation

public void setAttemptIsolation (CurrentInvocation.IsolationGrade isolation)

試行を分離として報告するかどうかを設定します。

パラメーター
isolation CurrentInvocation.IsolationGrade

setCollectTestsOnly

public void setCollectTestsOnly (boolean collectTestsOnly)

テストのみを収集するかどうかを設定します。

パラメーター
collectTestsOnly boolean

setMarkTestsSkipped

public void setMarkTestsSkipped (boolean skip)

スキップされたすべてのテストケースにマークを付けるかどうか。

パラメーター
skip boolean

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                String trace)

パラメーター
test TestDescription

trace String

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

パラメーター
test TestDescription

failure FailureDescription

testEnded

public void testEnded (TestDescription test, 
                long endTime, 
                 testMetrics)

パラメーター
test TestDescription

endTime long

testMetrics

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

パラメーター
test TestDescription

testMetrics

testFailed

public void testFailed (TestDescription test, 
                FailureDescription failure)

パラメーター
test TestDescription

failure FailureDescription

testFailed

public void testFailed (TestDescription test, 
                String trace)

パラメーター
test TestDescription

trace String

testIgnored

public void testIgnored (TestDescription test)

パラメーター
test TestDescription

testLog

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

パラメーター
dataName String

dataType LogDataType

dataStream InputStreamSource

testLogSaved

public void testLogSaved (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream, 
                LogFile logFile)

パラメーター
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

パラメーター
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

パラメーター
failure FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

パラメーター
errorMessage String

testRunStarted

public void testRunStarted (String name, 
                int numTests, 
                int attemptNumber)

パラメーター
name String

numTests int

attemptNumber int

testRunStarted

public void testRunStarted (String name, 
                int numTests, 
                int attemptNumber, 
                long startTime)

パラメーター
name String

numTests int

attemptNumber int

startTime long

testStarted

public void testStarted (TestDescription test, 
                long startTime)

パラメーター
test TestDescription

startTime long