RetryResultForwarder

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 push su 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 del test.

void testRunStarted(String runName, int testCount, int attemptNumber)

Segnala l'inizio di un'esecuzione del test.

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 del test.

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 del test.

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 eseguiti più volte. Il numero di tentativi è indicizzato da 0 e deve aumentare ogni volta che viene eseguita una nuova esecuzione. Ad esempio, un test viene riavviato granularmente 3 volte, deve avere 4 esecuzioni totali con lo stesso nome esecuzione e il numero di tentativi va da 0 a 3.