Serenity BDD Report
Report generated 23-03-2026 09:36

Booking An Appointment By Schedule Reference (@appointment-Book-By-Schedule)

  Terminplanung   Mandatory   1 To 10 Seconds (Duration)   Stufe5

Book an appointment by schedule reference
Steps Outcome
Given TGR set default header "Content-Type" to "application/fhir+json"
SUCCESS 207ms
And TGR send POST request to "http://fhirserver/Appointment/$book" with body "!{file('src/test/resources/features/Stufe5/Terminplanung/fixtures/Appointment-Appointment-Book-By-Schedule-Parameters-Fixture.json')}"
SUCCESS 720ms
Then TGR find the last request
SUCCESS 209ms
And TGR current response with attribute "$.responseCode" matches "20\d"
SUCCESS 206ms
And FHIR current response body evaluates the FHIRPath '($this is Appointment) or ($this is Parameters)' with error message 'The response contains neither an Appointment nor an OperationOutcome resource nor a Parameters resource'
SUCCESS 214ms
And FHIR current response body evaluates the FHIRPath '($this is Appointment) implies id.exists()' with error message 'Response variant Appointment: no ID was assigned to the appointment'
SUCCESS 208ms
And FHIR current response body evaluates the FHIRPath "($this is Appointment) implies status.toString().matches('^booked|pending$')" with error message 'Response variant Appointment: no ID was assigned to the appointment'
SUCCESS 206ms
And FHIR current response body evaluates the FHIRPath "($this is Appointment) implies slot.exists()" with error message 'Response variant Appointment: no slot assigned'
SUCCESS 208ms
And FHIR current response body evaluates the FHIRPath "($this is Parameters) implies parameter.where(name = 'return' and resource is Appointment).resource.id.exists()" with error message 'Response variant Parameters: no ID was assigned to the appointment'
SUCCESS 212ms
And FHIR current response body evaluates the FHIRPath "($this is Parameters) implies parameter.where(name = 'return' and resource is Appointment).resource.status.toString().matches('^booked|pending$')" with error message 'Response variant Parameters: the appointment status is neither booked nor pending'
SUCCESS 211ms
And FHIR current response body evaluates the FHIRPath "($this is Parameters) implies parameter.where(name = 'return' and resource is Appointment).resource.slot.exists()" with error message 'Response variant Parameters: no slot assigned'
SUCCESS 210ms
SUCCESS 2.83s
Serenity BDD version 4.3.2