Top Description Methods
org.testng.asserts

public Interface IAssertLifecycle

Known Direct Implementers
org.testng.asserts.Assertion

Life cycle methods for the assertion class.

Method Summary

Modifier and TypeMethod and Description
public void
executeAssert(IAssert<?>
The assertion
assertCommand
)

Run the assert command in parameter.

public void
onAfterAssert(IAssert<?>
The assertion
assertCommand
)

Invoked after an assert is run.

public void
onAssertFailure(IAssert<?>
The assertion
assertCommand
,
AssertionError
The error
ex
)

Invoked when an assert fails.

public void
onAssertSuccess(IAssert<?>
The assertion
assertCommand
)

Invoked when an assert succeeds.

public void
onBeforeAssert(IAssert<?>
The assertion
assertCommand
)

Invoked before an assert is run.

Method Detail

executeAssertback to summary
public void executeAssert(IAssert<?> assertCommand)

Run the assert command in parameter.

Parameters
assertCommand:IAssert<?>

The assertion

onAfterAssertback to summary
public void onAfterAssert(IAssert<?> assertCommand)

Invoked after an assert is run.

Parameters
assertCommand:IAssert<?>

The assertion

onAssertFailureback to summary
public void onAssertFailure(IAssert<?> assertCommand, AssertionError ex)

Invoked when an assert fails.

Parameters
assertCommand:IAssert<?>

The assertion

ex:AssertionError

The error

onAssertSuccessback to summary
public void onAssertSuccess(IAssert<?> assertCommand)

Invoked when an assert succeeds.

Parameters
assertCommand:IAssert<?>

The assertion

onBeforeAssertback to summary
public void onBeforeAssert(IAssert<?> assertCommand)

Invoked before an assert is run.

Parameters
assertCommand:IAssert<?>

The assertion