In order to use custom FIX dictionary you should made necessary changes in the standard dictionary or create your own dictionary and then specify its name in the DataDictionary property of the FIX Acceptor configuration file or FIX Initiator configuration file.
In order to get current time use Timestamp task.
TBD
Yes, you can. In order to store and reuse tag value you need:
See fixField task for code example and further details.
A task for sleeping a short period of time useful when a build or deployment process requires an interval between tasks. n order to hold up execution of test use Sleep Ant task.
In order to stop test execution and wait for some user action use Input Ant task.
The build fails if any of tasks fails. You can make build fail conditionally using Fail Ant task.
You can compare value of the field / tag with constant in several ways.
Yes. Use getGroupCount action of fixField task.
You can check session-lavel messages by setting control level for the session. For furter details see setControlLevel task.
Yes, you can. In order to check tag absence you need:
See code below as an example. Also see fixField task for further details.
<fixReceive refid="initiator1" timeout="10" > <fixMessage id="new_order_single_received" /> </fixMessage> <var name="SymbolSfx_received" value=""/> <fixField refid="new_order_single_received" action="get" name="SymbolSfx" property="SymbolSfx_received" nullable="true"/> <if> <equals arg1="${SymbolSfx_received}" arg2="" /> <then> <echo message="SymbolSfx (65) is removed from the message" /> </then> <else> <fail>SymbolSfx (65) is not removed during MoveField action..</fail> </else> </if>
Such check can be done with isset condition. See code below as an example. Also see Conditions description for further details.
<loadfile property="smtplog.exists" srcfile="${fixedge_root}/FixEdge1/log/FixEdge.log">
<filterchain>
<linecontainsregexp>
<regexp pattern="Message received by adaptor:"/>
</linecontainsregexp>
</filterchain>
</loadfile>
<if>
<isset property="smtplog.exists"/>
<then>
<echo message="Message 'to client TestSMTPClient' has been recorded to FixEdge.log" />
</then>
<else>
<fail>SMTP adapter was not sent the email message!!!</fail>
</else>
</if>