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: يُرجى إبلاغ المستمع بمكان الإبلاغ عن النتائج. |
description |
TestDescription: الاختبار قيد التقدّم. |
| عمليات الرمي | |
|---|---|
DeviceNotAvailableException |
|
الطرق المحمية
doesRunBinaryGenerateTestResults
protected boolean doesRunBinaryGenerateTestResults ()
| المرتجعات | |
|---|---|
boolean |
|
getAllTestCommands
protectedgetAllTestCommands ()
حوِّل mBinaryPaths إلى mTestCommands للحفاظ على الاتساق.
| المرتجعات | |
|---|---|
|
عنصر MapERROR(/LinkedHashMap)<string, string=""> من testCommands</string,> |