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()
|
|
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 |
बाइनरी का पाथ या न मिलने पर शून्य. |
| थ्रो | |
|---|---|
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: नतीजों की रिपोर्ट करने के लिए, Listener. |
description |
TestDescription: जांच जारी है. |
| थ्रो | |
|---|---|
DeviceNotAvailableException |
|
सुरक्षित तरीके
doesRunBinaryGenerateTestResults
protected boolean doesRunBinaryGenerateTestResults ()
| रिटर्न | |
|---|---|
boolean |
|
getAllTestCommands
protectedgetAllTestCommands ()
एक जैसा रखने के लिए, mBinaryPaths को mTestCommands में बदलें.
| रिटर्न | |
|---|---|
|
testCommands का MapERROR(/LinkedHashMap)<string, string="">.</string,> |