PtsBotTest
public
class
PtsBotTest
extends Object
implements
IRemoteTest,
IShardableTest,
ITestFilterReceiver,
ITestLogger
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.pandora.PtsBotTest |
إجراء اختبارات PTS-bot PTS-bot هي عملية تشغيل آلي كاملة لمجموعة أدوات ضبط ملفات تعريف البلوتوث، وهي أداة اختبار يوفّرها معيار البلوتوث لإجراء اختبارات شهادة اعتماد مضيف البلوتوث (راجِع https://www.bluetooth.com/develop-with-bluetooth/qualification-listing/qualification-test-tools/profile-tuning-suite/).
ملخّص
الصفوف المتداخلة | |
|---|---|
class |
PtsBotTest.TestFlagConfiguration
|
class |
PtsBotTest.TestSyspropConfiguration
|
طُرق وضع التصميم العامة | |
|---|---|
PtsBotTest()
|
|
الإجراءات العامة | |
|---|---|
void
|
addAllExcludeFilters(Set<String> filters)
تضيف هذه السمة |
void
|
addAllIncludeFilters(Set<String> filters)
تضيف هذه السمة |
void
|
addExcludeFilter(String filter)
تضيف هذه السمة فلترًا لتحديد الاختبارات التي يجب استبعادها. |
void
|
addIncludeFilter(String filter)
تضيف هذه السمة فلترًا لتحديد الاختبارات التي سيتم تضمينها. |
void
|
clearExcludeFilters()
احذف جميع فلاتر الاستبعاد التي يتم تتبُّعها حاليًا. |
void
|
clearIncludeFilters()
احذف جميع فلاتر التضمين التي يتم تتبُّعها حاليًا. |
Set<String>
|
getExcludeFilters()
تعرِض هذه السمة عدد فلاتر الاستبعاد الحالية. |
Set<String>
|
getIncludeFilters()
تعرِض هذه السمة |
PtsBotTest.TestSyspropConfiguration
|
getSyspropConfiguration()
|
PtsBotTest.TestFlagConfiguration
|
getTestFlagConfiguration()
|
void
|
initFlagsConfig(ITestDevice testDevice, File testConfigFile)
|
void
|
initSystemPropertiesConfig(File testConfigFile)
|
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
تُجري الاختبارات وتُبلغ المستمع بالنتيجة. |
Collection<IRemoteTest>
|
split(int shardCountHint)
نسخة بديلة من |
طُرق وضع التصميم العامة
PtsBotTest
public PtsBotTest ()
الإجراءات العامة
addAllExcludeFilters
public void addAllExcludeFilters (Set<String> filters)
تضيف هذه السمة Set الفلاتر التي يجب استبعاد الاختبارات التي تتضمّنها.
| المعلَمات | |
|---|---|
filters |
Set |
addAllIncludeFilters
public void addAllIncludeFilters (Set<String> filters)
تضيف هذه السمة Set فلاتر الاختبارات التي سيتم تضمينها.
| المعلَمات | |
|---|---|
filters |
Set |
addExcludeFilter
public void addExcludeFilter (String filter)
تضيف هذه السمة فلترًا لتحديد الاختبارات التي يجب استبعادها.
| المعلَمات | |
|---|---|
filter |
String |
addIncludeFilter
public void addIncludeFilter (String filter)
تضيف هذه السمة فلترًا لتحديد الاختبارات التي سيتم تضمينها.
| المعلَمات | |
|---|---|
filter |
String |
clearExcludeFilters
public void clearExcludeFilters ()
احذف جميع فلاتر الاستبعاد التي يتم تتبُّعها حاليًا.
clearIncludeFilters
public void clearIncludeFilters ()
احذف جميع فلاتر التضمين التي يتم تتبُّعها حاليًا.
getExcludeFilters
public Set<String> getExcludeFilters ()
تعرِض هذه السمة عدد فلاتر الاستبعاد الحالية.Set
| المرتجعات | |
|---|---|
Set<String> |
|
getIncludeFilters
public Set<String> getIncludeFilters ()
تعرِض هذه السمة Set فلاتر التضمين الحالية.
| المرتجعات | |
|---|---|
Set<String> |
|
getSyspropConfiguration
public PtsBotTest.TestSyspropConfiguration getSyspropConfiguration ()
| المرتجعات | |
|---|---|
PtsBotTest.TestSyspropConfiguration |
|
getTestFlagConfiguration
public PtsBotTest.TestFlagConfiguration getTestFlagConfiguration ()
| المرتجعات | |
|---|---|
PtsBotTest.TestFlagConfiguration |
|
initFlagsConfig
public void initFlagsConfig (ITestDevice testDevice, File testConfigFile)
| المعلَمات | |
|---|---|
testDevice |
ITestDevice |
testConfigFile |
File |
initSystemPropertiesConfig
public void initSystemPropertiesConfig (File testConfigFile)
| المعلَمات | |
|---|---|
testConfigFile |
File |
ضربة طويلة
public void run (TestInformation testInfo, ITestInvocationListener listener)
تُجري الاختبارات وتُبلغ المستمع بالنتيجة.
| المعلَمات | |
|---|---|
testInfo |
TestInformation: عنصر TestInformation يحتوي على معلومات مفيدة لتنفيذ الاختبارات. |
listener |
ITestInvocationListener: ITestInvocationListener نتائج الاختبار |
| عمليات الطرح | |
|---|---|
DeviceNotAvailableException |
|
تقسيم
public Collection<IRemoteTest> split (int shardCountHint)
نسخة بديلة من split() توفّر أيضًا shardCount الذي تتم محاولة تنفيذه. ويكون ذلك مفيدًا لبعض أدوات تشغيل الاختبار التي لا يمكنها اتخاذ قرار بشكل عشوائي في بعض الأحيان.
| المعلَمات | |
|---|---|
shardCountHint |
int: عدد الأجزاء التي تمت محاولة إنشائها. |
| المرتجعات | |
|---|---|
Collection<IRemoteTest> |
مجموعة من الاختبارات الفرعية التي سيتم تنفيذها بشكل منفصل أو null إذا كان الاختبار غير قابل للتجزئة حاليًا |