Serenity BDD Report
Home > Requirements > Stufe5 > Basis > Read information from a resource of type binary (@binary-read)
Report generated 23-03-2026 09:41

Feature: Read information from a resource of type binary (@binary-read)

Scenarios

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).

  • The ID of the corresponding FHIR resource for this test data set must be stored in the configuration variable 'binary-read-id'.

Create a Binary resource in your system, with the following values:

  • Mime-Type: text/plain
  • Textual Data (UTF-8, LF (Unix), Base64 encoded): Test
  • (Optional) Tag: Value defined through the configuration variables 'tag-value' and 'tag-system'

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:

Accepttext/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"

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

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

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Read Information from a resource of type Binary (@Binary-Read) Precondition 2 09:41:03 430ms SUCCESS
Read Information from a resource of type Binary (@Binary-Read) Read and Validation of the CapabilityStatement 2 09:41:03 689ms SUCCESS
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 SUCCESS
Read Information from a resource of type Binary (@Binary-Read) Read and Validate Binary data in native format by its ID 5 UNDEFINED

Manual Tests

No manual tests were recorded
Serenity BDD version 4.3.2