Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
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

  1. Set Mock URL

  2. NHIN Doc Query Request

    • Assert errorCode (XDSStoredQueryParamNumber)

  3. Mock XDS.b Response (XDSStoredQueryParamNumber)

XDSRegistryError Test Case

  1. Set Mock URL

  2. NHIN Doc Query Request

    • Assert errorCode (XDSRegistryError)

  3. Mock XDS.b Response (XDSRegistryError)

XDSRegistryBusy Test Case

  1. Set Mock URL

  2. NHIN Doc Query Request

    • Assert errorCode (XDSRegistryBusy)

  3. Mock XDS.b Response (XDSRegistryBusy)

XDSRegistryOutofResources Test Case

  1. Set Mock URL

  2. NHIN Doc Query Request

    • Assert errorCode (XDSRegistryOutofResources)

  3. Mock XDS.b Response (XDSRegistryOutofResources)

XDSTooManyResults Test Case

  1. Set Mock URL

  2. NHIN Doc Query Request

    • Assert errorCode (XDSTooManyResults)

  3. Mock XDS.b Response (XDSTooManyResults)

XDSUnknownStoredQuery Test Case

  1. Set Mock URL

  2. NHIN Doc Query Request

    • Assert errorCode (XDSUnknownStoredQuery)

  3. Mock XDS.b Response (XDSUnknownStoredQuery)

XDSStoredQueryMissingParameters Test Case

  1. Set Mock URL

  2. NHIN Doc Query Request

    • Assert errorCode (XDSStoredQueryMissingParam)

  3. 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