TestRunResultListener
public
final
class
TestRunResultListener
extends Object
implements
ITestInvocationListener
java.lang.Object | |
↳ | com.android.tradefed.result.TestRunResultListener |
टेस्ट रन के आखिरी स्टेटस को पढ़ने की सुविधा देने वाला लिसनर.
खास जानकारी
पब्लिक कंस्ट्रक्टर | |
---|---|
TestRunResultListener()
|
सार्वजनिक तरीके | |
---|---|
boolean
|
isTestFailed(String testName)
|
boolean
|
isTestRunFailed(String testRunName)
|
void
|
testFailed(TestDescription test, FailureDescription failure)
किसी टेस्ट केस के फ़ेल होने की रिपोर्ट करता है. |
void
|
testFailed(TestDescription test, String trace)
किसी टेस्ट केस के फ़ेल होने की रिपोर्ट करता है. |
void
|
testRunEnded(long elapsedTime,
टेस्ट रन खत्म होने की रिपोर्ट दिखाता है. |
void
|
testRunFailed(FailureDescription failure)
|
void
|
testRunFailed(String errorMessage)
किसी गंभीर गड़बड़ी की वजह से, रिपोर्ट की जांच पूरी नहीं हो सकी. |
void
|
testRunStarted(String runName, int testCount)
टेस्ट रन शुरू होने की जानकारी देता है. |
पब्लिक कंस्ट्रक्टर
TestRunResultListener
public TestRunResultListener ()
सार्वजनिक तरीके
isTestFailed
public boolean isTestFailed (String testName)
पैरामीटर | |
---|---|
testName |
String |
रिटर्न | |
---|---|
boolean |
isTestRunFailed
public boolean isTestRunFailed (String testRunName)
पैरामीटर | |
---|---|
testRunName |
String |
रिटर्न | |
---|---|
boolean |
testFailed
public void testFailed (TestDescription test, FailureDescription failure)
किसी टेस्ट केस के फ़ेल होने की रिपोर्ट करता है.
इसे testStarted और testEnded के बीच कॉल किया जाएगा.
पैरामीटर | |
---|---|
test |
TestDescription : टेस्ट की पहचान करता है |
failure |
FailureDescription : FailureDescription गड़बड़ी और उसके संदर्भ के बारे में बताना. |
testFailed
public void testFailed (TestDescription test, String trace)
किसी टेस्ट केस के फ़ेल होने की रिपोर्ट करता है.
इसे testStarted और testEnded के बीच कॉल किया जाएगा.
पैरामीटर | |
---|---|
test |
TestDescription : टेस्ट की पहचान करता है |
trace |
String : गड़बड़ी का स्टैक ट्रेस |
testRunEnded
public void testRunEnded (long elapsedTime,runMetrics)
टेस्ट रन खत्म होने की रिपोर्ट दिखाता है.
पैरामीटर | |
---|---|
elapsedTime |
long : डिवाइस से मिलीसेकंड में, बीत चुका समय |
runMetrics |
: टेस्ट रन के आखिर में रिपोर्ट किए गए की-वैल्यू पेयर |
testRunFailed
public void testRunFailed (FailureDescription failure)
FailureDescription
की बताई गई गड़बड़ी की वजह से, रिपोर्ट की जांच पूरी नहीं हो सकी.
पैरामीटर | |
---|---|
failure |
FailureDescription : FailureDescription गड़बड़ी और उसके संदर्भ के बारे में बताना. |
testRunFailed
public void testRunFailed (String errorMessage)
किसी गंभीर गड़बड़ी की वजह से, रिपोर्ट की जांच पूरी नहीं हो सकी.
पैरामीटर | |
---|---|
errorMessage |
String : String , जिसमें रन न होने की वजह बताई गई है. |
testRunStarted
public void testRunStarted (String runName, int testCount)
टेस्ट रन शुरू होने की जानकारी देता है.
पैरामीटर | |
---|---|
runName |
String : टेस्ट रन का नाम |
testCount |
int : टेस्ट रन में टेस्ट की कुल संख्या |