Serenity BDD Report
Report generated 01-09-2026 07:01

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 Get FHIR resource at "http://fhirserver/Slot/?schedule=${data.appointment-book-by-schedule-schedule-id}&start=${data.appointment-book-by-schedule-date}" with content type "json"
SUCCESS 270ms
And FHIR current response body evaluates the FHIRPath 'entry.resource.ofType(Slot).count() > 0' with error message 'No slots were found for the configured schedule and booking date'
SUCCESS 208ms
And FHIR current response body evaluates the FHIRPath "entry.resource.ofType(Slot).where(status = 'free' and start <= @2027-03-31T10:05:00Z and end >= @2027-03-31T10:55:00Z).count() >= 1" with error message 'The configured schedule does not contain a free slot covering the requested appointment window'
SUCCESS 209ms
And FHIR current response body evaluates the FHIRPath "entry.resource.ofType(Slot).where(status != 'free' and start < @2027-03-31T10:55:00Z and end > @2027-03-31T10:05:00Z).count() = 0" with error message 'The configured appointment window overlaps with at least one non-free slot in the selected schedule. Choose a different free time window before executing the happy-path scenario.'
SUCCESS 207ms
And TGR set default header "Content-Type" to "application/fhir+json"
SUCCESS 204ms
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 317ms
Then TGR find the last request
SUCCESS 206ms
And TGR current response with attribute "$.responseCode" matches "20\d"
SUCCESS 203ms
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 a Parameters resource'
SUCCESS 205ms
And FHIR current response body evaluates the FHIRPath '($this is Appointment) implies id.exists()' with error message 'No ID was assigned to the appointment'
SUCCESS 204ms
And FHIR current response body evaluates the FHIRPath "($this is Appointment) implies status.toString().matches('^booked|pending$')" with error message 'Appointment status is neither booked nor pending'
SUCCESS 205ms
And FHIR current response body evaluates the FHIRPath "($this is Appointment) implies slot.exists()" with error message 'Appointment does not contain a slot reference'
SUCCESS 205ms
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 'No ID was assigned to the Appointment'
SUCCESS 206ms
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 'the Appointment status is neither booked nor pending'
SUCCESS 207ms
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 'Appointment does not contain a slot reference'
 RBellog 0  Evidence Report
SUCCESS 205ms
SUCCESS 8.34s
Serenity BDD version 5.3.10