InstrumentationTest.FailedTestScreenshotGenerator

static class InstrumentationTest.FailedTestScreenshotGenerator
extends ResultForwarder

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


A ResultForwarder that will forward a screenshot on test failures.

Summary

Public constructors

InstrumentationTest.FailedTestScreenshotGenerator(ITestInvocationListener listener, ITestDevice device)

Public methods

void testFailed(TestDescription test, String trace)

Reports the failure of a individual test case.

Public constructors

InstrumentationTest.FailedTestScreenshotGenerator

public InstrumentationTest.FailedTestScreenshotGenerator (ITestInvocationListener listener, 
                ITestDevice device)

Parameters
listener ITestInvocationListener

device ITestDevice

Public methods

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