PrettyTestEventLogger

public class PrettyTestEventLogger
extends Object implements ITestInvocationListener

java.lang.Object
   ↳ com.android.tradefed.testtype.host.PrettyTestEventLogger


Logger matching the events and logging them in order to make it easier to debug. The log on host-side and device side will strictly match in order to make it easy to search for it.

Summary

Public constructors

PrettyTestEventLogger(List<ITestDevice> devices)

Public methods

void testEnded(TestDescription test, HashMap<String, MetricMeasurement.Metric> testMetrics)

Reports the execution end of an individual test case.

void testStarted(TestDescription test)

Reports the start of an individual test case.

Public constructors

PrettyTestEventLogger

public PrettyTestEventLogger (List<ITestDevice> devices)

Parameters
devices List

Public methods

testEnded

public void testEnded (TestDescription test, 
                HashMap<String, MetricMeasurement.Metric> testMetrics)

Reports the execution end of an individual test case.

If testFailed(TestDescription, String) was not invoked, this test passed. Also returns any key/value metrics which may have been emitted during the test case's execution.

Parameters
test TestDescription: identifies the test

testMetrics HashMap: a ERROR(/Map) of the metrics emitted

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