Posts

Setting Up veriFIX Repeating Groups

Image
When using veriFIX there may be a time you need to send a message which contains multiple instruments with prices. This will require the use of a repeating group. The application I currently test uses MassQuote (i) messages for this purpose. The Quotes are taken by the FIX gateway turned into Orders in the Trade Engine. Building a repeating group in veriFIX is straight forward and here I will show you how to do it. Each repeating group has a No 'number of' field preceeding it. 1- Double click the 'number of' field and enter the number of repeating groups you need in the Static Text field 2- Double click the Repeating Group header 3- Enter the number of repeating groups in 'New Repeating Group Count'. (This will add the new groups to the message. The message will now look as shown below) Now you can decidewhether you want to hard code the field values in to the groups, or add them as Overrides on the Send message in the scenario.

Setting Up Selenium With IntelliJ

Image
For automating the checking of websites there is no product I like better than Selenium. Why? Because it's free, can be used with multiple languages, and is easy to set-up. It has it's down sides - tests can be flaky - but this is not unique to Selenium, any browser test tool experiences these issues. Once you become familiar you can learn ways to work around the issues of race conditions and flaky tests. Here I will walk through the steps to setting up IntelliJ to use Selenium with JUnit. In this instance we will be using Chrome browser on a windows machine. These are the things you will need: IntelliJIDE JavaJDK Chrome browser Selenium java library JUnit library chromedriver 1- Download IntelliJ IDEcommunity version https://www.jetbrains.com/idea/download/download-thanks.html?platform=windows&code=IIC 2- Download Selenium library https://www.seleniumhq.org/download/ 3- Download Chrome Driver library https://sites.google.com/a/chromium.org/chromedri...

Using Spreadsheets For Test Data With veriFIX

Image
During my time testing trading software using veriFIX I have devised ways to inject instrument codes or ISINs into tests. My favourite being an excel spreadsheet and a database driver. Whilst available ISINs can be gleaned from SecurityList messages and MarketData, I prefer during my testing to keep a record of all available instruments in the system. Conversely I like to know about all data in my test environments. For this example I will show how to set up veriFIX to read ISINs from a spreadsheet. (This can be extended to include prices, order types and much much more). For this you will need: veriFIX Microsoft Excel CSV JDBC Driver 1- Download the CSV JDBC driver jar from here  https://sourceforge.net/projects/csvjdbc/ 2- Place the CSV JDBC driver jar into the lib folder in your veriFIX program folder 3- Add location of CSV JDBC driver to class path e.g C:\Itiviti\VeriFIX 6.5\lib\csvjdbc-1.0-31.jar; (instructions on how to do this can be found on the internet) ...