Software Testing Automation Framework for FIX Protocol
(STAFF) is a set of tasks, functions, and methods built on top
of an Apache cross-platform,
Java-based tool called Ant, and developed for automated testing of
FIX applications.
STAFF tasks allow performing various operations with FIX
sessions and messages, such as:
- creating a session with user defined parameters, starting and
stopping it;
- sending messages of defined structure to the session
- expecting messages from the session, and verifying message
structure, specific tags, and/or their values
- converting and saving sent/received messages, and using them
for re-sending
- storing values of certain tags, converting, and re-using
them (for example, saving the tag Symbol of NewOrderSingle
(D) and using it in ExecutionReport (8))
Each testing script is a user-defined sequence of instructions
and commands written into the XML file that is consistently
interpreted and executed. Tests are easily combined into suites;
each test can be referenced from another one as a library and
re-used in different suites.
Along with STAFF, all Ant libraries can be used as powerful
tools for operating with files and services, accessing databases,
etc.
Test Script Examples
In order to write new a test, a user needs to:
- Take a sample test script
- Change session parameters (if necessary)
- Add required commands to the test
- Execute
Sample of New
Order Single test script