Table of Contents |
---|
Overview
Negative testing with Document Retrieval (DR) by mock (adapterxdsbdocrepository) response and verify the DR response message.
Test Detail
The Bimodal test are design to hit service in standard and passthrough, by calling the JMX console to switch the service mode on the fly.
DocumentRetrieveXDSErrorValidation TestSuite
The TestCase are design 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)
...
Overview
The Test Suite is designed to simulate a negative document repository adapter response for the Document Retrieve (DR) service.
Bimodal tests are executed in both (Standard, PassThrough) modes and required JMX enable at the server level for SoapUI to successfully switch between Standard and PassThrough.
Test Cases Detail for standard and passthrough (DR)
Each test case simulates an error status with mock adapter for document respository and look for specify error code in the document retrieve response.
XDSRegistryError TestCase: simulate and verify XDSRegistryError response.
XDSRegistryBusy TestCase: simulate and verify XDSRegistryBusy response.
XDSRegistryOutOfResources TestCase: simulate and verify XDSRegistryOutOfResources response.
XDSTooManyResults TestCase: simulate and verify XDSTooManyResults response.
XDSUnknownStoredQuery TestCase: simulate and verify XDSUnknownStoredQuery response.
XDSStoredQueryMissingParam TestCase: simulate and verify XDSStoredQueryMissingParam response.
XDSStoredQueryParamNumber TestCase: simulate and verify XDSStoredQueryParamNumber response.
PartialSuccess TestCase: in the case of Partial Success verify the response status.