BaseRetryDecision

public class BaseRetryDecision
extends Object implements IConfigurationReceiver, IRetryDecision, ITestInformationReceiver

java.lang.Object
   ↳ com.android.tradefed.retry.BaseRetryDecision


הטמעה בסיסית של IRetryDecision. בהטמעה הבסיסית נלקחים בחשבון רק אותות מקומיים.

סיכום

קונסטרוקטורים גלויים לכולם

BaseRetryDecision()

ה-constructor של ההחלטה לניסיון חוזר

שיטות ציבוריות

void addLastAttempt( lastResults)

סביר להניח ש-ERROR(/#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List)) יקרא לפני הניסיון האחרון לניסיון חוזר, כך שיכול להיות שלא נקבל את תוצאות הניסיון האחרון לצורכי סטטיסטיקה.

void addToSkipRetryList(String filterEntry)

מוסיפים רשומה כדי לדלג על הניסיון החוזר.

getCommandLineArgs()

הפונקציה מחזירה את הארגומנטים של שורת הפקודה להחלטה על ניסיון חוזר.

CurrentInvocation.IsolationGrade getIsolationGrade()
int getMaxTestCaseAttempts()

המספר המקסימלי של ניסיונות לכל הפעלת בדיקה במהלך ניסיון חוזר אוטומטי.

int getMaxTestCaseAttempts(ModuleDefinition module)

מספר הניסיונות המקסימלי לכל הרצה של בדיקה במודול נתון במהלך הניסיון האוטומטי החוזר.

int getMaxTestRunAttempts()

המספר המקסימלי של ניסיונות לכל הפעלת בדיקה במהלך ניסיון חוזר אוטומטי.

int getMaxTestRunAttempts(ModuleDefinition module)

מספר הניסיונות המקסימלי לכל הרצה של בדיקה במודול נתון במהלך הניסיון האוטומטי החוזר.

RetryStatistics getRetryStatistics()

הפונקציה מחזירה את הערך RetryStatistics שמייצג את הניסיון החוזר.

RetryStrategy getRetryStrategy()

הערך של RetryStrategy שמשמש במהלך הניסיון החוזר האוטומטי.

getSkipRetrySet()
TestInformation getTestInformation()
boolean isAutoRetryEnabled()

האם להפעיל ניסיון חוזר או לא.

boolean rebootAtLastAttempt()

אם להפעיל מחדש את המכשיר לפני הניסיון האחרון.

void setConfiguration(IConfiguration configuration)

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

void setInvocationContext(IInvocationContext context)

הגדרת ההקשר הנוכחי של ההפעלה.

void setTestInformation(TestInformation testInformation)
boolean shouldRetry(IRemoteTest test, ModuleDefinition module, int attemptJustExecuted, previousResults, DeviceNotAvailableException dnae)

מחליטים אם לנסות שוב או לא.

boolean shouldRetry(IRemoteTest test, int attemptJustExecuted, previousResults)

מחליטים אם לנסות שוב או לא.

RetryPreparationDecision shouldRetryPreparation(ModuleDefinition module, int attempt, int maxAttempt)

קובעים אם לנסות שוב את הכנת המודול.

boolean useUpdatedReporting()

הפונקציה מחזירה את הערך true אם צריך להשתמש בדיווח המעודכן.

שיטות מוגנות

void isolateRetry( devices)

קונסטרוקטורים גלויים לכולם

BaseRetryDecision

public BaseRetryDecision ()

ה-constructor של ההחלטה לניסיון חוזר

שיטות ציבוריות

addLastAttempt

public void addLastAttempt ( lastResults)

סביר להניח ש-ERROR(/#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List)) יקרא לפני הניסיון האחרון לניסיון חוזר, כך שיכול להיות שלא נקבל את תוצאות הניסיון האחרון לצורכי סטטיסטיקה. השיטה הזו מאפשרת לספק את התוצאות האלה לצורך חישובים סטטיסטיים תקינים.

addToSkipRetryList

public void addToSkipRetryList (String filterEntry)

מוסיפים רשומה כדי לדלג על הניסיון החוזר.

פרמטרים
filterEntry String

getCommandLineArgs

public  getCommandLineArgs ()

הפונקציה מחזירה את הארגומנטים של שורת הפקודה להחלטה על ניסיון חוזר.

החזרות

getIsolationGrade

public CurrentInvocation.IsolationGrade getIsolationGrade ()

החזרות
CurrentInvocation.IsolationGrade

getMaxTestCaseAttempts

public int getMaxTestCaseAttempts ()

המספר המקסימלי של ניסיונות לכל הפעלת בדיקה במהלך ניסיון חוזר אוטומטי.

החזרות
int

getMaxTestCaseAttempts

public int getMaxTestCaseAttempts (ModuleDefinition module)

מספר הניסיונות המקסימלי לכל הרצה של בדיקה במודול נתון במהלך הניסיון האוטומטי החוזר.

פרמטרים
module ModuleDefinition

החזרות
int

getMaxTestRunAttempts

public int getMaxTestRunAttempts ()

המספר המקסימלי של ניסיונות לכל הפעלת בדיקה במהלך ניסיון חוזר אוטומטי.

החזרות
int

getMaxTestRunAttempts

public int getMaxTestRunAttempts (ModuleDefinition module)

מספר הניסיונות המקסימלי לכל הרצה של בדיקה במודול נתון במהלך הניסיון האוטומטי החוזר.

פרמטרים
module ModuleDefinition

החזרות
int

getRetryStatistics

public RetryStatistics getRetryStatistics ()

הפונקציה מחזירה את הערך RetryStatistics שמייצג את הניסיון החוזר.

החזרות
RetryStatistics

getRetryStrategy

public RetryStrategy getRetryStrategy ()

הערך של RetryStrategy שמשמש במהלך הניסיון החוזר האוטומטי.

החזרות
RetryStrategy

getSkipRetrySet

public  getSkipRetrySet ()

החזרות

getTestInformation

public TestInformation getTestInformation ()

החזרות
TestInformation

isAutoRetryEnabled

public boolean isAutoRetryEnabled ()

האם להפעיל ניסיון חוזר או לא.

החזרות
boolean

rebootAtLastAttempt

public boolean rebootAtLastAttempt ()

אם להפעיל מחדש את המכשיר לפני הניסיון האחרון.

החזרות
boolean

setConfiguration

public void setConfiguration (IConfiguration configuration)

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

פרמטרים
configuration IConfiguration

setInvocationContext

public void setInvocationContext (IInvocationContext context)

הגדרת ההקשר הנוכחי של ההפעלה.

פרמטרים
context IInvocationContext

setTestInformation

public void setTestInformation (TestInformation testInformation)

פרמטרים
testInformation TestInformation

shouldRetry

public boolean shouldRetry (IRemoteTest test, 
                ModuleDefinition module, 
                int attemptJustExecuted, 
                 previousResults, 
                DeviceNotAvailableException dnae)

מחליטים אם לנסות שוב או לא. בנוסף, מבצעים את השינויים הנדרשים ב-IRemoteTest כדי לנסות שוב (החלת מסננים וכו').

פרמטרים
test IRemoteTest: ה-IRemoteTest שפעל זה עתה.

module ModuleDefinition: האובייקט ModuleDefinition של מודול הבדיקה.

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

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

dnae DeviceNotAvailableException: DeviceNotAvailableException של חריגה של מכשיר לא זמין.

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

זריקות
DeviceNotAvailableException

shouldRetry

public boolean shouldRetry (IRemoteTest test, 
                int attemptJustExecuted, 
                 previousResults)

מחליטים אם לנסות שוב או לא. בנוסף, מבצעים את השינויים הנדרשים ב-IRemoteTest כדי לנסות שוב (החלת מסננים וכו').

פרמטרים
test IRemoteTest: ה-IRemoteTest שפעל זה עתה.

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

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

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

זריקות
DeviceNotAvailableException

shouldRetryPreparation

public RetryPreparationDecision shouldRetryPreparation (ModuleDefinition module, 
                int attempt, 
                int maxAttempt)

קובעים אם לנסות שוב את הכנת המודול.

פרמטרים
module ModuleDefinition

attempt int

maxAttempt int

החזרות
RetryPreparationDecision

useUpdatedReporting

public boolean useUpdatedReporting ()

הפונקציה מחזירה את הערך true אם צריך להשתמש בדיווח המעודכן.

החזרות
boolean

שיטות מוגנות

isolateRetry

protected void isolateRetry ( devices)

פרמטרים
devices

זריקות
DeviceNotAvailableException