← Technical Guides

Test a FIX gateway release with Team UAT

Pin a counterparty profile, run your own FIX application in GitHub Actions or GitLab, and compare a signed acceptance report with the previous passing build.

Team UAT connects a locally launched FIX 4.4 initiator to an isolated synthetic venue. The venue checks the messages it observes and the local test command supplies measurements from the application under test. The final report ties both sets of observations to a build label and an immutable profile revision. Open Team UAT

Publish a counterparty profile

  1. Create a workspace and download the owner and CI access files. Keep the owner file with the test owner. Put the CI key in your CI secret store.
  2. Choose a scenario, enter a profile slug such as broker-uat, and review the JSON. A revision contains the venue configuration, ordered plan and expected client-side checks. Optionally select a UTF-8 FIX 4.4 QuickFIX XML dictionary. Later revisions inherit the previous dictionary unless you select the built-in one or upload a replacement.
  3. Publish the revision. Record its revision number in the pipeline configuration. Publishing another revision allows earlier builds to keep using the exact settings they were tested against.

Reproduce a duplicate-booking regression

The Recover a partial fill after reconnect template expects the example customer’s booked_quantity to equal four. A ten-unit GTC order trades four. The client disconnects, logs on again, requests the same trade report and queries the remainder. The example client books the first trade and recognizes its original execution ID on replay. Download the two standalone Node 24 files and keep the reviewed copies alongside your tests. CI runner · Synthetic example client

Set FIXSCOPE_WORKSPACE and FIXSCOPE_API_KEY from the CI access file. Run the following commands individually with profile revision 1.

node fixscope-ci.mjs --profile broker-uat --revision 1 --build baseline --junit baseline.xml -- node fixscope-example-oms.mjs
node fixscope-ci.mjs --profile broker-uat --revision 1 --build regression --junit regression.xml -- node fixscope-example-oms.mjs --double-count
node fixscope-ci.mjs --profile broker-uat --revision 1 --build fixed --junit fixed.xml -- node fixscope-example-oms.mjs

The second command intentionally exits unsuccessfully. All four FIX exchanges can pass while the example OMS books eight. The local check in the report shows expected four, observed eight and the previous pass at four. The third build books four again. Each run uses a fresh lab. A successful result requires completed venue steps, a successful client command and every declared local check.

Connect your application

Replace the command after -- with your integration test executable and its arguments. The runner starts a bridge on an available loopback port. Configure the initiator from FIXSCOPE_FIX_HOST, FIXSCOPE_FIX_PORT, FIXSCOPE_FIX_SENDER and FIXSCOPE_FIX_TARGET. Use the pinned QuickFIX dictionary in the initiator. For recovery scenarios keep the same session store across the reconnect and turn off ResetOnLogon, ResetOnLogout and ResetOnDisconnect.

At the end of the test, have your command measure the application state and write a JSON object to the file named by FIXSCOPE_CHECKS_FILE. For the recovery template the successful content is {"booked_quantity":4}. Use the actual measured value. Every key must be declared in the revision and have the expected numeric or boolean type. The operator sees these as client-reported measurements. A failed command, missing check, unfinished FIX plan or timeout gives the runner a nonzero exit. Use --timeout 300 for a five-minute client deadline. The lab’s configured expiry also applies.

GitHub Actions

Save the two downloaded files under ci/ for this example. Set the workspace ID as a repository variable and the CI key as a secret. The job status follows the runner exit code. The artifact contains per-step and local check results even for a failing gateway build. GitHub artifact action

name: Counterparty acceptance
on: [push, workflow_dispatch]
permissions:
  contents: read
jobs:
  gateway:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - uses: actions/setup-node@v6
        with:
          node-version: '24'
      - name: Run broker UAT
        env:
          FIXSCOPE_WORKSPACE: ${{ vars.FIXSCOPE_WORKSPACE }}
          FIXSCOPE_API_KEY: ${{ secrets.FIXSCOPE_API_KEY }}
        run: node ci/fixscope-ci.mjs --profile broker-uat --revision 1 --build "$GITHUB_SHA" --junit fixscope.xml -- node ci/fixscope-example-oms.mjs
      - uses: actions/upload-artifact@v7
        if: always()
        with:
          name: fixscope-junit
          path: fixscope.xml

GitLab CI

Set the workspace ID and masked CI key as project variables. This job publishes the JUnit report to GitLab’s test results view. GitLab unit test reports

broker-uat:
  image: node:24
  script:
    - node ci/fixscope-ci.mjs --profile broker-uat --revision 1 --build "$CI_COMMIT_SHA" --junit fixscope.xml -- node ci/fixscope-example-oms.mjs
  artifacts:
    when: always
    reports:
      junit: fixscope.xml

Invite a counterparty and sign off

From a pinned profile, enter a build label and start a run. Copy the counterparty invitation and share it with the intended reviewer. The invite opens only that run. It gives the recipient its plan, temporary FIX connection, progress, comparisons and counterparty approval. The recipient can download invited CI access and run the displayed command with --run and their own test executable. For a plan with no client checks they can connect via the bridge and finish the test from the portal.

Both parties can inspect the frozen report. A passing run accepts one named approval from each role, with a server timestamp. Names are supplied by the holders of the role credentials. To test a fix, open the failed report, select a profile revision, enter the retest build label and start a linked retest. A CI job can also add --retest-of RUN_UUID when starting a run. Both parties viewing the original report see the build label, revision and outcome of the linked fix. The new run has separate access credentials. Downloading a report excludes credentials. The operator can revoke an invitation, rotate the workspace CI key or delete the workspace. Revoking an invitation also closes its active lab.

Retention and comparison

The workspace retains up to 128 immutable profile revisions and the latest 200 runs, with up to eight labs open concurrently. When full, the oldest completed run is evicted. The baseline is the latest previously completed pass for the same profile when the new run starts. Comparable steps use the same request predicate and reply message types in the same position. A changed or missing step has no prior value. Free-text and identifiers from FIX traffic are recorded as matched, different or missing. Declared quantities, short protocol codes and client checks can show their observed values. Raw incoming messages and process logs are excluded from reports.

An isolated lab runs for 5–120 minutes. Profiles and reports survive its expiry. Workspace changes and new runs extend the workspace’s 90-day inactivity deadline. Owner deletion and inactivity expiry remove the workspace and its remaining labs.