RetryResultForwarder
public class RetryResultForwarder
extends ResultForwarder
java.lang.Oggetto | ||
↳ | com.android.tradefed.result.ResultForwarder | |
↳ | com.android.tradefed.result.RetryResultForwarder |
Un'estensione di ResultForwarder
che spinge sempre a un determinato numero di tentativi.
Riepilogo
Costruttori pubblici | |
---|---|
RetryResultForwarder (int attemptNumber, ITestInvocationListener... listeners) |
Metodi pubblici | |
---|---|
void | testRunStarted (String runName, int testCount) Segnala l'inizio di un'esecuzione di prova. |
void | testRunStarted (String runName, int testCount, int attemptNumber) Segnala l'inizio di un'esecuzione di prova. |
Costruttori pubblici
RetryResultForwarder
public RetryResultForwarder (int attemptNumber, ITestInvocationListener... listeners)
Parametri | |
---|---|
attemptNumber | int |
listeners | ITestInvocationListener |
Metodi pubblici
testRunStarted
public void testRunStarted (String runName, int testCount)
Segnala l'inizio di un'esecuzione di prova.
Parametri | |
---|---|
runName | String : il nome dell'esecuzione del test |
testCount | int : numero totale di test nell'esecuzione del test |
testRunStarted
public void testRunStarted (String runName, int testCount, int attemptNumber)
Segnala l'inizio di un'esecuzione di prova.
Parametri | |
---|---|
runName | String : il nome dell'esecuzione del test |
testCount | int : numero totale di test nell'esecuzione del test |
attemptNumber | int : numero d'ordine, che identifica i diversi tentativi dello stesso runName che vengono eseguiti più volte. Il tryNumber è indicizzato a 0 e dovrebbe incrementare ogni volta che si verifica una nuova esecuzione. ad esempio, un test viene ripetuto in modo granulare 3 volte, dovrebbe avere 4 esecuzioni totali con lo stesso runName e il numero di tentativi è compreso tra 0 e 3. |