Concordion > Commands >

assertEquals

The assertEquals command evaluates an expression and compares the result to the contents of an element in the document. The command reports a success if the evaluation result is equal to the text in the document, or a failure otherwise. The comparisons are case-sensitive.

Example

Given this instrumentation:

<span concordion:assertEquals="#user.firstName">Fred</span>

We get the following outcomes depending on the evaluation result of the expression #user.firstName:

Evaluation Result Outcome
Fred SUCCESS
Wilma FAILURE
fred FAILURE

Further Details