मॉड्यूल लिस्टनर
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 |
सेट प्रयास अलगाव
public void setAttemptIsolation (CurrentInvocation.IsolationGrade isolation)
सेट करता है कि प्रयास को पृथक के रूप में रिपोर्ट किया जाना चाहिए या नहीं।
मापदंडों |
---|
isolation | CurrentInvocation.IsolationGrade |
केवल संग्रह परीक्षण सेट करें
public void setCollectTestsOnly (boolean collectTestsOnly)
सेट करता है कि हम केवल परीक्षण एकत्र कर रहे हैं या नहीं।
मापदंडों |
---|
collectTestsOnly | boolean |
setMarkTestsछोड़ दिया गया
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 |