Exactpro Test Automation Approaches: A Case Study in Post Trade (FT & NFT)

Delivering Large Post-Trade Initiatives: Key Challenges

A clearing system has highly complex features requiring a high degree of accuracy and skilled resources:

  • Reference data;
  • Risk management;
  • Schedule.

There are also external parties that contribute to the complexity:

  • Markets;
  • Participants with different types of connections;
  • Settlement and payment systems;
  • Market data providers, and interventions from the operations team.
Exactpro Test Automation Approaches: A Case Study in Post Trade (FT & NFT)
Exactpro Test Automation Approaches: A Case Study in Post Trade (FT & NFT)

A clearing system runs some routine processes repeated every day, in a predefined order and at predefined times:

  • Trade upload;
  • Smart computations;
  • Settlement sessions;
  • Collateral uploads;
  • Reporting, etc.

The processes are dependent on each other. There are also several data inputs into the system that are kept in the system and present an additional challenge.

  • There is a multitude of components in modern complex post-trade infrastructures;
  • Upstream and downstream system dependency;
  • The participant structure is very complex;
  • Trade/Xfer/Position/Account life cycle;
  • The number of Asset Classes may vary;
  • The complexity of the Risk calculation process;
  • Access via a set of API endpoints.

The challenges and their parameterizations lead to a significant number of test scenarios.

Exactpro Test Automation Approaches: A Case Study in Post Trade (FT & NFT)

Exactpro Test Automation Approaches: A Case Study in Post Trade (FT & NFT)

Project Requirements

Case study #1: Collateral Deficit

  • trades need to invoke the initial margin call;
  • margin computations are checked;
  • the inputs from the participants that deliver collateral to cover the risk exposure by CCP are simulated;
  • additional computations with the regulated collateral are done.

Case study #2: Delivery Default

  • Multiple-day scenarios starting with a trade upload and continuing with settlement during the next days;
  • Within this time, various inputs from settlement systems are simulated, where one participant fails on these positions and another one settles, etc.;
  • Processes that happened after the settlement period took place are checked.

Case study #3: Corporate Action

  • Executed over several days;
  • Starts with a trade upload;
  • Need to verify that corporate actions are only applied to the positions that are eligible;
  • Need to check that further computations take the new and original positions into account properly.

Testing of Complex Multistep Scenarios

There is a need for testing multi-step and multi-day scenarios, there could also be a need to test several scenarios at the same time. Our solution includes using an automated test tool which allows running several scenarios, organizing the test steps in batches and aligning the test schedule with the system schedule.

Our test tool allows us to execute all the test steps in a predefined order, which facilitates aligning the testing order with the events in the clearing system.
Simulators are developed and integrated with the test harness which controls both the simulators and the execution of test cases.

Exactpro Test Automation Approaches: A Case Study in Post Trade (FT & NFT)

Testing of Risk Calculation Algorithms

  1. Testing of this area is a challenge due to the fact that the underlying mathematical concepts are quite complex and large volumes of data are used.
  2. One solution is to test a model which is based on simplified assumptions, but replicates the algorithms and the calculations done by the system, and compare the actual results of the system under test with the expected test results computed by the model.
  3. Another solution is to define a reliable set of test results from testing the previous version, define a baseline from regression and compare it with the results that come from testing the system under test.

Exhaustive Test Coverage with a Substantial Number of Test Scenarios in a Regression Cycle

Exactpro Test Automation Approaches: A Case Study in Post Trade (FT & NFT)
  1. We need to run a substantial number of test scenarios AND also run them in an appropriate time frame;
  2. Our approach is to create different test cases and test tools which are capable of running them;
  3. Further, we should automate the test cases by using the tool, control the test environment and make sure the test enviroments is in a state that is appropriate to run regression tests in;
  4. Finally, the automated regression is run; internally, we call it “The Big Button”.

Exactpro Test Automation Approaches: A Case Study in Post Trade (FT & NFT)

A Holistic Integrated Automated Test Solution

Exactpro Test Automation Approaches: A Case Study in Post Trade (FT & NFT)

  1. Simulators are developed as a part of the test harness. Understanding the upstream and downstream systems and having the format and layouts of the interim protocols to those apps allows to emulate these streams and to continue the test design. This approach provides flexibility and independence from the availability of the surrounding systems.
  2. The test harnesses are configured to support APIs to mimic participants’ activities, market updates, other processes.
  3. Market data streams are defined by avoiding chaotic updates and replacing them with emulation updates. The emulation updates contain predefined datasets, so QA can rely on this “controlled” data; and design the expected behavior based on it.
  4. Test harness controllers are created, especially when the system lives very complex daily, weekly and monthly cycles.
  5. Test schedulers are developed to incorporate all end-to-end test scenarios into one test library run we internally call “The Big button”.