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

Booking An Appointment (@appointment-Book)

  Terminplanung   Mandatory   1 To 10 Seconds (Duration)   Stufe5

Book an appointment using a free slot
Steps Outcome
Given TGR set default header "Content-Type" to "application/fhir+json"
SUCCESS 212ms
And TGR send POST request to "http://fhirserver/Appointment/$book" with body "!{file('src/test/resources/features/Stufe5/Terminplanung/fixtures/Appointment-Appointment-Book-Fixture-With-Specialty.json')}"
SUCCESS 520ms
Then TGR find the last request
SUCCESS 217ms
And TGR current response with attribute "$.responseCode" matches "20\d"
SUCCESS 213ms
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 215ms
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 216ms
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 216ms
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 219ms
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 220ms
SUCCESS 2.26s
Serenity BDD version 4.3.2