OJP Testsets | Read-only mirror of https://github.com/openTdataCH/ojp-tests-public — SBB. Issues & pull requests at the source.
  • Bru 92.5%
  • XSLT 4%
  • CSS 2.7%
  • Python 0.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-20 16:37:57 +01:00
LinkingAlps/SopaUI-Tests Remove not any more used LinkingAlps tests for active system of SBB. 2026-05-06 10:05:03 +02:00
OJP-Regression-Tests New Version of OJP 1.0 regression tests. 2026-11-20 16:37:57 +01:00
ojp2-req-res-examples Delete case_TR-1g_NoChangeAt.StopPlaceRef.err.response.txt 2024-09-25 16:43:30 +02:00
Realtime tests Added test collection for Bruno and Postman to run the test cases on OJP 2.0 INT with forged real time use cases. 2026-05-06 10:14:04 +02:00
Swiss-OJP-1.0 Add new regression test for OJP 1.0. 2025-08-13 15:07:27 +02:00
Swiss-OJP-2.0 Update OJP 2.0 regression tests 2025-08-13 15:04:35 +02:00
.gitignore prettified, timestamp now 12:00 2024-08-16 19:35:57 +02:00
LICENSE Initial commit 2022-05-23 14:16:43 +02:00
README.md Update README.md 2026-05-06 15:45:42 +02:00

OJP tests for Switzerland (OJP 1.0 and 2.0)

This repository contains tests for OJP instances in Europe, with a primary focus on the Swiss server (see https://opentransportdata.swiss).

OJP 2.0 — Bruno

Some tests for Bruno:

To use the Bruno collections, set the following environment variables:

  • BearerToken
  • server (the base URL)

You can set these as global or local environment variables in Bruno. Our OJP provider also supplies a Postman collection with the same tests, which you can use as well. SoapUI tests are no longer supported.

Real-time data

How to use

There are test collections for Postman and Bruno. For real-time use cases, we provide sample data that you can use to test your own environment and to see how it handles exceptional cases.

To obtain an OJP 2.0 INT API key, contact us at the email below. The real-time collection works only against the OJP 2.0 INT instance.

Link: https://github.com/openTdataCH/ojp-tests-public/tree/main/Realtime%20tests

OJP 2.0 request/response examples and automated tests

We have test cases for OJP 2.0. In the ojp2-req-res-examples folder, there is a Python program that:

  • downloads the develop branch of the repository,
  • generates responses from the provided requests, and
  • validates the responses (including known validation errors).

Folder link: https://github.com/openTdataCH/ojp-tests-public/tree/main/ojp2-req-res-examples

See also our API Explorer: https://opentdatach.github.io/api-explorer/

Contact

If you have questions contact opendata@sbb.ch.

License

The programs here are made available as AGPL. The tests are made available as CC-BY-SA.