Modül Dinleyici
public class ModuleListener
extends CollectingTestListener
Sonuçların listesini toplamak için her modülün her IRemoteTest
eklenen dinleyici.
Özet
Kamu inşaatçıları |
---|
ModuleListener (ITestInvocationListener listener) Yapıcı. |
Genel yöntemler |
---|
boolean | hasLastAttemptFailed () Dinleyicinin son yeniden deneme oturumunun başarısız olup olmadığını döndürür. |
void | logAssociation (String dataName, LogFile logFile) |
void | setAttemptIsolation (CurrentInvocation.IsolationGrade isolation) Denemenin yalıtılmış olarak raporlanıp raporlanmayacağını ayarlar. |
void | setCollectTestsOnly (boolean collectTestsOnly) Yalnızca testleri toplayıp toplamayacağımızı ayarlar. |
void | setMarkTestsSkipped (boolean skip) Atlanan tüm test senaryolarının işaretlenip işaretlenmeyeceği. |
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) |
Kamu inşaatçıları
Modül Dinleyici
public ModuleListener (ITestInvocationListener listener)
Yapıcı.
Parametreler |
---|
listener | ITestInvocationListener |
Genel yöntemler
hasLastAttemptFailed
public boolean hasLastAttemptFailed ()
Dinleyicinin son yeniden deneme oturumunun başarısız olup olmadığını döndürür.
logAssociation
public void logAssociation (String dataName,
LogFile logFile)
Parametreler |
---|
dataName | String |
logFile | LogFile |
setDenemeIsolation
public void setAttemptIsolation (CurrentInvocation.IsolationGrade isolation)
Denemenin yalıtılmış olarak raporlanıp raporlanmayacağını ayarlar.
Parametreler |
---|
isolation | CurrentInvocation.IsolationGrade |
setYalnızcaCollectTestler
public void setCollectTestsOnly (boolean collectTestsOnly)
Yalnızca testleri toplayıp toplamayacağımızı ayarlar.
Parametreler |
---|
collectTestsOnly | boolean |
setMarkTestlerAtlandı
public void setMarkTestsSkipped (boolean skip)
Atlanan tüm test senaryolarının işaretlenip işaretlenmeyeceği.
Parametreler |
---|
skip | boolean |
testVarsayımBaşarısızlık
public void testAssumptionFailure (TestDescription test,
String trace)
Parametreler |
---|
test | TestDescription |
trace | String |
testVarsayımBaşarısızlık
public void testAssumptionFailure (TestDescription test,
FailureDescription failure)
Parametreler |
---|
test | TestDescription |
failure | FailureDescription |
testSonlandı
public void testEnded (TestDescription test,
long endTime,
testMetrics)
Parametreler |
---|
test | TestDescription |
endTime | long |
testMetrics | |
testSonlandı
public void testEnded (TestDescription test,
testMetrics)
Parametreler |
---|
test | TestDescription |
testMetrics | |
test başarısız
public void testFailed (TestDescription test,
FailureDescription failure)
Parametreler |
---|
test | TestDescription |
failure | FailureDescription |
test başarısız
public void testFailed (TestDescription test,
String trace)
Parametreler |
---|
test | TestDescription |
trace | String |
testYoksayıldı
public void testIgnored (TestDescription test)
Parametreler |
---|
test | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
Parametreler |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
public void testLogSaved (String dataName,
LogDataType dataType,
InputStreamSource dataStream,
LogFile logFile)
Parametreler |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
logFile | LogFile |
testRunEnded
public void testRunEnded (long elapsedTime,
runMetrics)
Parametreler |
---|
elapsedTime | long |
runMetrics | |
testRun Başarısız
public void testRunFailed (FailureDescription failure)
Parametreler |
---|
failure | FailureDescription |
testRun Başarısız
public void testRunFailed (String errorMessage)
Parametreler |
---|
errorMessage | String |
testRunBaşlatıldı
public void testRunStarted (String name,
int numTests,
int attemptNumber)
Parametreler |
---|
name | String |
numTests | int |
attemptNumber | int |
testRunBaşlatıldı
public void testRunStarted (String name,
int numTests,
int attemptNumber,
long startTime)
Parametreler |
---|
name | String |
numTests | int |
attemptNumber | int |
startTime | long |
testBaşladı
public void testStarted (TestDescription test,
long startTime)
Parametreler |
---|
test | TestDescription |
startTime | long |