...
Overview
The Test Suite verifies events logging for all CONNECT services and spec version (g0, g1). The Test Suite is run in passthrough, the JMX script is to ensure that the service is in passthrough without the need for server restart.
g1 Suite: This test suite is used to test CONNECT auditing functionality that supports the endpoints implement July-2011 specs.
g0 Suite: This test suite is used to test CONNECT auditing functionality that supports the endpoints implement prior to July-2011 specs.
Table of Contents |
---|
Overview
Send CONNECT Services request to all services and verify each service event logging.
Test Detail
The services (Passthrought) are running with JMX call script to set the CONNECT application to Passthrough without application restart, and run the services in both spec (g1, g0)
Clear Database Table (Event Log)
** For DQ, Update Table (Correlation, AAMapping)
** For PD, Update mock-response (Adapter) for Passthrough
Send SOAP (Service) request
** For PD, Create Mock Response (Adapter)
Assert count (events)
Assert element (events)
...
Test Cases Detail for passthrough
The test cases verifies the requesting service and its event log details by clearing out the logging event table before the service request is made, verify the event count for the service ran and assert the details of the event log like message id, initiating Home Community ID (HCID), responding HCID and service version (g1, g0) expected.
The following CONNECT services is verified by the Test Suite.
Document Submission Deferred (Request)
Clear Event Logs
SOAP: Doc Submission Deferred Req
Assert status (RequestAccepted)
Verify Event Logs
Assert count (Events)
Verify Elements in Event Log
Assert element (Events)
Document Submission Deferred (Response)
...
...
SOAP: Doc Submission Deferred Resp
Assert status (ResponseAccepted)
...
Verify Event Logs
Assert count (Events)
...
Verify Elements in Event Log
Assert element (Events)
Document
...
Clear Event Logs
...
Submission
...
Assert status (Success)
...
Verify Event Logs
Assert count (Events)
Verify Elements in Event Log
...
Patient Discovery Deferred (Request
...
Clear Event Logs
SOAP: Patient Discovery Deferred Req
...
)
...
Assert count (Events)
...
Verify Elements in Event Log
Assert element (Events)
Patient Discovery Deferred (Response)
...
...
Patient Discovery
...
...
Verify Event Logs
Assert count (Events)
...
Verify Elements in Event Log
Assert element (Events)
Document
...
Clear Event Logs
SOAP: Doc Submission
Assert status (Success)
Verify Event Logs
Assert count (Events)
Verify Elements in Event Log
Assert element (Events)
Patient Discovery
Clear Event Logs
Set Up PassThru (mockPDAdapter)
SOAP: Doc Submission
Assert (controlActProcess, Given Name, Family Name)
Mock Response
Verify Event Logs
Assert count (Events)
Verify Elements in Event Log
Assert element (Events)
Document Query
...
Clear Event Logs
...
Clear Correlation Table & Add Correlation
...
Clear AA Mapping Table & Add Mapping
...
Query
...
...
Verify Event Logs
Assert count (Events)
...
Verify Elements in Event Log
Assert element (Events)
Document Retrieve
...
Clear Event Logs
...
SOAP: Document Retrieve
Assert (Repository Id, Document Id, Document Data)
...
Assert count (Events)
...
Verify Elements in Event Log
Assert element (Events)
Admin Distribution
...
...
Document
...
Assert HTTP status (202)
...
Delay (15 second)
...
Verify Event Logs
Assert count (Events)
...
Verify Elements in Event Log
Assert element (Events)
...
Data Submission (
...
g1 only)
...
Clear Event Logs
...
Assert status (Success)
...
Verify Event Logs
Assert count (Events)
...
Verify Elements in Event Log
Assert element (Events)
Patient Location Query (
...
g1 only)
...
Clear Event Logs
...
SOAP: Patient Location Query
Assert count (PatientLocationResponse == 2)
...
Verify Event Logs
Assert count (Events)
Verify Elements in Event Log
...