ShardListener
public class ShardListener
extends CollectingTestListener
implements ISupportGranularResults
ITestInvocationListener
שאוסף תוצאות מ-Shard (הידוע גם בשם פיצול הזמנה להפעלה על מספר משאבים במקביל), ומעביר אותם למאזין אחר.
סיכום
שיטות ציבוריות |
---|
void | invocationEnded (long elapsedTime) |
void | invocationFailed (FailureDescription failure) |
void | invocationFailed (Throwable cause) |
void | invocationStarted (IInvocationContext context) |
void | setSupportGranularResults (boolean enableGranularResults) |
boolean | supportGranularResults () |
void | testLog (String dataName, LogDataType dataType, InputStreamSource dataStream) |
void | testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile) |
void | testModuleEnded () |
void | testModuleStarted (IInvocationContext moduleContext) |
void | testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics) |
void | testRunFailed (FailureDescription failure) |
void | testRunFailed (String failureMessage) |
void | testRunStarted (String name, int numTests, int attemptNumber, long startTime) |
בנאים ציבוריים
ShardListener
public ShardListener (ITestInvocationListener main)
צור ShardListener
.
פרמטרים |
---|
main | ITestInvocationListener : ה- ITestInvocationListener יש להעביר את התוצאות. כדי למנוע התנגשויות עם מכשירי ShardListener אחרים, אובייקט זה יסונכרן ב- main בעת העברת תוצאות. והתוצאות יישלחו רק לאחר סיום רסיסי ההזמנה. |
שיטות ציבוריות
הקריאה הסתיימה
public void invocationEnded (long elapsedTime)
הפניה נכשלה
public void invocationFailed (FailureDescription failure)
פרמטרים |
---|
failure | FailureDescription |
הפניה נכשלה
public void invocationFailed (Throwable cause)
התראה התחילה
public void invocationStarted (IInvocationContext context)
פרמטרים |
---|
context | IInvocationContext |
setSupportGranularResults
public void setSupportGranularResults (boolean enableGranularResults)
פרמטרים |
---|
enableGranularResults | boolean |
תומך ב-GranularResults
public boolean supportGranularResults ()
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 |
testModuleEnded
public void testModuleEnded ()
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
פרמטרים |
---|
moduleContext | IInvocationContext |
testRunEnded
public void testRunEnded (long elapsedTime,
runMetrics)
פרמטרים |
---|
elapsedTime | long |
runMetrics | |
testRunFailed
public void testRunFailed (FailureDescription failure)
פרמטרים |
---|
failure | FailureDescription |
testRunFailed
public void testRunFailed (String failureMessage)
פרמטרים |
---|
failureMessage | String |
testRunStarted
public void testRunStarted (String name,
int numTests,
int attemptNumber,
long startTime)
פרמטרים |
---|
name | String |
numTests | int |
attemptNumber | int |
startTime | long |