स्थापितइंस्ट्रूमेंटेशनटेस्ट

public class InstalledInstrumentationsTest
extends Object implements IDeviceTest , IShardableTest , IMetricCollectorReceiver , IAutoRetriableTest , IConfigurationReceiver

java.lang.ऑब्जेक्ट
com.android.tradefed.testtype.InstalledInstrumentationsTest


वर्तमान डिवाइस पर पाए जाने वाले सभी उपकरण चलाता है।

सारांश

सार्वजनिक निर्माणकर्ता

InstalledInstrumentationsTest ()

सार्वजनिक तरीके

ITestDevice getDevice ()

डिवाइस को परीक्षण के तहत प्राप्त करें.

void run ( TestInformation testInfo, ITestInvocationListener listener)

परीक्षण चलाता है, और परिणाम की रिपोर्ट श्रोता को देता है।

void setConfiguration ( IConfiguration configuration)

उपयोग में आने वाले IConfiguration इंजेक्ट करता है।

void setDevice ( ITestDevice device)

परीक्षण के तहत डिवाइस को इंजेक्ट करें।

void setMetricCollectors ( collectors) setMetricCollectors ( collectors)

परीक्षण चलाने के लिए परिभाषित IMetricCollector की सूची सेट करता है।

boolean shouldRetry (int attemptJustExecuted, previousResults, skipList) shouldRetry (int attemptJustExecuted, previousResults, skipList) 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)) प्रत्यायोजित ERROR(IRetryDecision#shouldRetry(IRemoteTest, int, List)/com.android.tradefed.retry.IRetryDecision#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List) IRetryDecision#shouldRetry(IRemoteTest, int, List)) .

split (int shardCountHint)

split() का वैकल्पिक संस्करण जो शार्डकाउंट भी प्रदान करता है जिसे चलाने का प्रयास किया जाता है।

सार्वजनिक निर्माणकर्ता

स्थापितइंस्ट्रूमेंटेशनटेस्ट

public InstalledInstrumentationsTest ()

सार्वजनिक तरीके

डिवाइस प्राप्त करें

public ITestDevice getDevice ()

डिवाइस को परीक्षण के तहत प्राप्त करें.

रिटर्न
ITestDevice ITestDevice

दौड़ना

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

परीक्षण चलाता है, और परिणाम की रिपोर्ट श्रोता को देता है।

पैरामीटर
testInfo TestInformation : TestInformation ऑब्जेक्ट जिसमें परीक्षण चलाने के लिए उपयोगी जानकारी होती है।

listener ITestInvocationListener : परीक्षण परिणामों का ITestInvocationListener

फेंकता
DeviceNotAvailableException

सेटकॉन्फ़िगरेशन

public void setConfiguration (IConfiguration configuration)

उपयोग में आने वाले IConfiguration इंजेक्ट करता है।

पैरामीटर
configuration IConfiguration

सेटडिवाइस

public void setDevice (ITestDevice device)

परीक्षण के तहत डिवाइस को इंजेक्ट करें।

पैरामीटर
device ITestDevice : उपयोग करने योग्य ITestDevice

सेटमेट्रिककलेक्टर्स

public void setMetricCollectors ( collectors)

परीक्षण चलाने के लिए परिभाषित IMetricCollector की सूची सेट करता है।

पैरामीटर
collectors

पुन:प्रयास करना चाहिए

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)) प्रत्यायोजित 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 यदि हमें पुनः प्रयास करना चाहिए तो सत्य है, अन्यथा असत्य है।

फेंकता
DeviceNotAvailableException

विभाजित करना

public  split (int shardCountHint)

split() का वैकल्पिक संस्करण जो शार्डकाउंट भी प्रदान करता है जिसे चलाने का प्रयास किया जाता है। यह कुछ परीक्षण धावकों के लिए उपयोगी है जो कभी-कभी मनमाने ढंग से निर्णय नहीं ले सकते।

पैरामीटर
shardCountHint int : प्रयास किया गया शार्ड काउंट।

रिटर्न
यदि परीक्षण वर्तमान में शार्डेबल नहीं है तो उप-परीक्षणों का एक संग्रह अलग से निष्पादित किया जाएगा या null