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)

הזרקת IConfiguration בשימוש.

void setDevice(ITestDevice device)

מזריקים את המכשיר לבדיקה.

void setMetricCollectors( collectors)

הגדרת רשימת ה-IMetricCollector שמוגדרים להרצת הבדיקה.

boolean shouldRetry(int attemptJustExecuted, previousResults, skipList)

הוענקה לך גישה על ידי ERROR(IRetryDecision.shouldRetry(IRemoteTest, int, List)/com.android.tradefed.retry.IRetryDecision#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List) IRetryDecision.shouldRetry(IRemoteTest, int, List)).

split(int shardCountHint)

גרסה חלופית של split() שמספקת גם את הערך של shardCount שרוצים להריץ.

יוצרים ציבוריים

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 ( collectors)

הגדרת רשימת ה-IMetricCollector שמוגדרים להרצת הבדיקה.

פרמטרים
collectors

shouldRetry

public boolean shouldRetry (int attemptJustExecuted, 
                 previousResults, 
                 skipList)

הוענקה לך גישה על ידי ERROR(IRetryDecision.shouldRetry(IRemoteTest, int, List)/com.android.tradefed.retry.IRetryDecision#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List) IRetryDecision.shouldRetry(IRemoteTest, int, List)). להחליט אם כדאי לנסות שוב. בנוסף, מבצעים את השינויים הנדרשים ב-IRemoteTest כדי לנסות שוב (החלת מסננים, הכנת ההרצה הבאה וכו').

פרמטרים
attemptJustExecuted int: מספר הניסיון שבוצע זה עתה.

previousResults : רשימת TestRunResult של הבדיקה שפועלת עכשיו.

skipList : קבוצת הפריטים שלא צריך לנסות שוב.

החזרות
boolean True אם צריך לנסות שוב, False אחרת.

זריקות
DeviceNotAvailableException

פיצול

public  split (int shardCountHint)

גרסה חלופית של split() שמספקת גם את הערך של shardCount שרוצים להריץ. האפשרות הזו שימושית לחלק מכלי הבדיקה שלא יכולים לקבל החלטות באופן שרירותי לפעמים.

פרמטרים
shardCountHint int: מספר הניסיונות ליצירת שבר.

החזרות
אוסף של בדיקות משנה שיופעלו בנפרד, או null אם לא ניתן לפצל את הבדיקה כרגע