The execution of the example command can be observed using the example listener. The example listener has access to the HTML element with which the command is associated, and the example results.
An extension is installed that listens to the example command and the following instrumentation is run:
<div concordion:example="basic-example">
The square root of 4.0 is 2.0
</div>
The logged events for this example are:
Event |
---|
Before example 'basic-example' |
After example 'basic-example' - passed: 1, failed: 0, exceptions: 0 |
An extension is installed that listens to the example command and the following instrumentation is run:
Example | Full Name | Username |
---|---|---|
Short Name | John Doe | johndoe |
Longer Name | Winston Churchill | winstonchurchill |
The logged events for this example are:
Event |
---|
Before example 'Short Name' |
After example 'Short Name' - passed: 1, failed: 0, exceptions: 0 |
Before example 'Longer Name' |
After example 'Longer Name' - passed: 1, failed: 0, exceptions: 0 |