परिणाम अग्रेषणकर्ता
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) |
संरक्षित तरीके |
---|
| getListeners () श्रोताओं की सूची प्राप्त करें. |
void | setListeners ( listeners) setListeners ( listeners) निर्माण के बाद श्रोताओं को सेट करें। |
void | setListeners (ITestInvocationListener... listeners) निर्माण के बाद श्रोताओं को सेट करें। |
सार्वजनिक निर्माणकर्ता
परिणाम अग्रेषणकर्ता
public ResultForwarder ( listeners)
एक ResultForwarder
बनाएं।
परिणाम अग्रेषणकर्ता
public ResultForwarder (ITestInvocationListener... listeners)
ResultForwarder
के लिए वैकल्पिक वेरिएबल arg कंस्ट्रक्टर।
संरक्षित कंस्ट्रक्टर
परिणाम अग्रेषणकर्ता
protected ResultForwarder ()
विलंबित श्रोता सेटिंग के साथ एक ResultForwarder
बनाएं। केवल उपवर्गों द्वारा उपयोग के लिए अभिप्रेत है।
सार्वजनिक तरीके
सारांश प्राप्त करें
public TestSummary getSummary ()
मंगलाचरणसमाप्त
public void invocationEnded (long elapsedTime)
पैरामीटर |
---|
elapsedTime | long |
मंगलाचरणविफल
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 |
testModuleसमाप्त
public void testModuleEnded ()
testModuleशुरू हुआ
public void testModuleStarted (IInvocationContext moduleContext)
पैरामीटर |
---|
moduleContext | IInvocationContext |
testRunEnded
public void testRunEnded (long elapsedTime,
runMetrics)
पैरामीटर |
---|
elapsedTime | long |
runMetrics | |
परीक्षण चलाने में विफल
public void testRunFailed (FailureDescription failure)
पैरामीटर |
---|
failure | FailureDescription |
परीक्षण चलाने में विफल
public void testRunFailed (String errorMessage)
पैरामीटर |
---|
errorMessage | String |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber)
पैरामीटर |
---|
runName | String |
testCount | int |
attemptNumber | int |
testRunStarted
public void testRunStarted (String runName,
int testCount)
पैरामीटर |
---|
runName | String |
testCount | int |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)
पैरामीटर |
---|
runName | String |
testCount | int |
attemptNumber | int |
startTime | long |
टेस्टरनस्टॉप किया गया
public void testRunStopped (long elapsedTime)
पैरामीटर |
---|
elapsedTime | long |
परीक्षण प्रारंभ
public void testStarted (TestDescription test,
long startTime)
पैरामीटर |
---|
test | TestDescription |
startTime | long |
परीक्षण प्रारंभ
public void testStarted (TestDescription test)
पैरामीटर |
---|
test | TestDescription |
संरक्षित तरीके
श्रोता प्राप्त करें
protected getListeners ()
श्रोताओं की सूची प्राप्त करें. केवल उपवर्गों द्वारा उपयोग के लिए अभिप्रेत है।
सेट श्रोता
protected void setListeners ( listeners)
निर्माण के बाद श्रोताओं को सेट करें। केवल उपवर्गों द्वारा उपयोग के लिए अभिप्रेत है।
सेट श्रोता
protected void setListeners (ITestInvocationListener... listeners)
निर्माण के बाद श्रोताओं को सेट करें। केवल उपवर्गों द्वारा उपयोग के लिए अभिप्रेत है।