DeviceTestSuite
public
class
DeviceTestSuite
extends TestSuite
implements
IDeviceTest,
IRemoteTest
| java.lang.Object | ||
| ↳ | junit.framework.TestSuite | |
| ↳ | com.android.tradefed.testtype.DeviceTestSuite | |
חבילת בדיקות JUnit שבעזרתה אפשר לבדוק את השירותים IRemoteTest ו-IDeviceTest.
סיכום
קונסטרוקטורים גלויים לכולם | |
|---|---|
DeviceTestSuite()
|
|
DeviceTestSuite(Class<?> testClass)
|
|
שיטות ציבוריות | |
|---|---|
void
|
addTestSuite(Class<T> testClass)
הוספת הבדיקות מהכיתה הנתונה לחבילה |
ITestDevice
|
getDevice()
מקבלים את המכשיר לבדיקה. |
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
מפעיל את הבדיקות ומדווח על התוצאות למאזין. |
void
|
runTest(Test test, TestResult result)
שינוי של שיטת ההורה כדי להעביר מכשיר לבדיקה כלולה |
void
|
setDevice(ITestDevice device)
מזריקים את המכשיר שנבדק. |
קונסטרוקטורים גלויים לכולם
DeviceTestSuite
public DeviceTestSuite ()
DeviceTestSuite
public DeviceTestSuite (Class<?> testClass)
| פרמטרים | |
|---|---|
testClass |
Class |
שיטות ציבוריות
addTestSuite
public void addTestSuite (Class<T> testClass)
הוספת הבדיקות מהכיתה הנתונה לחבילה
| פרמטרים | |
|---|---|
testClass |
Class |
ראן
public void run (TestInformation testInfo, ITestInvocationListener listener)
מפעיל את הבדיקות ומדווח על התוצאות למאזין.
| פרמטרים | |
|---|---|
testInfo |
TestInformation: האובייקט TestInformation שמכיל מידע שימושי להרצת בדיקות. |
listener |
ITestInvocationListener: ITestInvocationListener של תוצאות הבדיקה |
| זריקות | |
|---|---|
DeviceNotAvailableException |
|
runTest
public void runTest (Test test,
TestResult result)שינוי של שיטת ההורה כדי להעביר מכשיר לבדיקה כלולה
| פרמטרים | |
|---|---|
test |
Test |
result |
TestResult |
setDevice
public void setDevice (ITestDevice device)
מזריקים את המכשיר שנבדק.
| פרמטרים | |
|---|---|
device |
ITestDevice: ה-ITestDevice לשימוש |