Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Content of the Protocol Terminators
Page Tree | ||||||
---|---|---|---|---|---|---|
|
XDR Client Integration Testing
This page tries to gather all the specification of Integration testing for the XDR client component, including several aspects such as the description, inputs, results and last passed date.
Note |
---|
Work in progress! |
Note | ||
---|---|---|
| ||
These test definitions match the code implementation. The same Id and Test Name is used in method definitions. Please follow the same convention and remember to reflect the code changes in these tables and vice-versa. For each new test please add a new table and keep it updated. |
Initial Information
Consent
If the epSOS Consent Service provider is able to decode the received consent document IDs but the deprecating of the consent document failed, it responds with an ebXML Registry Response that contains a respective status indicator (see below).The response MUST contain a RegistryErrorList element that indicates the failure condition.
The response status MUST be set to “urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure”. A failure location MUST NOT be given. The severity of each registry error message MUST be set to ”urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error”. Multiple registry error messages MAY be included within a single <rs:RegistryErrorList> element.
epSOS Consent Service allows for all of the XDS-b error messages defined in Table 4.1-11 of [IHE ITI TF - 3].
eDispensation
If the epSOS Dispensation Service provider is able to decode the received message but the processing of one or more dispensations failed, it responds with an ebXML Registry response That contains a respective status indicator (see below).The response MUST contain a RegistryErrorList element that indicates the failure condition.
If none of the eDispensations was processed succesfully, the response status MUST be set to “urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure”. If at least one EDispensation was processed successfully, the response status MUST be set to “urn:ihe:iti:2007:ResponseStatusType:PartialSuccess”.
A failure location MUST be provided if the error does not apply to all provided eDispensation documents. It MUST NOT be given if the error applies to all provided documents.
The severity of each registry error message MUST be set to ”urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error”. Multiple registry error messages MAY be included within a single <rs:RegistryErrorList> element.
Tests
Table Color
Status | ||
---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Test #1 : "
testQueryNoEPtestSubmtNoEP"
Test Id | PT_CLIENT_XDR_#1 | ||||||
---|---|---|---|---|---|---|---|
Name | testQueryNoEP testSubmtNoEP | ||||||
Description | (ERROR) No matching ePrescription was found. | ||||||
Test Inputs | A eDispensation submitting action for an nonexistent ePrescription. | ||||||
Expected Results | Response Status: Failure | ||||||
Message: No Match | |||||||
Code: 4105 | |||||||
Last Passed Date |
|
Test #2 : "testSubmtDispEP"
Test Id | PT_CLIENT_XDR_#2 | ||||||
---|---|---|---|---|---|---|---|
Name | testQueryEPDisp | ||||||
Description | (ERROR) ePrescription has already been dispensed. | ||||||
Test Inputs | A eDispensation submitting action for an already dispensed ePrescription. | ||||||
Expected Results | Response Status: Failure | ||||||
Message: Invalid Dispensation | |||||||
Code: 4106 | |||||||
Last Passed Date |
|
Test #2 : "testSubmtLowAuth"
Test Id | PT_CLIENT_XDR_#2 | ||||||
---|---|---|---|---|---|---|---|
Name | testSubmtLowAuth | ||||||
Description | (ERROR) Country A requests a higher authentication trust level than assigned to the HCP (e.g. password-based login is not accepted for the requested operation). | ||||||
Test Inputs | A eDispensation/Consent submitting action for an already dispensed ePrescription. | ||||||
Expected Results | Response Status: Failure | ||||||
Message: Weak Authentication | |||||||
Code: 4702 | |||||||
Last Passed Date |
|
Test #3 : "testSubmtNoSign"
Test Id | PT_CLIENT_XDR_#3 | ||||||
---|---|---|---|---|---|---|---|
Name | testSubmtNoSign | ||||||
Description | (ERROR) The eDispensation service provider only accepts dispensation data that is digitally signed by an HCP. | ||||||
Test Inputs | A eDispensation submitting action with no digital signature. | ||||||
Expected Results | Response Status: Failure | ||||||
Message: No Signature | |||||||
Code: 4704 | |||||||
Last Passed Date |
|
Test #4 : "testSubmtNoPDF"
Test Id | PT_CLIENT_XDR_#4 | ||||||
---|---|---|---|---|---|---|---|
Name | testSubmtNoPDF | ||||||
Description | (ERROR) The service consumer did not provide the source coded PDF document for an eDispensation. | ||||||
Test Inputs | A eDispensation submitting action with no PDF document. | ||||||
Expected Results | Response Status: Failure | ||||||
Message: Original data missing | |||||||
Code: 4107 | |||||||
Last Passed Date |
|
Test #5 : "testSubmtNoDoc"
Test Id | PT_CLIENT_XDR_#5 | ||||||
---|---|---|---|---|---|---|---|
Name | testSubmtNoPDF | ||||||
Description | (ERROR) The service consumer did not provide the epSOS pivot coded document for an eDispensation. | ||||||
Test Inputs | A eDispensation submitting action with no epSOS pivot coded document for an eDispensation. | ||||||
Expected Results | Response Status: Failure | ||||||
Message: Original data missing | |||||||
Code: 4107 | |||||||
Last Passed Date |
|
Test #6 : "testSubmtUnsupCons"
Test Id | PT_CLIENT_XDR_#6 | ||||||
---|---|---|---|---|---|---|---|
Name | testSubmtNoPDF | ||||||
Description | (ERROR) Country A does not allow for consent giving or revoking in other countries | ||||||
Test Inputs | A consent submitting to a Country A that does not support consent giving or revoking. | ||||||
Expected Results | Response Status: Failure | ||||||
Message: Policy Violation | |||||||
Code: 4705 | |||||||
Last Passed Date |
|
Test #6 : "testSubmtUnsppPol"
Test Id | PT_CLIENT_XDR_#6 | ||||||
---|---|---|---|---|---|---|---|
Name | testSubmtUnsppPol | ||||||
Description | (ERROR) The provided privacy policy identifiers not supported by country A. | ||||||
Test Inputs | A consent submitting to a Country A that does not support the given policy. | ||||||
Expected Results | Response Status: Failure | ||||||
Message: Unknown policy | |||||||
Code: 4706 | |||||||
Last Passed Date |
|
Test #6 : "testSubmtCmplxCons"
Test Id | PT_CLIENT_XDR_#6 | ||||||
---|---|---|---|---|---|---|---|
Name | testSubmtCmplxCons | ||||||
Description | (ERROR) Country-A requires for a general consent for epSOS that MUST have been given in country A before more specific consents can be accepted. | ||||||
Test Inputs | A consent submitting to a Country A that does not support complex consents. | ||||||
Expected Results | Response Status: Failure | ||||||
Message: No consent | |||||||
Code: 4701 | |||||||
Last Passed Date |
|
Test #X : "testXXXX"
Test Number | x | ||||||
---|---|---|---|---|---|---|---|
Name | testXXXX | ||||||
Description | Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam fermentum vestibulum est. Cras rhoncus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. | ||||||
Test Inputs | Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam fermentum vestibulum est. Cras rhoncus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. | ||||||
Expected Results | N/A | ||||||
Last Passed Date |
|