Serenity BDD Report
Home > Stufe5 > Basis > Upload of a Document Bundle with POST Operation (@Composition-Post) > Upload of an incorrect documentbundle with the POST operation
Report generated 23-03-2026 09:37

Upload Of A Document Bundle With POST Operation (@composition-Post)

  Mandatory   Basis   1 To 10 Seconds (Duration)   Stufe5

Upload of an incorrect DocumentBundle with the POST Operation

Scenario Outline

Given TGR set default header "Content-Type" to "application/fhir+json"
When TGR send POST request to "http://fhirserver/" with body "!{file('src/test/resources/features/Stufe5/Basis/fixtures/<inputFile>')}"
And TGR find the last request
Then TGR current response with attribute "$.responseCode" matches "<responseCode>"
And FHIR current response body evaluates the FHIRPath "issue.where(severity = 'error' or 'fatal').count() >= 1" with error message 'The OperationOutcome does not contain the expected issue(s).'

Examples: 

# Input File Response Code
1 Composition-Post-CompositionBundleUnknownPatient.json 422
2 Composition-Post-CompositionBundleUnknownEncounter.json 422
3 Composition-Post-CompositionBundleMissingText.json 4\d\d
Steps Outcome
SUCCESS 1s 349ms
SUCCESS 1s 511ms
SUCCESS 1s 339ms
SUCCESS 4.21s
Serenity BDD version 4.3.2