XDR Service - Integration Testing

XDR Service 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.

Work In Progress!

Table Color

COMMONCONSENT SERVICEDISPENSATION SERVICEHCER

Tests

Test #0 : "testSubmitConsent"

Test IdPT_SERVER_XDR_#0
Name

testSubmitConsent

Description

This test performs a simple submitting action for a consent.

It is a simple test designed uniquely for testing the normal work-flow of the XDR.

Test Inputs
xdr/consent/testSubmitConsent.xml

A valid ProvideAndRegisterDocumentSetRequest XML document containing a valid CDA XML document.

 

Expected Results
<ns2:RegistryResponse
   status="urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Success"
Last Passed DateN/A
Implementation StatusDONE

Test #1 : "testSubmitED"

Test IdPT_SERVER_XDR_#1
Name

testSubmitED

Description

This test performs a simple submitting action for a eDispensation.

It is a simple test designed uniquely for testing the normal work-flow of the XDR.

Test Inputs
xdr/edispensation/testSubmitED.xml

A valid ProvideAndRegisterDocumentSetRequest XML document containing a valid CDA XML document.

Expected Results
<ns2:RegistryResponse
   status="urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Success"
Last Passed DateN/A
Implementation StatusDONE

 

Test #2 : "testSubmitNoEP"

Test IdPT_SERVER_XDR_#2
Name

testSubmitNoEP

Description

(ERROR)

No matching ePrescription was found.

Test Inputs
xdr/edispensation/testSubmitED.xml

A valid ProvideAndRegisterDocumentSetRequest XML document containing a valid CDA XML document.

The CDA contains a comment <!--testSubmitNoEP--> which forces Mock-NC to throw the appropriate exception

Expected Results

Response Status: Failure

<ns2:RegistryResponse
   status="urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure"
   <ns2:RegistryErrorList>
      <ns2:RegistryError codeContext="testSubmitNoEP" errorCode="4105"
Code: 4105
Last Passed Date

N/A

Implementation statusDONE

 

Test #3 : "testSubmitDispEP"

Test IdPT_CLIENT_XDR_#3
Name

testSubmitDispEP

Description

(ERROR)

ePrescription has already been dispensed.

Test Inputs
xdr/edispensation/testSubmitDispED.xml

A valid ProvideAndRegisterDocumentSetRequest XML document containing a valid CDA XML document.

The CDA contains a comment <!--testSubmitDispEP--> which forces Mock-NC to throw the appropriate exception

Expected Results

Response Status: Failure

<ns2:RegistryResponse
   status="urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure"
   <ns2:RegistryErrorList>
      <ns2:RegistryError codeContext="testSubmitDispEP" errorCode="4106"
Code: 4106
Last Passed DateN/A
Implementation statusDONE

 

Test #4 : "testSubmitHcer"

Test IdPT_CLIENT_XDR_#4
Name

testSubmitHcer

Description

Test submitting HCER document

Test Inputs
xdr/edispensation/testSubmitHcer.xml

A valid ProvideAndRegisterDocumentSetRequest XML document containing a valid CDA XML document.

Expected Results

Response Status: Success

<ns2:RegistryResponse
   status="urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Success">
Last Passed DateN/A
Implementation statusDONE