Testing Tool User Guide
1. Purpose
This tool ensures reliable and efficient testing for conformance to the Ozone Connect implementation within the API Hub. It simplifies testing, enforces standards, and enhances quality and interoperability.
This guide provides step-by-step instructions to set up and use the test automation framework, including initializing configurations, running tests, and validating setups. It supports testing on OzoneAPI's mock server or custom servers with ease.
2. Scope
This manual covers the essential aspects of the Testing Tool, including its installation, usage, and testing capabilities. It provides detailed instructions and guidelines to help users effectively utilise the tool within their development and testing environments. The scope includes:
Installation and setup | Provides instructions for installing and setting up the Testing Tool using Docker, including prerequisites and initial configuration. This tool has been successfully tested on Ubuntu Linux and on MacOS. |
Usage instructions | Details the commands and options available in the Testing Tool CLI tool, with examples for effective usage. |
Testing | Explains the testing procedures and conformance checks, including how to run tests and interpret the results.3. Audience |
3. Audience
The primary audience for this manual includes developers, QA engineers, and technical implementers who are involved in the integration and testing of the Ozone Connect implementation for the API Hub.
QA engineers | Professionals responsible for ensuring the quality and reliability of the Ozone Connect implementation by conducting thorough testing and identifying defects. |
Integration Specialists | Experts focused on integrating and aligning the Ozone Connect implementation with the API Hub to ensure seamless interoperability and conformance. |
This manual assumes that the audience has a basic understanding of CLI tools, Docker, CBUAE Open Finance Standards and Ozone Connect specifications.
4. Overview
The Testing Tool is a command-line interface (CLI) based testing tool designed to assist implementers in verifying their conformance to the Ozone Connect implementation. Developed specifically for the API Hub, the Testing Tool provides a comprehensive suite of tests that validate various aspects of the implementation against the predefined standard. The tool runs within a Docker container, ensuring a consistent and isolated testing environment. By using the Testing Tool, implementers can efficiently identify and rectify issues, ensuring that their implementations meet the required conformance criteria.
5. Setup Requirements
Before You Start:
Familiarise yourself with the Ozone Connect specifications.
Ensure you have Docker: Accelerated Container Application Development installed locally on your machine to run Docker containers.
6. Usage
The instructions below are based on using the Testing Tool to test against the latest Ozone Connect Specification.
6.1 Running the Testing Tool
To test the LFI’s implementation of Ozone Connect, execute the following commands. These commands allow you to add a custom configuration file and SSL certificates to connect the tool to the LFI’s server.
The basic command for this testing tool is shown below. Running it without any options will display a list of available options.
6.1.1 Constructing the command for the test tool
6.1.1.1 Base Command:
docker run --user root --rm -it \
-v "$(pwd)/config:/usr/o3/tr-ozone-connect/config" \
-v "$(pwd)/logs:/usr/o3/tr-ozone-connect/logs" \
public.ecr.aws/g5c5c6i0/tr-image/tr-ozone-connect:2025.3.1
6.1.1.2 Help Command
To view the available Options, run:
docker run --user root --rm -it \
-v "$(pwd)/config:/usr/o3/tr-ozone-connect/config" \
-v "$(pwd)/logs:/usr/o3/tr-ozone-connect/logs" \
public.ecr.aws/g5c5c6i0/tr-image/tr-ozone-connect:2025.3.1 help
6.1.1.3 Available Options:
init-config: Initialize the configuration folder if not already present.
setup-config: Run the interactive configuration setup.
validate-config: Validate the configuration file.
yarn : Run the framework with Yarn and specified arguments.
help: Show the help message.
The Base Command and the Help Command display the same output.
6.1.2 Initializing Configuration
To get started, the framework provides a default configuration setup.
Start by initializing the configuration on your host machine using the init-config
command.
docker run --user root --rm -it \
-v "$(pwd)/config:/usr/o3/tr-ozone-connect/config" \
-v "$(pwd)/logs:/usr/o3/tr-ozone-connect/logs" \
public.ecr.aws/g5c5c6i0/tr-image/tr-ozone-connect:2025.3.1 init-config
Initializing Configuration...
Configuration file missing. Copying default config file...
Certificates folder missing. Copying default certs folder...
This command copies the required configuration files and certificates to the config
folder inside the container, which is mapped to a newly created config
folder in the host's current working directory (pwd
). Additionally, a logs
folder is created in the host's current working directory to store JSON logs and HTML reports generated after the tests.
6.1.2.1 Upgrading from a previous version of this testing tool
Release 2025.3.1 introduces JWT authorization support for Ozone-connect APIs, requiring configuration changes in certs
section in the config.yaml
.
Previous certs section
The updated configuration introduces JWT authorization settings and reorganizes existing certificate configurations. Set authorization_type
to JWT
to enable JWT authorization or none
to disable it (Authorization header will not be included in API requests). The signing certificate, private key, and key identifier (kid) are required components in the new certs section. ReferJWT Authorization document to know more about JWT authorization.
Updated certs section
Migration Notes
Transport certificate configurations must be moved from
certs.transport
toserver.certs.transport
JWT signing certificate configuration is only required when using JWT authorization. Let it remain as it is if JWT authorization is not being used.
6.1.2.1 Running a Sample Test
After initializing the default configuration, you can run the following command. It will execute tests against the same OzoneAPI mock server as described in section 6.1, but now explicitly uses the default configuration as input.
Line number 2 below.
6.1.3 Updating Configuration
6.1.3.1 Editing config.yaml
To run tests on your own server, update the config.yaml
file located in the newly created config
folder on the host machine. Open the file and edit the necessary fields.
6.1.3.2 Using the Interactive Setup Tool
Alternatively, you can update the configuration using the interactive setup tool:
The setup tool will back up config.yaml
as backup-config.yaml
in the same folder.
Refer to Section 7.1.2 for a comprehensive list of configurable options. After entering the required details, config.yaml
file is updated with the new values.
6.1.4 Validating Configuration
To validate the configuration file, use the validate-config
command: This command ensures the configuration file is properly formatted and that all required certificate files are present.
6.1.5 Running the Testing Tool with custom configuration
The command to run the testing tool against the customer server is similar to the command in section 61. above, with the addition of updating the configuration file for the testing tool.
The only difference being the addition of line 3 which is the argument to mount the custom config folder.
6.1.6 Components of the command
The command provided above docker run --user root --rm -it
can has the following 3 parts.
Running the Docker Container: The first part runs the Testing Tool Docker container, mounting the necessary directories and setting up the environment:
Option | Description |
---|---|
| If the LFI configuration is not provided, the tool will attempt to connect to a the Ozone Connect mock server deployed by Ozone in the cloud. For detailed information on the configuration file format, please refer to the configuration file section: 7.1.2 SSL certificates are necessary for secure mTLS connection between the Testing Tool and LFI’s implementation of Ozone Connect. The method to generate these certificates is documented in the Certificates Generation section: 7.2 After generating the certificates, copy them into a folder named |
| This option is mandatory and must be provided to access the logs after the program runs. Both the logs and the HTML output report will be available in this folder once the tests are complete. |
Acquiring the latest docker image:
Option | Description |
---|---|
| This is the location of the publicly available Test Tool Docker image. |
Executing the Ozone Testing Tool: This 3rd part executes the Ozone Testing Tool within the container with a set of specified options:
6.1.7 Options to the tr-ozone-connect command
The available command line options for the yarn tr-ozone-connect
command are listed in the table below.
Option | Description | Possible Values |
---|---|---|
-h, --help | Show help (boolean) |
|
-c, --config | Input test configuration files in .yaml or .json format | config.yaml, config.json, ./config/config.yaml |
-f, --folder | Preconfigured path to the folders with the test files | src/tests, tests, ./src/tests |
-o, --out | Output file name | results.json, output.json, ./test_output.json |
-e, --formatter | Use a standard formatter for the output | full, terse, medium, errors |
-s, --regex_for_test_suite | Provide the full name of the test suite from the list. (Format : comma separated string, required) | The full list of test suites currently available are :
Examples: ‘Id:[GET /accounts/{accountId}/customer,GET /accounts/{accountId}]’ |
-r, --regex_for_test_case | Provide a regular expression for running selected tests. (Format : string, required) | The list of the test case names can be found in the Sample Html Report of the Testing Tool Example regex values are :
Note there is no space after the comma which separates the regex. |
-v, --loglevel-runner | Log level for the test runner (Format : string, optional) | debug, info, silent (In the order of precedence) |
-l, --loglevel-suite | Log level for the test suite (Format : string, optional) | debug, info, error (In the order of precedence) |
--version | Show version number (boolean) |
|
7. Common Config Files Options
In order to run the above docker command against LFI’s implementation of Ozone Connect, the LFI needs to:
Create an input configuration file.
Provide the certificate files if required.
7.1 Configuration File
The configuration file can be created manually or generated using the init-config
command. It should be placed in the ./config
folder within the same directory where the docker run
command will be executed.
7.1.1 Sample config.yaml file
7.1.2 Configuration Fields
This section provides a detailed explanation of the configuration file fields used in the Testing Tool for Open Banking APIs.
Configuration | Description |
---|---|
baseUrl |
|
psuIdentifier
|
|
aisBasePath |
|
pisBasePath |
|
authorization_type |
|
server
| Identifier for the party receiving the |
server
|
|
server
| We recommend an expiry time of 10-30s. When validating the JWT, allow for a 10s clock skew. |
server certs
|
|
server certs
|
|
server certs
|
|
server certs
| The key ID of key-pair used to sign the message as published on the JWKS. The specification does not support the use of other means of identifying the key as they are not considered to be secure enough (e.g. |
server certs
| Path to the public certificate file containing the X.509 certificate used for JWT signature verification
|
server certs
| Path to the private key file used for signing JWTs with PS256 algorithm |
headers
|
|
headers
|
|
headers
|
|
headers
|
|
headers
|
|
headers
|
|
headers
|
|
headers
|
|
headers
|
|
headers
|
|
headers
|
|
accounts-schema-file |
|
payments-schema-file |
|
event-action-schema-file |
|
insurance-schema-file |
|
accounts
|
A list of all the
|
payments
|
|
7.2 Generating the SSL certificates.
The API Hub uses certificates from the OFTF when calling the LFI Ozone Connect service. The procedures below are included as a reference if developers want to do local testing.
It is not recommended to deploy self signed certificates to Preprod or Production environments.
Acquire or generate the SSL certificates to connect to the Ozone Connect server. Put the certificates in a ./config/certs
folder.
The certificates in the certs folder are critical for securing communications between the LFI and the OFP using mTLS.
Below you can find a brief explanation of how you can generate test certificates in order to run the testing tool against your implementation.
Please keep in mind that you can also use certificates provided by OFTF. In this case please skip certificate generation step.
7.2.1 Steps to Generate Test Certificates:
Create a Certificate Authority (CA)
A CA is responsible for signing certificates. If you do not have an existing CA, you can create one.
Generate the private key for your CA:
openssl genpkey -algorithm RSA -out dev-ca.key -aes256
Create a self-signed root certificate:
openssl req -x509 -new -nodes -key dev-ca.key -sha256 -days 365 -out dev-ca.pem
Generate a Private Key for the Server
Generate the private key for your server:
openssl genpkey -algorithm RSA -out dev-ca-issued-transport.key -aes256
Create a Certificate Signing Request (CSR)
Generate a CSR using the server's private key:
openssl req -new -key dev-ca-issued-transport.key -out dev-ca-issued-transport.csr
Sign the CSR with Your CA
Use your CA to sign the CSR, creating the server certificate:
openssl x509 -req -in dev-ca-issued-transport.csr -CA dev-ca.pem -CAkey dev-ca.key -CAcreateserial -out dev-ca-issued-transport.pem -days 365 -sha256
Verify the Certificate
Ensure the certificate is correctly generated and can be verified against the CA:
openssl verify -CAfile dev-ca.pem dev-ca-issued-transport.pem
7.2.2 Summary of Files
CA Certificate (
dev-ca.pem
)The root certificate used to sign other certificates.
Server Private Key (
dev-ca-issued-transport.key
)The private key for the server, kept secure and not shared.
Server Certificate (
dev-ca-issued-transport.pem
)The public certificate signed by the CA, used for secure communications.
8. Detailed Steps to run the Testing Tool
Follow the instructions below to run the Testing Tool:
Step 1 | Create an input test configuration file and set up it in | |
Step 2 | Acquire/Generate the SSL certificates and put them in a | Please follow the Test Certificates section in case you need to generate test certificates: 7.2.1 Otherwise please use OFTF Certificates. |
Step 3 | Execute the testing tool command. | |
Step 4 | The final section of the sample output, after all tests have been run and logs have been printed, will appear as follows. | The output will look similar but the Pass-Fail status might be different in the actual output.
|
Step 5 | Review the Testing Tool output log file for the test case results. The log file's name is defined in the last part of the command from step 1. You can modify this name with each run. If unchanged, subsequent runs will overwrite the same file. | Use any text editor to view the file : |
Step 6 | The test run results are also available in an HTML file with a similar name to the | Use any browser to open the html report file : |
8.1 Sample Output Report
A sample html report file can be found in : Sample Html Report of the Testing Tool
9. Test-Suite and Test-Case Regex Combinations for Running a Subset of Tests
Please note : The -s and the -r both the command line arguments are mandatory.
A wide variety of selection of test cases is possible. An example usage of the regex is listed below.
Sr. | Regex Pattern | Outcome |
---|
Sr. | Regex Pattern | Outcome |
---|---|---|
1 | -s 'Id:[GET /accounts]' -r Id:'[.*]' | Execute all test cases from the GET /accounts test suite only. |
2 | -s 'Id:[GET /accounts]' -r Id:'[AIS_A001]' | Execute only the test case AIS_A001 from the GET /accounts test suite. |
3 | -s 'Id:[GET /accounts]' -r Id:'[00.]' | Execute all the tests from the GET /accounts test suite which have the testId among one of 000, 001, 002, 003, 004, 005, 006, 007, 008, 009. Test cases from other suites will not be attempted for execution. |
4 | -s 'Id:[GET /accounts,GET /accounts/{accountId}/direct-debits,GET /customers]' -r Id:'[.*]' | Execute all the test case from the 3 test-suites.
Test cases from other suites will not be attempted for execution. |
5 | -s 'Id:[GET /accounts/{accountId}/customer,GET /accounts/{accountId},GET /accounts,GET /accounts/{accountId}/balances,GET /accounts/{accountId}/beneficiaries,GET /customer,GET /accounts/{accountId}/direct-debits,GET /accounts/{accountId}/products,GET /accounts/{accountId}/scheduled-payments,GET /accounts/{accountId}/standing-orders,GET /accounts/{accountId}/transactions,POST /customers/action/cop-query,Combined Future Dated Payment with Fixed Defined Schedule,Combined Future Dated Payments with Fixed On Demand,Combined Future Dated Payments with Fixed Periodic Schedule,Combined Future Dated Payment with Variable Defined Schedule,Combined Future Dated Payments with Variable On Demand,Combined Future Dated Payments with Variable Periodic Schedule,Combined Single Instant Payments with Fixed Defined Schedule,Combined Single Instant Payments with Fixed On Demand,Combined Single Instant Payments with Fixed Periodic Schedule,Combined Single Instant Payments with Variable Defined Schedule,Combined Single Instant Payments with Variable On Demand,Combined Single Instant Payments with Variable Periodic Schedule,Payment consent and file payments,Fixed Defined Schedule,Fixed On Demand,Fixed Periodic Schedule,future-dated-payments,get-report-file-payments,header-validations-tests,International Payments,Payment Consent Refund,single-instant-payments,Variable Defined Schedule,Variable On Demand,Variable Periodic Schedule,Consent/action/augment post request,Consent/action/validate post request,Insurance]' -r Id:'[.*]' | Run all the test cases in all the test suites. |
10. Test Cases
The list of referred tests is available in the following document: Ozone Connect Test Cases
11. Recorded Demonstration of using this tool
The following video demonstration showcases how to customize an existing test case, enabling anyone to run it in their own environment.
12. New Khvafar HTML Report Demo Recording
© Ozone Financial Technology Limited 2024-2025
Ozone Non Commercial Software EULA
Please try out our Advanced Search function.