RiprovaResultForwarder

public class RetryResultForwarder
extends ResultForwarder

java.lang.Object
com.android.tradefed.result.ResultForwarder
com.android.tradefed.result.RetryResultForwarder


Un'estensione di ResultForwarder che esegue sempre il push 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 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 dell'ordine, che identifica i diversi tentativi dello stesso runName eseguiti più volte. Il tryNumber è indicizzato a 0 e dovrebbe incrementare ogni volta che si verifica una nuova esecuzione. Ad esempio, un test granulare viene ripetuto 3 volte, dovrebbe avere 4 esecuzioni totali con lo stesso runName e il tryNumber è compreso tra 0 e 3.