EventLogging-Standard

EventLogging-StandardTest Details:

Overview:

EntityXDRTests project is used for testing the event logging functionality for all the current services in CONNECT. This test ensures that a record is inserted into the database for each entry point, under each service. Testing will be done in standard mode. Each test here runs through roughly the same steps, so the test case will be explained as a whole from a general standpoint.


TestCase Details:

g1 Suite:  This test suite is used to test CONNECT event logging functionality that supports the endpoints implement July-2011 specs. 

g0 Suite:  This test suite is used to test CONNECT event logging functionality that supports the endpoints implement prior to July-2011 specs.


Each test here runs through the general process of clearing out the event logging table to ensure the counts of each invocation is correct. Once the table is cleared, the respective service will be invoked with mock data. This data is populated via setup scripts according to the service being run. Additional scripts/configuration may be setup in instances such as DS and DQ tests where a correlation is inserted for mock data as well. After the service is invoked, we then check the eventdb table for the correct number of entries, and ensure each BEGIN_* entry has its respective END_* element. It also ensures that these entries have the correct service name listed in the event row.


Preparation & Execution:

  1. Make sure to copy CONNECT common properties from \\CONNECT\Product\Production\Common\Properties\src\main\resources to application server properties folder. (If using WildFly 8.2.1 , copy into \\wildfly-8.2.1.Final\modules\system\layers\base\org\connectopensource\configuration\main).
  2. Make sure to enable Standard mode for services in gateway.properties. Note: By default all services will be in Standard mode in gateway.properties as of CONNECT-4.6 release.
  3. Restart application server.
  4. Deploy CONNECT ear (mvn clean install -P AD,PD,DQ,DR,DS).
  5. In SoapUI, make sure to have GatewayPropDir value set either by using global SOAPUI properties or by setting custom SOAPUI property at the project level.
  6. In SoapUI, load EventLogging-Standard project and execute.
  7. Make sure all test cases are passed and green.