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

Feature: Read information from a resource of type "private" coverage (@coverage-read-private)

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 Patient-Read test case must have been executed successfully beforehand.

  • 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 'coverage-read-private-id'.
  • The FHIR Profile for the resource is ISiKVersicherungsverhaeltnisSelbstzahler

Create a Coverage resource with the following insurance relationship in your system:

  • Beneficiary: the patient from the Patient-Read test case
  • Status: active/valid
  • Coverage type: self-pay (Selbstzahler/privat)
  • Payor: same as the beneficiary
  • Payor display: the value from the variable 'patient-read-display-name'
  • (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 "Coverage"

When Get FHIR resource at "http://fhirserver/Coverage/${data.coverage-read-private-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/ISiKVersicherungsverhaeltnisSelbstzahler"

And resource has ID "${data.coverage-read-private-id}" with error message "The returned Coverage resource has not the expected ID"

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

And TGR current response with attribute "$..code.value" matches "SEL"

And element "beneficiary" references resource with ID "${data.patient-read-id}" with error message "The payor does not match the expected value."

And element "payor" references resource with ID "${data.patient-read-id}" with error message "The policy holder does not match the expected value."

And FHIR current response body evaluates the FHIRPath "payor.display.contains('${data.patient-read-display-name}')" with error message 'The payor does not match the expected value.'

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 3 Total Duration 3s
Total Number of Test Cases 3 Fastest Test 418ms
Number of Manual Test Cases 0 Slowest Test 1s
Tests Started März 23, 2026 09:39:14 Average Execution Time 1s
Tests Finished März 23, 2026 09:39:17 Total Execution Time 3s

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Read Information from a resource of type "private" Coverage (@Coverage-Read-Private) Precondition 2 09:39:14 418ms SUCCESS
Read Information from a resource of type "private" Coverage (@Coverage-Read-Private) Read and Validation of the CapabilityStatement 2 09:39:14 811ms SUCCESS
Read Information from a resource of type "private" Coverage (@Coverage-Read-Private) Read and Validate private Coverage by its ID 8 09:39:15 1s 972ms SUCCESS

Manual Tests

No manual tests were recorded
Serenity BDD version 4.3.2