This repository contains tests for OJP instances in Europe, with a primary focus on the Swiss server (see https://opentransportdata.swiss).
Some tests for Bruno:
To use the Bruno collections, set the following environment variables:
BearerTokenserver(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.
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
We have test cases for OJP 2.0. In the ojp2-req-res-examples folder, there is a Python program that:
- downloads the
developbranch 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/
If you have questions contact opendata@sbb.ch.
The programs here are made available as AGPL. The tests are made available as CC-BY-SA.