Integration Tests
When integrating two systems, it is crucial to have comprehensive integration tests in place. While testing successful cases is straightforward, it is equally important to verify that exception cases are handled correctly.
To help you test your integration with Werk24’s API, we provide example files that trigger expected exceptions. These files allow you to simulate different scenarios and confirm that your system correctly interprets error responses.
Success Cases
Simple Success File
The simplest integration test is a successful submission.
✅ Expected Outcome: The API processes the drawing without errors.
Exception Cases
Each of the following test cases simulates a specific exception scenario that may occur when submitting a technical drawing to the Werk24 API.
DRAWING_FILE_FORMAT_UNSUPPORTED
Werk24 supports a range of file formats (see Drawing File Format Limitations).
If you submit an unsupported format, the API returns: DRAWING_FILE_FORMAT_UNSUPPORTED
DRAWING_FILE_SIZE_TOO_LARGE
Werk24 enforces a file size limit (see Drawing File Size Limitations).
If you upload a file exceeding this limit, the API returns: DRAWING_FILE_SIZE_TOO_LARGE
DRAWING_RESOLUTION_TOO_LOW
Werk24 requires a minimum resolution for technical drawings to ensure accurate processing (see Resolution Limitations).If an image’s resolution falls below this threshold, the API will return a DRAWING_RESOLUTION_TOO_LOW
exception.
DRAWING_CONTENT_NOT_UNDERSTOOD
If the submitted file is not a technical drawing (e.g., an invoice, contract, or blank page), or if the drawing is incomplete or implausible, the API will return a DRAWING_CONTENT_NOT_UNDERSTOOD
exception.