Google is committed to advancing racial equity for Black communities. See how.
Halaman ini diterjemahkan oleh Cloud Translation API.
Switch to English

ShardListener

public class ShardListener
extends CollectingTestListener implements ISupportGranularResults

java.lang.Object
com.android.tradefed.result.CollectingTestListener
com.android.tradefed.invoker.ShardListener


ITestInvocationListener yang mengumpulkan hasil dari ITestInvocationListener permintaan (alias pemisahan permintaan untuk dijalankan di beberapa resource secara paralel), dan meneruskannya ke listener lain.

Ringkasan

Konstruktor publik

ShardListener (ITestInvocationListener main)

Buat ShardListener .

Metode publik

void invocationEnded (long elapsedTime)

void invocationFailed (FailureDescription failure)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void setSupportGranularResults (boolean enableGranularResults)
boolean supportGranularResults ()

void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)

void testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)

void testModuleEnded ()

void testModuleStarted (IInvocationContext moduleContext)

void testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics)

void testRunFailed (FailureDescription failure)

void testRunFailed (String failureMessage)

void testRunStarted (String name, int numTests, int attemptNumber, long startTime)

Konstruktor publik

ShardListener

public ShardListener (ITestInvocationListener main)

Buat ShardListener .

Parameter
main ITestInvocationListener : ITestInvocationListener hasil harus diteruskan. Untuk mencegah benturan dengan ShardListener lain, objek ini akan disinkronkan secara main saat meneruskan hasil. Dan hasil hanya akan dikirim setelah beling permintaan selesai.

Metode publik

invocationEnded

public void invocationEnded (long elapsedTime)

Parameter
elapsedTime long

seruanFailed

public void invocationFailed (FailureDescription failure)
.dll

Parameter
failure FailureDescription

seruanFailed

public void invocationFailed (Throwable cause)

Parameter
cause Throwable

invocationStarted

public void invocationStarted (IInvocationContext context)

Parameter
context IInvocationContext

setSupportGranularResults

public void setSupportGranularResults (boolean enableGranularResults)

Parameter
enableGranularResults boolean

supportGranularResults

public boolean supportGranularResults ()

Kembali
boolean

testLog

public void testLog (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream)

Parameter
dataName String

dataType LogDataType

dataStream InputStreamSource

testLogSaved

public void testLogSaved (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream, 
                LogFile logFile)

Parameter
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

testModuleEnded

public void testModuleEnded ()

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

Parameter
moduleContext IInvocationContext

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Parameter
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

Parameter
failure FailureDescription

testRunFailed

public void testRunFailed (String failureMessage)

Parameter
failureMessage String

testRunStarted

public void testRunStarted (String name, 
                int numTests, 
                int attemptNumber, 
                long startTime)

Parameter
name String

numTests int

attemptNumber int

startTime long