Log – Source Reference
The Log <Log> element is used to write messages to the console and resulting log file during execution. The Log element is very useful during the development of a test scenario as it can also write data to the console. For instance, you can add a Data Reference element to the Log, and it will write the referenced data to the console.
Replaceable elements can be dropped directly on the Log element, and text strings can be added as Text elements from the palette
Syntax
The syntax of the Log element is
<Log> <!-- Data items--> </Log>
Examples
Below is an example of writing Hello World and the current timestamp to the console
<Log>
<data:String>Hello world:</data:String>
<data:Replaceable>
<Date format="yyyy-MM-dd HH:mm:ss" />
</data:Replaceable>
</Log>
<data:String>Hello world:</data:String>
<data:Replaceable>
<Date format="yyyy-MM-dd HH:mm:ss" />
</data:Replaceable>
</Log>
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*