Serenity BDD Report
Home > Requirements > Stufe5 > Medikation > Update a resource of type medication (@medication-update)
Report generated 01-09-2026 07:01

Feature: Update a resource of type medication (@medication-update)

Scenarios

Given the Test Description: "The system under test MUST update an existing resource."

Given the Preconditions: - The Medication-Read test case must have been executed successfully beforehand.

  • Store the ID of any Medication resource that should be updated with test data in the configuration variable 'medication-update-id'.

Then Get FHIR resource at "http://fhirserver/metadata" with content type "json"

And CapabilityStatement contains interaction "update" for resource "Medication"

Given TGR set default header "Content-Type" to "application/fhir+json"

When TGR send PUT request to "http://fhirserver/Medication/${data.medication-update-id}" with body "!{file('src/test/resources/features/Stufe5/Medikation/fixtures/Medication-Update-Fixture.json')}"

And TGR find the last request

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

And TGR send empty GET request to "http://fhirserver/Medication/${data.medication-update-id}"

And TGR find the last request

And FHIR current response body evaluates the FHIRPath "amount.numerator.value ~ 40" with error message 'The amount was not updated or was updated incorrectly'

Feature Coverage By Scenario

Test Outcomes

Test Performance

Key Statistics

Number of Scenarios 3 Total Duration 4s
Total Number of Test Cases 3 Fastest Test 420ms
Number of Manual Test Cases 0 Slowest Test 2s
Tests Started Sep 01, 2026 07:01:18 Average Execution Time 1s
Tests Finished Sep 01, 2026 07:01:23 Cumulative Test Time
(sum of all individual test durations)
4s

Automated Tests

feature Scenario Context Steps Started Total Duration Result
Update a resource of type Medication (@Medication-Update) Precondition 2 07:01:18 420ms SUCCESS
Update a resource of type Medication (@Medication-Update) Read and Validation of the CapabilityStatement 2 07:01:19 2s 708ms SUCCESS
Update a resource of type Medication (@Medication-Update) Update a Medication resource 7 07:01:21 1s 648ms SUCCESS

Manual Tests

No manual tests were recorded

Evidence

Scenario Title Details
Precondition RBellog 0  Download Evidence
Read and Validation of the CapabilityStatement INFO - rest.where(mode = 'server').resource.where(type = 'Medication' and interaction.where(code = 'update').exists()).exists()  Details
Read and Validation of the CapabilityStatement RBellog 0  Download Evidence
Read and Validation of the CapabilityStatement Evidence Report  Download Evidence
Update a Medication resource INFO - amount.numerator.value ~ 40  Details
Update a Medication resource RBellog 0  Download Evidence
Update a Medication resource Evidence Report  Download Evidence
Serenity BDD version 5.3.10