Testing the System

aniseedsplashΛογισμικό & κατασκευή λογ/κού

15 Αυγ 2012 (πριν από 4 χρόνια και 10 μήνες)

347 εμφανίσεις

CONNECT:

Testing an Installation

Les Westberg

Copyright 2009. All Rights Reserved.

1

Assumptions/Expectations

Familiarity with…


Java


Service Oriented
Architecture (SOA)


NetBeans


GlassFishESB

Copyright 2009. All Rights Reserved.

2

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

Copyright 2009. All Rights Reserved.

3

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

Copyright 2009. All Rights Reserved.

4

Demonstrations will focus on validation and internal self tests

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

Copyright 2009. All Rights Reserved.

5

Location of Downloads

SoapUI Tests Page

http://www.connectopensource.org/display/NHINR2/SoapUI+Tests

Copyright 2009. All Rights Reserved.

6

http://www.connectopensource.org/display/NHINR2/SoapUI+Tests

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

Copyright 2009. All Rights Reserved.

7

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

Copyright 2009. All Rights Reserved.

8

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

Copyright 2009. All Rights Reserved.

9

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

Copyright 2009. All Rights Reserved.

10

DEMONSTRATION 1

Validate Services Test

Copyright 2009. All Rights Reserved.

11

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

Copyright 2009. All Rights Reserved.

12

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

Copyright 2009. All Rights Reserved.

13

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

Copyright 2009. All Rights Reserved.

14

DEMONSTRATION 2

Internal Self Test

Copyright 2009. All Rights Reserved.

15

CONNECT Seminar
Presentations are Available
for Download Online at

http://www.connectopensource.org

Copyright 2009. All Rights Reserved.

16