Echo
The
XML DSL
<testcase name="echoTest">
<variables>
<variable name="date" value="citrus:currentDate()"/>
</variables>
<actions>
<echo>
<message>Hello Test Framework</message>
</echo>
<echo>
<message>Current date is: ${date}</message>
</echo>
</actions>
</testcase>
Java DSL designer and runner
@CitrusTest
public void echoTest() {
variable("date", "citrus:currentDate()");
echo("Hello Test Framework");
echo("Current date is: ${date}");
}
Result on the console:
Hello Test Framework
Current time is: 05.08.2008