Integration Tests¶
Whenever two systems interact, it is crucial to have the correct integrations tests in place. In many situations, the success case
is very easy to test, but we also want to make it easier for you to test for the exception cases
. To that end, this site is listing a number of example files that you can submit to our API in order to trigger the anticipated exceptions and test whether you are handling the response correctly.
Simple Success File¶
The simplest of all integration tests is the success case.
Attachments:
Exception: DRAWING_FILE_FORMAT_UNSUPPORTED¶
Werk24 supports a range of different drawing formats (have a look at Limitations/DrawingFileFormat). If you are submitting a file in a different file format, you can expect to receive an Exception of type DRAWING_FILE_FORMAT_UNSUPPORTED
Attachments:
Exception: DRAWING_FILE_SIZE_TOO_LARGE¶
Werk24 limits the file size that can be uploaded (see Limitations/DrawingFileSize). When you upload a larger file, you can exception a DRAWING_FILE_SIZE_TOO_LARGE
exception.
Attachments:
Exception: DRAWING_RESOLUTION_TOO_LOW¶
Werk24 requires a minimal resolution (see Limitations/DrawingFileSize). For Resolutions below that threshold, you can expect a DRAWING_RESOLUTION_TOO_LOW
exception
Attachments:
Exception: DRAWING_NOISE_TOO_HIGH¶
Whenever the drawing contains a lot of noise, you can expect a DRAWING_NOISE_TOO_HIGH
exception.
Attachments:
Exception: DRAWING_CONTENT_NOT_UNDERSTOOD¶
Whenever you are sending a drawing that is not a Technical Drawing (e.g, an invoice), you can expect a DRAWING_CONTENT_NOT_UNDERSTOOD
exception.This exception is also triggered when the drawing is incomplete, or implausible.
Attachments: