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

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

Scenarios

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

Given the Preconditions: - The RiskAssessment-Create test case must have been executed successfully beforehand.

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

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

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

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

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

And TGR find the last request

Then TGR current response with attribute "$.responseCode" matches "20\d"

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

And TGR find the last request

And TGR current response with attribute "$.body.note.0.text.content" matches "Recheck on 28.02.2026"

And TGR current response with attribute "$.body.code.text.content" matches "Updated text note"

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 511ms
Number of Manual Test Cases 0 Slowest Test 2s
Tests Started Sep 01, 2026 07:05:04 Average Execution Time 1s
Tests Finished Sep 01, 2026 07:05:09 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 RiskAssessment (@RiskAssessment-Update) Precondition 2 07:05:04 511ms SUCCESS
Update a resource of type RiskAssessment (@RiskAssessment-Update) Read and Validation of the CapabilityStatement 2 07:05:04 2s 246ms SUCCESS
Update a resource of type RiskAssessment (@RiskAssessment-Update) Update a RiskAssessment resource 8 07:05:07 2s 093ms 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 = 'RiskAssessment' 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 RiskAssessment resource RBellog 0  Download Evidence
Serenity BDD version 5.3.10