CONNECT:
Testing an Installation
Les Westberg
1
Copyright 2009. All Rights Reserved.
Assumptions/Expectations
Familiarity with…
• Java
• Service Oriented
Architecture (SOA)
• NetBeans
• GlassFishESB
2
Copyright 2009. All Rights Reserved.
Purpose of Tests
• Provide an initial set of sample tests
– Inbound NHIN message processing
• Subject discovery
• Document query
• Document retrieve
• Audit log query
• Health information event management (HIEM)
– MPI lookup
– Policy engine operations
– Document repository access
– Subscription file lookup
• Validate an installation of CONNECT
– Same tests used to validate all 4 installation options
3
Copyright 2009. All Rights Reserved.
Tests Installation Options
• Validate services
– Validates contents of internalConnectionInfo.xml file
• Internal self test
– Validates that the gateway and adapter are functioning
– Uses loop back testing of the gateway and adapter
• Outbound self test
– Validates communication to remote gateways
Demonstrations will focus on validation and internal self tests
4
Copyright 2009. All Rights Reserved.
Software Requirements
SoapUI 2.5.1
– Works with either the free or professional version
– This was installed during the installation instructions
CONNECT 2.0 gateway installed
CONNECT 2.0 adapter installed
5
Copyright 2009. All Rights Reserved.
Location of Downloads
http://www.connectopensource.org/display/NHINR2/SoapUI+Tests
SoapUI Tests Page
http://www.connectopensource.org/display/NHINR2/SoapUI+Tests
6
Copyright 2009. All Rights Reserved.
SoapUI Configuration: HTTP Version
HTTP Version must be set to 1.1
Some installations set this value to 0.9
Steps to change version
– Select Preferences under the File menu
– HTTP Version is on the HTTP Settings page
– After changing select OK.
– Select Save Preferences under the File menu
7
Copyright 2009. All Rights Reserved.
Starting and Stopping GlassFish
from the Command Line
• Add to path
– C:\GlassFishESB\glassfish\bin
• Start glassfish
– asadmin start-domain domain1
– Not fully started until server.log states:
• “JBI Framework Startup Complete”
• Stop glassfish
– asadmin stop-domain domain1
8
Copyright 2009. All Rights Reserved.
Validate Services
Basic Testing Steps
• Download the validate services test zip file
• Update ValidateServices.properties file
• Run the test suite using Soap UI
• Examine test results
9
Copyright 2009. All Rights Reserved.
Items to Download for Validate
Services Test
• Validate services setup instructions
– NHIN_CONNECT_Release_2_0_A020_Demonstration_
Scripts_Validate_Services_Setup_Instructions_May_13_
2009.pdf
• Validate services package
– NHIN_CONNECT_Release_2_0_A020_Demonstration_
Scripts_Validate_Services_May_13_2009.zip
10
Copyright 2009. All Rights Reserved.
DEMONSTRATION 1
Validate Services Test
11
Copyright 2009. All Rights Reserved.
Internal Self Test
Basic Testing Steps
• Download the internal self test zip file
• Location of property files is different on source code
install
– C:\projects\NHINC\Current\Product\Production\Common\Properties
• Adapter set up
– Import patient documents into the document repository
– Copy the mpi.xml file to MPI directory
– Copy the reidentification.xml file to the configuration directory
– Create patient’s consumer preferences profile
12
Copyright 2009. All Rights Reserved.
Internal Self Test
Basic Testing Steps (cont.)
Gateway set up
– Verify configuration settings in the domain.xml configuration file
– Verify that the correlatedidentifiers table is empty
– Update the InternalSelfTest.properties file
– Update the subscriptionList-subscribee.xml file
– Update the internalConnectionInfo_InternalSelfTest.xml file
– Update SoapUI startup options
– Update SoapUI preferences
– Import the internal self test project file into SoapUI
– Fix the path to the internalSelfTest.properties file
– Run the Self Test Test Suite
– Examine the test results
13
Copyright 2009. All Rights Reserved.
Items to Download for Internal Self Test
• Internal self test setup instructions
– NHIN_CONNECT_Release_2_0_A020_Demonstration_
Scripts_Internal_Self_Test_Setup_Instructions_May_13
_2009.pdf
• Internal self test package v1.1
– NHIN_CONNECT_Release_2_0_A020_Demonstration_
Scripts_Internal_Self_Test_May_13_2009.zip
14
Copyright 2009. All Rights Reserved.
DEMONSTRATION 2
Internal Self Test
15
Copyright 2009. All Rights Reserved.
CONNECT Seminar
Presentations are Available
for Download Online at
http://www.connectopensource.org
16
Copyright 2009. All Rights Reserved.