RiprovaResultForwarder

public class RetryResultForwarder
extends ResultForwarder

java.lang.Object
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

RiprovaResultForwarder

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 in esecuzione

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 in esecuzione

attemptNumber int : numero d'ordine, che identifica i diversi tentativi dello stesso runName che vengono eseguiti più volte. Il numero tentativo è indicizzato a 0 e dovrebbe aumentare 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 tentativo è compreso tra 0 e 3.