'What a success!' $outputVar.TestPart string(round(seconds-from-dateTime(current-dateTime()))) $generatedTimestamp $generatedTimestamp $idMsg.timestamp 'alexis@test.com' $idMsg.from string(round(seconds-from-dateTime(current-dateTime()))+100) $articleId $articleId $idMsg.articleId $articleMsg.timestamp = $generatedTimestamp 'Wrong Timestamp Header received. Check if the request header was properly set.' $outputVar.TestPart compare($tmpVar, 'alexis@test.com') = 0 concat('Wrong From Header received. Check if the request header was properly set. Received value is: ', $tmpVar) $outputVar.TestPart $articleMsg.article/dummy:id = $articleId 'Wrong Article Id received.' $outputVar.TestPart $statusLine string-length($statusLine/original) > 0 'Status-Line is missing' $outputVar.TestPart string-length($statusLine/Status-Code) > 0 'Status-Code is missing' $outputVar.TestPart string-length($statusLine/HTTP-Version) > 0 'HTTP-Version is missing' $outputVar.TestPart string-length($statusLine/Reason-Phrase) > 0 'Reason-Phrase is missing' $outputVar.TestPart true '200_malformed_body' '200_malformed_body: A failure should have been thrown' $outputVar.TestPart true '200_missing_body' '200_missing_body: A failure should have been thrown' $outputVar.TestPart '202_empty_body' '204_empty_body' '200_missing_part_in_header' true '400_not_found' '400_not_found: A failure should have been thrown' $outputVar.TestPart true '500_operation_with_no_fault_failed' '500_operation_with_no_fault_failed: A failure should have been thrown' $outputVar.TestPart