TestReporterServiceBase

public abstract class TestReporterServiceBase implements ITestReporterService

Used to report the status of tests. This base class performs some additional checks to ensure it is used correctly.

Methods

onSessionFinished

protected abstract void onSessionFinished()

The test session has finished.

onSessionStarted

protected abstract void onSessionStarted()

A test session has started.

onTestFailed

protected abstract void onTestFailed(String name, String reason, String details)

The test has finished and failed.

Parameters:
  • name – The name of the test.
  • reason – The reason the test failed; or null.
  • details – The details about the failed test, such as additional messages and the stack trace; or null.

onTestIgnored

protected abstract void onTestIgnored(String name, String reason)

The test has finished and was ignored.

Parameters:
  • name – The name of the test.
  • reason – The reason the test was ignored; or null.

onTestPassed

protected abstract void onTestPassed(String name)

The test has finished and passed.

Parameters:
  • name – The name of the test.

onTestStarted

protected abstract void onTestStarted(String name)

A test has started.

Parameters:
  • name – The name of the test.

onTestSuiteFinished

protected abstract void onTestSuiteFinished(String name)

The test suite has finished.

Parameters:
  • name – The name of the test suite.

onTestSuiteStarted

protected abstract void onTestSuiteStarted(String name)

A test suite has started. Test suites can be nested.

Parameters:
  • name – The name of the test suite.

sessionFinished

public final void sessionFinished()

sessionStarted

public final void sessionStarted()

testFailed

public final void testFailed(String name, String reason, String details)

testIgnored

public final void testIgnored(String name, String reason)

testPassed

public final void testPassed(String name)

testStarted

public final void testStarted(String name)

testSuiteFinished

public final void testSuiteFinished(String name)

testSuiteStarted

public final void testSuiteStarted(String name)