The action prints messages to the console/logger. This functionality is useful when debugging test runs. The property "message" defines the text that is printed. Tester might use it to print out debug messages and variables as shown the next code example:


<testcase name="echoTest">
        <variable name="date" value="citrus:currentDate()"/>
            <message>Hello Test Framework</message>

            <message>Current date is: ${date}</message>

Java DSL designer and runner

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