RetryLogSaverResultForwarder

public class RetryLogSaverResultForwarder
extends LogSaverResultForwarder

java.lang.Object
com.android.tradefed.result.ResultForwarder
com.android.tradefed.result.LogSaverResultForwarder
com.android.tradefed.retry.RetryLogSaverResultForwarder


Spedizioniere che gestisce anche il superamento del tentativo attuale in cui ci troviamo.

Riepilogo

Costruttori pubblici

RetryLogSaverResultForwarder ( ILogSaver logSaver, listeners) RetryLogSaverResultForwarder ( ILogSaver logSaver, listeners)

Metodi pubblici

void incrementAttempt ()

Incrementa il numero di tentativi.

void testRunStarted (String runName, int testCount)

Segnala l'inizio di un'esecuzione di prova.

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

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

RetryLogSaverResultForwarder

public RetryLogSaverResultForwarder (ILogSaver logSaver, 
                 listeners)

Parametri
logSaver ILogSaver

listeners

Metodi pubblici

incrementoTentativo

public void incrementAttempt ()

Incrementa il numero di tentativi.

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, 
                long startTime)

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.

startTime long : l'ora di inizio dell'esecuzione, misurata tramite System.currentTimeMillis()

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.