Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

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

  1. Set Mock URL

  2. SOAP: Nhinc Doc Retrieve Request

    • Match errorCode (XDSRepositoryError)

  3. Mock XDS.b Repository Response (XDSRepositoryError)

XDSRegistryBusy TestCase

  1. Set Mock URL

  2. SOAP: Nhinc Doc Retrieve Request

    • Match errorCode (XDSRegistryBusy)

  3. Mock XDS.b Repository Response (XDSRegistryBusy)

XDSRegistryOutOfResources TestCase

  1. Set Mock URL

  2. SOAP: Nhinc Doc Retrieve Request

    • Match errorCode (XDSRegistryOutOfResources)

  3. Mock XDS.b Repository Response (XDSRegistryOutOfResources)

XDSTooManyResults TestCase

  1. Set Mock URL

  2. SOAP: Nhinc Doc Retrieve Request

    • Match errorCode (XDSTooManyResults)

  3. Mock XDS.b Repository Response (XDSTooManyResults)

XDSUnknownStoredQuery TestCase

  1. Set Mock URL

  2. SOAP: Nhinc Doc Retrieve Request

    • Match errorCode (XDSUnknownStoredQuery)

  3. Mock XDS.b Repository Response (XDSUnknownStoredQuery)

XDSStoredQueryMissingParam TestCase

  1. Set Mock URL

  2. SOAP: Nhinc Doc Retrieve Request

    • Match errorCode (XDSStoredQueryMissingParam)

  3. Mock XDS.b Repository Response (XDSStoredQueryMissingParam)

XDSStoredQueryParamNumber TestCase

  1. Set Mock URL

  2. SOAP: Nhinc Doc Retrieve Request

    • Match errorCode (XDSStoredQueryParamNumber)

  3. Mock XDS.b Repository Response (XDSStoredQueryParamNumber)

PartialSuccess TestCase

...

Set Mock URL

...

SOAP: Nhinc Doc Retrieve Request

  • Match status(PartialSuccess)

...

Overview

The TestSuite design to simulate negative document repository adapter response for the document retrieve service. Bimodal test suite, test the service in both standard and passthrough and will call the JMX in the test case to switch service mode between standard and passthrough without application server restart.

TestCases Detail for standard and passthrough (DR)

Each test case simulate 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.