JarHostTest.HostTestListener
public
class
JarHostTest.HostTestListener
extends ResultForwarder
| java.lang.Object | ||
| ↳ | com.android.tradefed.result.ResultForwarder | |
| ↳ | com.android.compatibility.common.tradefed.testtype.JarHostTest.HostTestListener | |
أداة معالجة برنامج التضمين التي تعيد توجيه جميع الأحداث باستثناء testRunStarted() وtestRunEnded() إلى أداة المعالجة المضمّنة. سيؤدي كل صف اختبار في ملف jar إلى استدعاء هذه الأحداث، التي يحجبها HostTestListener عن المستمعين لتسجيلها في وحدة التحكّم وإعداد تقارير النتائج.
ملخّص
طُرق وضع التصميم العامة | |
|---|---|
HostTestListener(ITestInvocationListener listener)
|
|
الإجراءات العامة | |
|---|---|
void
|
testRunEnded(long elapsedTime, Map<String, String> metrics)
|
void
|
testRunEnded(long elapsedTime, HashMap<String, MetricMeasurement.Metric> metrics)
تقارير نهاية عملية الاختبار |
void
|
testRunStarted(String name, int numTests)
تسجّل هذه السمة بداية تشغيل تجريبي. |
طُرق وضع التصميم العامة
HostTestListener
public HostTestListener (ITestInvocationListener listener)
| المعلَمات | |
|---|---|
listener |
ITestInvocationListener |
الإجراءات العامة
testRunEnded
public void testRunEnded (long elapsedTime,
Map<String, String> metrics)| المعلَمات | |
|---|---|
elapsedTime |
long |
metrics |
Map |
testRunEnded
public void testRunEnded (long elapsedTime,
HashMap<String, MetricMeasurement.Metric> metrics)تقارير نهاية عملية الاختبار FIXME: We cannot have two Map<> interfaces with different type, so we have to use HashMap here.
| المعلَمات | |
|---|---|
elapsedTime |
long: الوقت المنقضي الذي أبلغ عنه الجهاز، بالمللي ثانية |
metrics |
HashMap: أزواج المفتاح/القيمة التي يتمّ تسجيلها في نهاية عملية الاختبار باستخدام Metric. |
testRunStarted
public void testRunStarted (String name,
int numTests)تسجّل هذه السمة بداية تشغيل تجريبي.
| المعلَمات | |
|---|---|
name |
String: اسم عملية التشغيل التجريبي |
numTests |
int: إجمالي عدد الاختبارات في عملية التشغيل التجريبي |