ग्रैन्युलर रिट्रायबलटेस्टरैपर.स्टार्टएंडकलेक्टर
public class GranularRetriableTestWrapper.StartEndCollector
extends ResultAndLogForwarder
java.lang.ऑब्जेक्ट | |||
↳ | com.android.tradefed.result.ResultForwarder | ||
↳ | com.android.tradefed.result.ResultAndLogForwarder | ||
↳ | com.android.tradefed.testtype.suite.GranularRetriableTestWrapper.StartEndCollector |
छूटे हुए रन के आरंभ और अंत को पकड़ने के लिए क्लास सहायक।
सारांश
खेत | |
---|---|
public boolean | mRunEndedReported |
public boolean | mRunStartReported
|
सार्वजनिक तरीके | |
---|---|
void | testRunEnded (long elapsedTimeMillis, runMetrics) testRunEnded (long elapsedTimeMillis, runMetrics) परीक्षण चलाने की समाप्ति की रिपोर्ट। |
void | testRunStarted (String runName, int testCount) परीक्षण चलाने की शुरुआत की रिपोर्ट करता है। |
void | testRunStarted (String runName, int testCount, int attemptNumber, long startTime) परीक्षण चलाने की शुरुआत की रिपोर्ट करता है। |
void | testRunStarted (String runName, int testCount, int attemptNumber) परीक्षण चलाने की शुरुआत की रिपोर्ट करता है। |
खेत
mRunEndedReported
public boolean mRunEndedReported
mRunStartरिपोर्ट किया गया
public boolean mRunStartReported
सार्वजनिक तरीके
testRunEnded
public void testRunEnded (long elapsedTimeMillis,runMetrics)
परीक्षण चलाने की समाप्ति की रिपोर्ट। FIXME: हमारे पास अलग-अलग प्रकार के दो Map<> इंटरफ़ेस नहीं हो सकते हैं, इसलिए हमें यहां HashMap का उपयोग करना होगा।
पैरामीटर | |
---|---|
elapsedTimeMillis | long : डिवाइस ने बीता हुआ समय, मिलीसेकेंड में बताया |
runMetrics | Metric के साथ परीक्षण चलाने के अंत में कुंजी-मूल्य जोड़े की सूचना दी गई। |
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 : क्रम संख्या, एक ही रननाम के विभिन्न प्रयासों की पहचान करना जो कई बार चलते हैं। प्रयास संख्या 0-अनुक्रमित है और हर बार एक नया रन होने पर इसमें वृद्धि होनी चाहिए। उदाहरण के लिए एक परीक्षण को 3 बार पुनः प्रयास किया जाता है, इसमें एक ही रननाम के तहत कुल 4 रन होने चाहिए और प्रयास संख्या 0 से 3 तक होनी चाहिए। |
startTime | long : रन शुरू होने का समय, System.currentTimeMillis() के माध्यम से मापा गया |
testRunStarted
public void testRunStarted (String runName, int testCount, int attemptNumber)
परीक्षण चलाने की शुरुआत की रिपोर्ट करता है।
पैरामीटर | |
---|---|
runName | String : परीक्षण चलाने का नाम |
testCount | int : टेस्ट रन में परीक्षणों की कुल संख्या |
attemptNumber | int : क्रम संख्या, एक ही रननाम के विभिन्न प्रयासों की पहचान करना जो कई बार चलते हैं। प्रयास संख्या 0-अनुक्रमित है और हर बार एक नया रन होने पर इसमें वृद्धि होनी चाहिए। उदाहरण के लिए एक परीक्षण को 3 बार पुनः प्रयास किया जाता है, इसमें एक ही रननाम के तहत कुल 4 रन होने चाहिए और प्रयास संख्या 0 से 3 तक होनी चाहिए। |