Table of Contents |
---|
Overview
Verify Document Query (DQ) The TestSuite verify error handling for document query with simulated adapter (mock-response) error and verify the service (DQ) registry error.
Test Detail
The Document Query (Passthrough) service is running with JMX call script to set the CONNECT application to Passthrough services without application restart.
Update Adapter (DQ) to mock-response (error)
Send Document Query request and verify error received.
DocQueryXDSErrors TestSuite
XDSStoredQueryParamNumber Test Case
Set Mock URL
NHIN Doc Query Request
Assert errorCode (XDSStoredQueryParamNumber)
Mock XDS.b Response (XDSStoredQueryParamNumber)
XDSRegistryError Test Case
Set Mock URL
NHIN Doc Query Request
Assert errorCode (XDSRegistryError)
Mock XDS.b Response (XDSRegistryError)
XDSRegistryBusy Test Case
Set Mock URL
NHIN Doc Query Request
Assert errorCode (XDSRegistryBusy)
Mock XDS.b Response (XDSRegistryBusy)
XDSRegistryOutofResources Test Case
Set Mock URL
NHIN Doc Query Request
Assert errorCode (XDSRegistryOutofResources)
Mock XDS.b Response (XDSRegistryOutofResources)
XDSTooManyResults Test Case
Set Mock URL
NHIN Doc Query Request
Assert errorCode (XDSTooManyResults)
Mock XDS.b Response (XDSTooManyResults)
XDSUnknownStoredQuery Test Case
Set Mock URL
NHIN Doc Query Request
Assert errorCode (XDSUnknownStoredQuery)
Mock XDS.b Response (XDSUnknownStoredQuery)
XDSStoredQueryMissingParameters Test Case
Set Mock URL
NHIN Doc Query Request
Assert errorCode (XDSStoredQueryMissingParam)
Mock XDS.b Response (XDSStoredQueryMissingParam)
XDSStoredQueryParameterNumber Test Case
...
Set Mock URL
...
NHIN Doc Query Request
Assert errorCode (XDSStoredQueryParamNumber)
...
The TestSuite is run in passthrought, the JMX script is to ensure that the service is in passthrough without the need for server restart.
TestCases Detail for passthrough
The Test cases use mock adapter to simulate the error code and send DQ request message to verify error handling.
XDSStoredQueryParamNumber TestCase
XDSRegistryError TestCase
XDSRegistryBusy TestCase
XDSRegistryOutOfResources TestCase
XDSTooManyResults TestCase
XDSUnknownStoredQuery TestCase
XDSStoredQueryMissingParam TestCase
XDSStoredQueryParamNumber TestCase