If the collection contains more objects than expected, extra rows are
added to the table. These rows are marked with CSS class="surplus"
on the <tr>
element.
Given a method getPeople()
that returns a Collection containing the following Person
objects:
First Name | Last Name |
---|---|
John | Travolta |
Cliff | Richard |
And the following instrumentation:
<table concordion:verifyRows="#person : getPeople()"> <tr> <th concordion:assertEquals="#person.firstName">First Name</th> <th concordion:assertEquals="#person.lastName">Last Name</th> </tr> <tr> <td>John</td> <td>Travolta</td> </tr> </table>
Results in this output:
<table concordion:verifyRows="#person : getPeople()" xmlns:concordion="http://www.concordion.org/2007/concordion"> <tr> <th concordion:assertEquals="#person.firstName">First Name</th> <th concordion:assertEquals="#person.lastName">Last Name</th> </tr> <tr> <td class="success">John</td> <td class="success">Travolta</td> </tr> <tr class="surplus"> <td class="failure"> <del class="expected"> </del> <ins class="actual">Cliff</ins> </td> <td class="failure"> <del class="expected"> </del> <ins class="actual">Richard</ins> </td> </tr> </table>