Overview
Negative testing with Document Retrieval (DR) by mock (adapterxdsbdocrepository) response and verify the DR response message.
Test Detail
The Bimodal tests are designed to hit service in standard and passthrough, by calling the JMX console to switch the service mode on the fly.
DocumentRetrieveXDSErrorValidation TestSuite
The Test cases are designed to simulate the adapter (error) message and capture in DR response.
XDSRegistryError TestCase
Set Mock URL
SOAP: Nhinc Doc Retrieve Request
Match errorCode (XDSRepositoryError)
Mock XDS.b Repository Response (XDSRepositoryError)
XDSRegistryBusy TestCase
Set Mock URL
SOAP: Nhinc Doc Retrieve Request
Match errorCode (XDSRegistryBusy)
Mock XDS.b Repository Response (XDSRegistryBusy)
XDSRegistryOutOfResources TestCase
Set Mock URL
SOAP: Nhinc Doc Retrieve Request
Match errorCode (XDSRegistryOutOfResources)
Mock XDS.b Repository Response (XDSRegistryOutOfResources)
XDSTooManyResults TestCase
Set Mock URL
SOAP: Nhinc Doc Retrieve Request
Match errorCode (XDSTooManyResults)
Mock XDS.b Repository Response (XDSTooManyResults)
XDSUnknownStoredQuery TestCase
Set Mock URL
SOAP: Nhinc Doc Retrieve Request
Match errorCode (XDSUnknownStoredQuery)
Mock XDS.b Repository Response (XDSUnknownStoredQuery)
XDSStoredQueryMissingParam TestCase
Set Mock URL
SOAP: Nhinc Doc Retrieve Request
Match errorCode (XDSStoredQueryMissingParam)
Mock XDS.b Repository Response (XDSStoredQueryMissingParam)
XDSStoredQueryParamNumber TestCase
Set Mock URL
SOAP: Nhinc Doc Retrieve Request
Match errorCode (XDSStoredQueryParamNumber)
Mock XDS.b Repository Response (XDSStoredQueryParamNumber)
PartialSuccess TestCase
Set Mock URL
SOAP: Nhinc Doc Retrieve Request
Match status(PartialSuccess)
Mock XDS.b Repository Response (XDSStoredQueryParamNumber)