KUnitModuleTest

public class KUnitModuleTest
extends ExecutableTargetTest

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


डिवाइस पर KUnit टेस्ट मॉड्यूल चलाने के लिए, टेस्ट रनर.

खास जानकारी

फ़ील्ड

public static final String KUNIT_DEBUGFS_PATH

public static final String KUNIT_RESULTS_FMT

सार्वजनिक कंस्ट्रक्टर

KUnitModuleTest()

पब्लिक मेथड

String findBinary(String binary)

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

boolean getCollectTestsOnly()
void run(TestInformation testInfo, ITestInvocationListener listener)

टेस्ट चलाता है और नतीजों की जानकारी, लिसनर को देता है.

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

दिए गए पाथ पर बाइनरी चलाता है.

प्रोटेक्टेड मेथड

boolean doesRunBinaryGenerateTestResults()
Map<String, String> getAllTestCommands()

कंसिस्टेंसी बनाए रखने के लिए, mBinaryPaths को mTestCommands में बदलें.

फ़ील्ड

KUNIT_DEBUGFS_PATH

public static final String KUNIT_DEBUGFS_PATH

KUNIT_RESULTS_FMT

public static final String KUNIT_RESULTS_FMT

सार्वजनिक कंस्ट्रक्टर

KUnitModuleTest

public KUnitModuleTest ()

पब्लिक मेथड

findBinary

public String findBinary (String binary)

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

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

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

थ्रॉ
DeviceNotAvailableException

getCollectTestsOnly

public boolean getCollectTestsOnly ()

रिटर्न
boolean

रन

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

टेस्ट चलाता है और नतीजों की जानकारी, लिसनर को देता है.

पैरामीटर
testInfo TestInformation: TestInformation ऑब्जेक्ट, जिसमें टेस्ट चलाने के लिए काम की जानकारी होती है ताकि टेस्ट चलाए जा सकें.

listener ITestInvocationListener: टेस्ट के नतीजों का ITestInvocationListener

थ्रॉ
DeviceNotAvailableException

runBinary

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

दिए गए पाथ पर बाइनरी चलाता है.

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

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

description TestDescription: जारी टेस्ट.

थ्रॉ
DeviceNotAvailableException
IOException

प्रोटेक्टेड मेथड

doesRunBinaryGenerateTestResults

protected boolean doesRunBinaryGenerateTestResults ()

रिटर्न
boolean

getAllTestCommands

protected Map<String, String> getAllTestCommands ()

कंसिस्टेंसी बनाए रखने के लिए, mBinaryPaths को mTestCommands में बदलें.

रिटर्न
Map<String, String> testCommands का LinkedHashMap<string, string="">.

</string,>