Google 致力于为黑人社区推动种族平等。查看具体举措
此页面由 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


Bir ITestInvocationListener bir çağırma kırığın gelen toplar sonuçları (bir çağırma bölünmüş aka paralel olarak birden fazla kaynak çalıştırmak için), ve öne onları başka dinleyiciye söyledi.

Özet

Kamu inşaatçılar

ShardListener (ITestInvocationListener main)

Bir ShardListener oluşturun.

Genel yöntemler

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)

Kamu inşaatçılar

ShardListener

public ShardListener (ITestInvocationListener main)

Bir ShardListener oluşturun.

Parametreler
main ITestInvocationListener : ITestInvocationListener sonuçların iletilmesi gerekir. Diğer ShardListener ler ile çakışmaları önlemek için, bu nesne sonuçları iletirken main üzerinde senkronize olacaktır. Ve sonuçlar, yalnızca çağrı parçası tamamlandığında gönderilecektir.

Genel yöntemler

invocationEnded

public void invocationEnded (long elapsedTime)

Parametreler
elapsedTime long

invocationFailed

public void invocationFailed (FailureDescription failure)

Parametreler
failure FailureDescription

invocationFailed

public void invocationFailed (Throwable cause)

Parametreler
cause Throwable

invocationStarted

public void invocationStarted (IInvocationContext context)

Parametreler
context IInvocationContext

setSupportGranularResults

public void setSupportGranularResults (boolean enableGranularResults)

Parametreler
enableGranularResults boolean

supportGranularResults

public boolean supportGranularResults ()

İadeler
boolean

testLog

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

Parametreler
dataName String

dataType LogDataType

dataStream InputStreamSource

testLogSaved

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

Parametreler
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

testModuleEnded

public void testModuleEnded ()

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

Parametreler
moduleContext IInvocationContext

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Parametreler
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

Parametreler
failure FailureDescription

testRunFailed

public void testRunFailed (String failureMessage)

Parametreler
failureMessage String

testRunStarted

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

Parametreler
name String

numTests int

attemptNumber int

startTime long