Printf
The printf tag will mimic the behavior of the well known C land
function but will output your results to the name of the
property identified by the attribute property. In the future we
may allow for direct outputting to files but for now processing
of the data to another property is what is needed.
Usage Examples
Example #1
<sequence>
<property name="float" value="1.23456789" />
<property name="list" value="1,2,3,4" />
<printf args="23,Hello There!,${float}" format="INTEGER[%d] STRING[%s] FLOAT [%.2f] LIST [${list}]" property="result" />
</sequence>
Example #2
<sequence>
<printf args="10" format="%04x" property="result" />
<log>10 -- convert to hex and pad to 4 digits -> ${result}</log>
<assert>
<eq op1="${result}" op2="000a" />
</assert>
</sequence>