モジュールリスナー
public class ModuleListener
extends CollectingTestListener
結果のリストを収集するために、各モジュールの各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) |
パブリックコンストラクター
モジュールリスナー
public ModuleListener (ITestInvocationListener listener)
コンストラクタ。
パラメーター |
---|
listener | ITestInvocationListener |
パブリックメソッド
前回の試行に失敗しました
public boolean hasLastAttemptFailed ()
リスナーの最後の再試行セッションが失敗したかどうかを返します。
ログ関連付け
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)
すべてのテスト ケースをスキップしたとマークするかどうか。
テスト仮定失敗
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 testLogSaved (String dataName,
LogDataType dataType,
InputStreamSource dataStream,
LogFile logFile)
パラメーター |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
logFile | LogFile |
テスト実行終了
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 name,
int numTests,
int attemptNumber)
パラメーター |
---|
name | String |
numTests | int |
attemptNumber | int |
テスト実行開始しました
public void testRunStarted (String name,
int numTests,
int attemptNumber,
long startTime)
パラメーター |
---|
name | String |
numTests | int |
attemptNumber | int |
startTime | long |
テスト開始
public void testStarted (TestDescription test,
long startTime)
パラメーター |
---|
test | TestDescription |
startTime | long |