InstrumentationTest.FailedTestLogcatGenerator

static class InstrumentationTest.FailedTestLogcatGenerator
extends ResultForwarder

java.lang.Object
   ↳ com.android.tradefed.result.ResultForwarder
     ↳ com.android.tradefed.testtype.InstrumentationTest.FailedTestLogcatGenerator


A ResultForwarder that will forward a logcat snapshot on each failed test.

Summary

Public constructors

InstrumentationTest.FailedTestLogcatGenerator(ITestInvocationListener listener, ITestDevice device, int maxLogcatBytes)

Public methods

void testAssumptionFailure(TestDescription test, String trace)

Called when an atomic test flags that it assumes a condition that is false

void testFailed(TestDescription test, String trace)

Reports the failure of a individual test case.

void testStarted(TestDescription test)

Reports the start of an individual test case.

Public constructors

InstrumentationTest.FailedTestLogcatGenerator

public InstrumentationTest.FailedTestLogcatGenerator (ITestInvocationListener listener, 
                ITestDevice device, 
                int maxLogcatBytes)

Parameters
listener ITestInvocationListener

device ITestDevice

maxLogcatBytes int

Public methods

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                String trace)

Called when an atomic test flags that it assumes a condition that is false

Parameters
test TestDescription: identifies the test

trace String: stack trace of failure

testFailed

public void testFailed (TestDescription test, 
                String trace)

Reports the failure of a individual test case.

Will be called between testStarted and testEnded.

Parameters
test TestDescription: identifies the test

trace String: stack trace of failure

testStarted

public void testStarted (TestDescription test)

Reports the start of an individual test case. Older interface, should use testStarted(TestDescription) whenever possible.

Parameters
test TestDescription: identifies the test