結果フォワーダー
public class ResultForwarder
extends Object
implements ITestInvocationListener
java.lang.オブジェクト |
↳ | com.android.tradefed.result.ResultForwarder |
呼び出し結果を他のリスナーのリストに転送するITestInvocationListener
。
まとめ
パブリックメソッド |
---|
TestSummary | getSummary () |
void | invocationEnded (long elapsedTime) |
void | invocationFailed (FailureDescription failure) |
void | invocationFailed (Throwable cause) |
void | invocationStarted (IInvocationContext context) |
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 | testModuleEnded () |
void | testModuleStarted (IInvocationContext moduleContext) |
void | testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics) |
void | testRunFailed (FailureDescription failure) |
void | testRunFailed (String errorMessage) |
void | testRunStarted (String runName, int testCount, int attemptNumber) |
void | testRunStarted (String runName, int testCount) |
void | testRunStarted (String runName, int testCount, int attemptNumber, long startTime) |
void | testRunStopped (long elapsedTime) |
void | testStarted (TestDescription test, long startTime) |
void | testStarted (TestDescription test) |
パブリックコンストラクター
結果フォワーダー
public ResultForwarder (ITestInvocationListener... listeners)
ResultForwarder
の代替変数 arg コンストラクター。
保護されたコンストラクター
結果フォワーダー
protected ResultForwarder ()
遅延リスナー設定を使用してResultForwarder
を作成します。サブクラスによる使用のみを目的としています。
パブリックメソッド
get概要
public TestSummary getSummary ()
呼び出し終了
public void invocationEnded (long elapsedTime)
呼び出し失敗
public void invocationFailed (FailureDescription failure)
パラメーター |
---|
failure | FailureDescription |
呼び出し失敗
public void invocationFailed (Throwable cause)
呼び出し開始
public void invocationStarted (IInvocationContext context)
パラメーター |
---|
context | IInvocationContext |
テスト仮定失敗
public void testAssumptionFailure (TestDescription test,
String trace)
パラメーター |
---|
test | TestDescription |
trace | String |
テスト仮定失敗
public void testAssumptionFailure (TestDescription test,
FailureDescription failure)
パラメーター |
---|
test | TestDescription |
failure | FailureDescription |
テスト終了
public void testEnded (TestDescription test,
long endTime,
testMetrics)
パラメーター |
---|
test | TestDescription |
endTime | long |
testMetrics | |
テスト終了
public void testEnded (TestDescription test,
testMetrics)
パラメーター |
---|
test | TestDescription |
testMetrics | |
テスト失敗
public void testFailed (TestDescription test,
FailureDescription failure)
パラメーター |
---|
test | TestDescription |
failure | FailureDescription |
テスト失敗
public void testFailed (TestDescription test,
String trace)
パラメーター |
---|
test | TestDescription |
trace | String |
テスト無視されました
public void testIgnored (TestDescription test)
パラメーター |
---|
test | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
パラメーター |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
テストモジュール終了
public void testModuleEnded ()
テストモジュールが開始されました
public void testModuleStarted (IInvocationContext moduleContext)
パラメーター |
---|
moduleContext | IInvocationContext |
テスト実行終了
public void testRunEnded (long elapsedTime,
runMetrics)
パラメーター |
---|
elapsedTime | long |
runMetrics | |
テスト実行失敗
public void testRunFailed (FailureDescription failure)
パラメーター |
---|
failure | FailureDescription |
テスト実行失敗
public void testRunFailed (String errorMessage)
パラメーター |
---|
errorMessage | String |
テスト実行開始しました
public void testRunStarted (String runName,
int testCount,
int attemptNumber)
パラメーター |
---|
runName | String |
testCount | int |
attemptNumber | int |
テスト実行開始しました
public void testRunStarted (String runName,
int testCount)
パラメーター |
---|
runName | String |
testCount | int |
テスト実行開始しました
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)
パラメーター |
---|
runName | String |
testCount | int |
attemptNumber | int |
startTime | long |
テスト実行停止
public void testRunStopped (long elapsedTime)
テスト開始
public void testStarted (TestDescription test,
long startTime)
パラメーター |
---|
test | TestDescription |
startTime | long |
テスト開始
public void testStarted (TestDescription test)
パラメーター |
---|
test | TestDescription |
保護されたメソッド
getListeners
protected getListeners ()
リスナーのリストを取得します。サブクラスによる使用のみを目的としています。
setListeners
protected void setListeners ( listeners)
構築後にリスナーを設定します。サブクラスによる使用のみを目的としています。
setListeners
protected void setListeners (ITestInvocationListener... listeners)
構築後にリスナーを設定します。サブクラスによる使用のみを目的としています。