InstalledInstrumentationsTest
public
class
InstalledInstrumentationsTest
extends Object
implements
IAutoRetriableTest,
IConfigurationReceiver,
IDeviceTest,
IMetricCollectorReceiver,
IShardableTest
java.lang.Object | |
↳ | com.android.tradefed.testtype.InstalledInstrumentationsTest |
मौजूदा डिवाइस पर मौजूद सभी इंस्ट्रूमेंटेशन चलाता है.
खास जानकारी
सार्वजनिक कंस्ट्रक्टर | |
---|---|
InstalledInstrumentationsTest()
|
सार्वजनिक तरीके | |
---|---|
ITestDevice
|
getDevice()
टेस्ट किया जा रहा डिवाइस पाएं. |
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
जांच करता है और नतीजे को सुनने वाले को रिपोर्ट करता है. |
void
|
setConfiguration(IConfiguration configuration)
इस्तेमाल में मौजूद |
void
|
setDevice(ITestDevice device)
जांचे जा रहे डिवाइस को इंजेक्ट करें. |
void
|
setMetricCollectors(
टेस्ट रन के लिए तय किए गए |
boolean
|
shouldRetry(int attemptJustExecuted,
|
|
split(int shardCountHint)
|
सार्वजनिक कंस्ट्रक्टर
InstalledInstrumentationsTest
public InstalledInstrumentationsTest ()
सार्वजनिक तरीके
getDevice
public ITestDevice getDevice ()
टेस्ट किया जा रहा डिवाइस पाएं.
रिटर्न | |
---|---|
ITestDevice |
ITestDevice |
रन
public void run (TestInformation testInfo, ITestInvocationListener listener)
जांच करता है और नतीजे को सुनने वाले को रिपोर्ट करता है.
पैरामीटर | |
---|---|
testInfo |
TestInformation : TestInformation ऑब्जेक्ट, जिसमें जांच करने के लिए काम की जानकारी होती है. |
listener |
ITestInvocationListener : जांच के नतीजों का ITestInvocationListener |
थ्रो | |
---|---|
DeviceNotAvailableException |
setConfiguration
public void setConfiguration (IConfiguration configuration)
इस्तेमाल में मौजूद IConfiguration
को इंजेक्ट करता है.
पैरामीटर | |
---|---|
configuration |
IConfiguration |
setDevice
public void setDevice (ITestDevice device)
जांचे जा रहे डिवाइस को इंजेक्ट करें.
पैरामीटर | |
---|---|
device |
ITestDevice : इस्तेमाल करने के लिए ITestDevice |
setMetricCollectors
public void setMetricCollectors (collectors)
टेस्ट रन के लिए तय किए गए IMetricCollector
की सूची सेट करता है.
पैरामीटर | |
---|---|
collectors |
|
shouldRetry
public boolean shouldRetry (int attemptJustExecuted,previousResults, skipList)
ERROR(IRetryDecision.shouldRetry(IRemoteTest, int, List)/com.android.tradefed.retry.IRetryDecision#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List) IRetryDecision.shouldRetry(IRemoteTest, int, List))
ने ऐक्सेस दिया. तय करें कि फिर से कोशिश की जानी चाहिए या नहीं. IRemoteTest
में ज़रूरी बदलाव भी करें, ताकि फिर से कोशिश की जा सके. जैसे, फ़िल्टर लागू करना, अगला रन तैयार करना वगैरह.
पैरामीटर | |
---|---|
attemptJustExecuted |
int : अभी-अभी किए गए ट्रायल की संख्या. |
previousResults |
: अभी-अभी चलाए गए टेस्ट के TestRunResult की सूची. |
skipList |
: उन आइटम का सेट जिन्हें फिर से ट्रांसफ़र नहीं किया जाना चाहिए. |
रिटर्न | |
---|---|
boolean |
अगर हमें फिर से कोशिश करनी है, तो True. अगर नहीं, तो False. |
थ्रो | |
---|---|
DeviceNotAvailableException |
बाँटना
publicsplit (int shardCountHint)
split()
का वैकल्पिक वर्शन, जो रन करने की कोशिश की गई sha rdCount की जानकारी भी देता है. यह कुछ टेस्ट रनर के लिए काम का है, जो कभी-कभी मनमुताबिक फ़ैसला नहीं ले सकते.
पैरामीटर | |
---|---|
shardCountHint |
int : शर्ड की संख्या. |
रिटर्न | |
---|---|
|
अलग-अलग चलाए जाने वाले सब-टेस्ट का कलेक्शन या null अगर फ़िलहाल टेस्ट को शीयर नहीं किया जा सकता |