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

Feature: Read information from a resource of type valueset (@valueset-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 dataset must have been entered in the system under test according to the specifications (manually).

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

Create a ValueSet in your system that contains codes 'sat' and 'sun' from the FHIR CodeSystem http://hl7.org/fhir/days-of-week:

  • Version: 1.0.0
  • Name: any (please set the name in the configuration variable 'valueset-read-id')
  • Status: active
  • Context: Encounter
  • (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 "ValueSet"

When Get FHIR resource at "http://fhirserver/ValueSet/${data.valueset-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/ISiKValueSet"

And resource has ID "${data.valueset-read-id}" with error message "The ID does not match the expected value"

Then TGR current response with attribute "$.responseCode" matches "200"

And TGR current response with attribute "$.header.[~'content-type']" matches "application/fhir+xml;\s*charset=(?i)UTF-8"

And TGR current response with attribute "$..status.value" matches "active"

And TGR current response with attribute "$..url.value" matches "http://example.org/fhir/ValueSet/TestValueSet"

And TGR current response with attribute "$..name.value" matches "TestValueSet"

And TGR current response with attribute "$..ValueSet.version.value" matches "1.0.0"

And FHIR current response body evaluates the FHIRPath "useContext.value.coding.where(code = 'Encounter').exists()" with error message 'The ValueSet does not specify the required context'

And FHIR current response body evaluates the FHIRPath "expansion.exists()" with error message 'The ValueSet does not contain an expansion'

And FHIR current response body evaluates the FHIRPath "expansion.contains.where(code = 'sun' and display = 'Sunday' and system = 'http://hl7.org/fhir/days-of-week').exists()" with error message 'The ValueSet does not contain the required codes'

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 3 Total Duration 8s
Total Number of Test Cases 3 Fastest Test 421ms
Number of Manual Test Cases 0 Slowest Test 7s
Tests Started März 23, 2026 09:39:39 Average Execution Time 2s
Tests Finished März 23, 2026 09:39:48 Total Execution Time 8s

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Read Information from a resource of type ValueSet (@ValueSet-Read) Precondition 2 09:39:39 421ms SUCCESS
Read Information from a resource of type ValueSet (@ValueSet-Read) Read and Validation of the CapabilityStatement 2 09:39:40 713ms SUCCESS
Read Information from a resource of type ValueSet (@ValueSet-Read) Read and Validate ValueSet by its ID 12 09:39:41 7s 749ms SUCCESS

Manual Tests

No manual tests were recorded
Serenity BDD version 4.3.2