Given the Test Description: "The system under test must return the complete resource in response to an HTTP GET request to its URL (READ)."
Given the Preconditions: - The test data set must have been recorded in the system under test according to the specifications (manually).
Create a Binary resource in your system, with the following values:
When Get FHIR resource at "http://fhirserver/metadata" with content type "json"
And CapabilityStatement contains interaction "read" for resource "Binary"
When Get FHIR resource at "http://fhirserver/Binary/${data.binary-read-id}" with content type "xml"
And FHIR current response body is a valid isik5 resource and conforms to profile "https://gematik.de/fhir/isik/StructureDefinition/ISiKBinary"
And resource has ID "${data.binary-read-id}" with error message "The ID does not match the expected value"
And TGR current response with attribute "$..contentType.value" matches "text/plain"
And TGR current response with attribute "$..data.value" matches "VGVzdA=="
When TGR send empty GET request to "http://fhirserver/Binary/${data.binary-read-id}" with headers:
| Accept | text/plain |
|---|
And TGR find the last request
Then TGR current response with attribute "$.responseCode" matches "200"
And TGR current response with attribute "$.header.[~'content-type']" matches "text/plain"
And TGR current response with attribute "$.body" matches "Test"
| Number of Scenarios | 3 | Total Duration | 2s |
| Total Number of Test Cases | 3 | Fastest Test | 430ms |
| Number of Manual Test Cases | 0 | Slowest Test | 1s |
| Tests Started | März 23, 2026 09:41:03 | Average Execution Time | 826ms |
| Tests Finished | März 23, 2026 09:41:06 | Total Execution Time | 2s |
| feature | Scenario | Context | Steps | Started | Total Duration | Result |
|---|---|---|---|---|---|---|
| Read Information from a resource of type Binary (@Binary-Read) | Precondition | 2 | 09:41:03 | 430ms | ||
| Read Information from a resource of type Binary (@Binary-Read) | Read and Validation of the CapabilityStatement | 2 | 09:41:03 | 689ms | ||
| Read Information from a resource of type Binary (@Binary-Read) | Read and Validate Binary data in FHIR format by its ID | 5 | 09:41:04 | 1s 360ms | ||
| Read Information from a resource of type Binary (@Binary-Read) | Read and Validate Binary data in native format by its ID | 5 |