InstalledInstrumentationsTest
public
class
InstalledInstrumentationsTest
extends Object
implements
IAutoRetriableTest,
IConfigurationReceiver,
IDeviceTest,
IMetricCollectorReceiver,
IShardableTest
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.InstalledInstrumentationsTest |
تنفيذ جميع أدوات القياس المتوفّرة على الجهاز الحالي
ملخّص
طُرق وضع التصميم العامة | |
|---|---|
InstalledInstrumentationsTest()
|
|
الإجراءات العامة | |
|---|---|
ITestDevice
|
getDevice()
احصل على الجهاز الخاضع للاختبار. |
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
تُجري الاختبارات وتُبلغ المستمع بالنتيجة. |
void
|
setConfiguration(IConfiguration configuration)
يُدرِج |
void
|
setDevice(ITestDevice device)
أدخِل الجهاز الخاضع للاختبار. |
void
|
setMetricCollectors(List<IMetricCollector> collectors)
تضبط هذه السمة قائمة |
boolean
|
shouldRetry(int attemptJustExecuted, List<TestRunResult> previousResults, Set<String> skipList)
تم التفويض من قِبل " |
Collection<IRemoteTest>
|
split(int shardCountHint)
نسخة بديلة من |
طُرق وضع التصميم العامة
InstalledInstrumentationsTest
public InstalledInstrumentationsTest ()
الإجراءات العامة
getDevice
public ITestDevice getDevice ()
احصل على الجهاز الخاضع للاختبار.
| المرتجعات | |
|---|---|
ITestDevice |
ITestDevice |
ضربة طويلة
public void run (TestInformation testInfo, ITestInvocationListener listener)
تُجري الاختبارات وتُبلغ المستمع بالنتيجة.
| المعلَمات | |
|---|---|
testInfo |
TestInformation: عنصر TestInformation يحتوي على معلومات مفيدة لتنفيذ الاختبارات. |
listener |
ITestInvocationListener: ITestInvocationListener نتائج الاختبار |
| عمليات الطرح | |
|---|---|
DeviceNotAvailableException |
|
setConfiguration
public void setConfiguration (IConfiguration configuration)
يُدرِج IConfiguration المستخدَم.
| المعلَمات | |
|---|---|
configuration |
IConfiguration |
setDevice
public void setDevice (ITestDevice device)
أدخِل الجهاز الخاضع للاختبار.
| المعلَمات | |
|---|---|
device |
ITestDevice: ITestDevice المطلوب استخدامه |
setMetricCollectors
public void setMetricCollectors (List<IMetricCollector> collectors)
تضبط هذه السمة قائمة IMetricCollector المحدّدة للتشغيل التجريبي.
| المعلَمات | |
|---|---|
collectors |
List |
shouldRetry
public boolean shouldRetry (int attemptJustExecuted,
List<TestRunResult> previousResults,
Set<String> skipList)تم التفويض من قِبل "IRetryDecision.shouldRetry(IRemoteTest,int,List)". تحديد ما إذا كان يجب محاولة إعادة المحاولة أم لا أجرِ أيضًا أي تغييرات ضرورية على IRemoteTest ليتم إعادة محاولة تنفيذها (تطبيق الفلاتر، وإعداد عملية التنفيذ التالية، وما إلى ذلك).
| المعلَمات | |
|---|---|
attemptJustExecuted |
int: رقم المحاولة التي أجريناها للتو. |
previousResults |
List: قائمة TestRunResult للاختبار الذي تم تنفيذه للتو |
skipList |
Set: مجموعة العناصر التي لا يجب إعادة محاولة تنفيذها. |
| المرتجعات | |
|---|---|
boolean |
يتم عرض القيمة "صحيح" إذا كان يجب إعادة المحاولة، و"خطأ" في الحالات الأخرى. |
| عمليات الطرح | |
|---|---|
DeviceNotAvailableException |
|
تقسيم
public Collection<IRemoteTest> split (int shardCountHint)
نسخة بديلة من split() توفّر أيضًا shardCount الذي تتم محاولة تنفيذه. ويكون ذلك مفيدًا لبعض أدوات تشغيل الاختبار التي لا يمكنها اتخاذ قرار بشكل عشوائي في بعض الأحيان.
| المعلَمات | |
|---|---|
shardCountHint |
int: عدد الأجزاء التي تمت محاولة إنشائها. |
| المرتجعات | |
|---|---|
Collection<IRemoteTest> |
مجموعة من الاختبارات الفرعية التي سيتم تنفيذها بشكل منفصل أو null إذا كان الاختبار غير قابل للتجزئة حاليًا |