IRetryDecision
public
interface
IRetryDecision
| com.android.tradefed.retry.IRetryDecision |
Interfaccia che determina il nuovo tentativo e applica il filtro alla classe per un nuovo tentativo più mirato.
Riepilogo
Metodi pubblici | |
|---|---|
abstract
void
|
addLastAttempt(List<TestRunResult> lastResults)
|
default
void
|
addToSkipRetryList(String filterEntry)
Aggiungi una voce per evitare di riprovare. |
abstract
List<String>
|
getCommandLineArgs()
Restituisce gli argomenti della riga di comando per la decisione di riprovare. |
abstract
int
|
getMaxTestCaseAttempts()
Il numero massimo di tentativi per esecuzione del test durante il nuovo tentativo automatico. |
abstract
int
|
getMaxTestCaseAttempts(ModuleDefinition module)
Il numero massimo di tentativi per esecuzione del test per un determinato modulo durante il nuovo tentativo automatico. |
abstract
int
|
getMaxTestRunAttempts()
Il numero massimo di tentativi per esecuzione del test durante il nuovo tentativo automatico. |
abstract
int
|
getMaxTestRunAttempts(ModuleDefinition module)
Il numero massimo di tentativi per esecuzione del test per un determinato modulo durante il nuovo tentativo automatico. |
abstract
RetryStatistics
|
getRetryStatistics()
Restituisce l' |
abstract
RetryStrategy
|
getRetryStrategy()
Il |
abstract
boolean
|
isAutoRetryEnabled()
Indica se abilitare o meno il nuovo tentativo automatico. |
abstract
boolean
|
rebootAtLastAttempt()
Se riavviare o meno il dispositivo prima dell'ultimo tentativo. |
abstract
void
|
setInvocationContext(IInvocationContext context)
Imposta il contesto di chiamata corrente. |
abstract
boolean
|
shouldRetry(IRemoteTest test, ModuleDefinition module, int attemptJustExecuted, List<TestRunResult> previousResults, DeviceNotAvailableException dnae)
Decidi se tentare o meno un nuovo tentativo. |
abstract
boolean
|
shouldRetry(IRemoteTest test, int attemptJustExecuted, List<TestRunResult> previousResults)
Decidi se tentare o meno un nuovo tentativo. |
abstract
RetryPreparationDecision
|
shouldRetryPreparation(ModuleDefinition module, int attempt, int maxAttempt)
Decidi se riprovare o meno la preparazione del modulo. |
abstract
boolean
|
useUpdatedReporting()
Restituisce true se dobbiamo utilizzare i report aggiornati. |
Metodi pubblici
addLastAttempt
public abstract void addLastAttempt (List<TestRunResult> lastResults)
shouldRetry(IRemoteTest,int,List) verrà probabilmente chiamato prima dell'ultimo tentativo
di ripetizione, quindi potremmo non avere i risultati dell'ultimo tentativo per scopi statistici. Questo
metodo consente di fornire questi risultati per i calcoli statistici corretti.
addToSkipRetryList
public void addToSkipRetryList (String filterEntry)
Aggiungi una voce per evitare di riprovare.
| Parametri | |
|---|---|
filterEntry |
String |
getCommandLineArgs
public abstract List<String> getCommandLineArgs ()
Restituisce gli argomenti della riga di comando per la decisione di riprovare.
| Resi | |
|---|---|
List<String> |
|
getMaxTestCaseAttempts
public abstract int getMaxTestCaseAttempts ()
Il numero massimo di tentativi per esecuzione del test durante il nuovo tentativo automatico.
| Resi | |
|---|---|
int |
|
getMaxTestCaseAttempts
public abstract int getMaxTestCaseAttempts (ModuleDefinition module)
Il numero massimo di tentativi per esecuzione del test per un determinato modulo durante il nuovo tentativo automatico.
| Parametri | |
|---|---|
module |
ModuleDefinition |
| Resi | |
|---|---|
int |
|
getMaxTestRunAttempts
public abstract int getMaxTestRunAttempts ()
Il numero massimo di tentativi per esecuzione del test durante il nuovo tentativo automatico.
| Resi | |
|---|---|
int |
|
getMaxTestRunAttempts
public abstract int getMaxTestRunAttempts (ModuleDefinition module)
Il numero massimo di tentativi per esecuzione del test per un determinato modulo durante il nuovo tentativo automatico.
| Parametri | |
|---|---|
module |
ModuleDefinition |
| Resi | |
|---|---|
int |
|
getRetryStatistics
public abstract RetryStatistics getRetryStatistics ()
Restituisce l'RetryStatistics che rappresenta il tentativo.
| Resi | |
|---|---|
RetryStatistics |
|
getRetryStrategy
public abstract RetryStrategy getRetryStrategy ()
Il RetryStrategy utilizzato durante il nuovo tentativo automatico.
| Resi | |
|---|---|
RetryStrategy |
|
isAutoRetryEnabled
public abstract boolean isAutoRetryEnabled ()
Indica se abilitare o meno il nuovo tentativo automatico.
| Resi | |
|---|---|
boolean |
|
rebootAtLastAttempt
public abstract boolean rebootAtLastAttempt ()
Se riavviare o meno il dispositivo prima dell'ultimo tentativo.
| Resi | |
|---|---|
boolean |
|
setInvocationContext
public abstract void setInvocationContext (IInvocationContext context)
Imposta il contesto di chiamata corrente.
| Parametri | |
|---|---|
context |
IInvocationContext |
shouldRetry
public abstract boolean shouldRetry (IRemoteTest test, ModuleDefinition module, int attemptJustExecuted, List<TestRunResult> previousResults, DeviceNotAvailableException dnae)
Decidi se tentare o meno un nuovo tentativo. Apporta anche le modifiche necessarie al
IRemoteTest da riprovare (applicazione di filtri e così via).
| Parametri | |
|---|---|
test |
IRemoteTest: il IRemoteTest appena eseguito. |
module |
ModuleDefinition: l'oggetto ModuleDefinition per il modulo di test. |
attemptJustExecuted |
int: il numero del tentativo appena eseguito. |
previousResults |
List: l'elenco dei TestRunResult del test appena eseguito. |
dnae |
DeviceNotAvailableException: L'eccezione DeviceNotAvailableException del dispositivo non disponibile. |
| Resi | |
|---|---|
boolean |
True se è necessario riprovare, False in caso contrario. |
| Genera | |
|---|---|
DeviceNotAvailableException |
Può essere generato durante il ripristino del dispositivo |
shouldRetry
public abstract boolean shouldRetry (IRemoteTest test, int attemptJustExecuted, List<TestRunResult> previousResults)
Decidi se tentare o meno un nuovo tentativo. Apporta anche le modifiche necessarie al
IRemoteTest da riprovare (applicazione di filtri e così via).
| Parametri | |
|---|---|
test |
IRemoteTest: il IRemoteTest appena eseguito. |
attemptJustExecuted |
int: il numero del tentativo appena eseguito. |
previousResults |
List: l'elenco dei TestRunResult del test appena eseguito. |
| Resi | |
|---|---|
boolean |
True se è necessario riprovare, False in caso contrario. |
| Genera | |
|---|---|
DeviceNotAvailableException |
Può essere generato durante il ripristino del dispositivo |
shouldRetryPreparation
public abstract RetryPreparationDecision shouldRetryPreparation (ModuleDefinition module, int attempt, int maxAttempt)
Decidi se riprovare o meno la preparazione del modulo.
| Parametri | |
|---|---|
module |
ModuleDefinition |
attempt |
int |
maxAttempt |
int |
| Resi | |
|---|---|
RetryPreparationDecision |
|
useUpdatedReporting
public abstract boolean useUpdatedReporting ()
Restituisce true se dobbiamo utilizzare i report aggiornati.
| Resi | |
|---|---|
boolean |
|