ExecutableTargetTest

public class ExecutableTargetTest
extends ExecutableBaseTest implements IDeviceTest

java.lang.Object
   ↳ com.android.tradefed.testtype.binary.ExecutableBaseTest
     ↳ com.android.tradefed.testtype.binary.ExecutableTargetTest


यह टारगेट पर चलने वाली एक्ज़ीक्यूटेबल के लिए टेस्ट रनर है. रनर, IDeviceTest को लागू करता है, क्योंकि बाइनरी किसी डिवाइस पर चलती है.

खास जानकारी

कॉन्स्टेंट

String DEVICE_LOST_ERROR

String ROOT_LOST_ERROR

पब्लिक कंस्ट्रक्टर

ExecutableTargetTest()

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

String findBinary(String binary)

इसे चलाने के लिए, बाइनरी खोजें.

boolean getCollectTestsOnly()
ITestDevice getDevice()

टेस्ट डिवाइस को चालू करें.

void runBinary(String binaryPath, ITestInvocationListener listener, TestDescription description)

दिए गए पाथ पर बाइनरी को असल में चलाता है.

void setDevice(ITestDevice device)

जांच किए जाने वाले डिवाइस को इंजेक्ट करें.

FailureDescription shouldAbortRun(TestDescription description)

देखें कि क्या testRun को समय से पहले खत्म किया जाना चाहिए.

सुरक्षित तरीके

void checkCommandResult(CommandResult result, ITestInvocationListener listener, TestDescription description)

टेस्ट कमांड का नतीजा देखें.

boolean doesRunBinaryGenerateTestResults()
boolean doesRunBinaryGenerateTestRuns()
boolean getSkipBinaryCheck()

कॉन्स्टेंट

DEVICE_LOST_ERROR

public static final String DEVICE_LOST_ERROR

स्थिर वैल्यू: "Device was lost prior to %s; aborting run."

ROOT_LOST_ERROR

public static final String ROOT_LOST_ERROR

स्थिर वैल्यू: "Root access was lost prior to %s; aborting run."

पब्लिक कंस्ट्रक्टर

ExecutableTargetTest

public ExecutableTargetTest ()

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

findBinary

public String findBinary (String binary)

इसे चलाने के लिए, बाइनरी खोजें.

पैरामीटर
binary String: बाइनरी का पाथ या सिर्फ़ बाइनरी का नाम.

रिटर्न
String बाइनरी का पाथ या अगर नहीं मिला, तो शून्य.

थ्रो
DeviceNotAvailableException

getCollectTestsOnly

public boolean getCollectTestsOnly ()

रिटर्न
boolean

getDevice

public ITestDevice getDevice ()

टेस्ट डिवाइस को चालू करें.

रिटर्न
ITestDevice ITestDevice

runBinary

public void runBinary (String binaryPath, 
                ITestInvocationListener listener, 
                TestDescription description)

दिए गए पाथ पर बाइनरी को असल में चलाता है.

पैरामीटर
binaryPath String: बाइनरी का पाथ.

listener ITestInvocationListener: वह लिसनर जहां नतीजों की जानकारी देनी है.

description TestDescription: जांच जारी है.

थ्रो
DeviceNotAvailableException

setDevice

public void setDevice (ITestDevice device)

जांच किए जाने वाले डिवाइस को इंजेक्ट करें.

पैरामीटर
device ITestDevice: इस्तेमाल करने के लिए ITestDevice

shouldAbortRun

public FailureDescription shouldAbortRun (TestDescription description)

देखें कि क्या testRun को समय से पहले खत्म किया जाना चाहिए.

पैरामीटर
description TestDescription: जांच जारी है.

रिटर्न
FailureDescription अगर रन लूप को खत्म करना है, तो FailureDescription.

सुरक्षित तरीके

checkCommandResult

protected void checkCommandResult (CommandResult result, 
                ITestInvocationListener listener, 
                TestDescription description)

जांच करने वाले निर्देश का नतीजा देखें.

पैरामीटर
result CommandResult: निर्देश CommandResult का टेस्ट रिज़ल्ट

listener ITestInvocationListener: ITestInvocationListener

description TestDescription: जांच जारी है.

doesRunBinaryGenerateTestResults

protected boolean doesRunBinaryGenerateTestResults ()

रिटर्न
boolean

doesRunBinaryGenerateTestRuns

protected boolean doesRunBinaryGenerateTestRuns ()

रिटर्न
boolean

getSkipBinaryCheck

protected boolean getSkipBinaryCheck ()

रिटर्न
boolean