Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

COSMOS QA End2End Tests

Revision as of 05:36, 5 June 2008 by Unnamed Poltroon (Talk) (Using the COSMOS Web User Interface)

Contents

Overview

The purpose of this page is to articulate all COSMOS End-to-End test scenarios for QA testing. This page will be filled in by the QA team and will be updated with every new iteration.

COSMOS Installation

As a pre-requisite for below test scenarios, install the COSMOS application as per the instructions available at http://wiki.eclipse.org/COSMOS_DEMO_i11#Installation

Note: All below test instructions and expected results are taken from windows environment, same tests will be applicable for Linux environment with little variations.

COSMOS End2End Tests

Build Installation and Configuration

Test Description:Build Installation

  • To test Build installation with default configuration
  1. configDemo.bat C:\cosmos\i11\apache-tomcat-5.5.25 C:\cosmos\i11\cosmos-demo C:\cosmos\i11\birt-runtime-2.3M6.zip C:\cosmos\i11\dojo-release-1.0.2.zip C:\cosmos\i11\axis2.war

Expected Result:

Unzipping C:\cosmos\i11\axis2.war to C:\cosmos\i11\apache-tomcat-5.5.25\webapps\axis2...
Installed axis2 on Apache Tomcat server.
Installed web application: COSMOSReportViewer
Installed web application: COSMOSUI
Unzipping C:\cosmos\i11\birt-runtime-2.3M6.zip to C:\cosmos\i11\apache-tomcat-5.5.25\webapps/COSMOSReportViewer...
Unzipped BIRT to COSMOSReportViewer
Copied BIRT web viewer example to COSMOSReportViewer
Unzipping C:\cosmos\i11\dojo-release-1.0.2.zip to C:\cosmos\i11\apache-tomcat-5.5.25\webapps/COSMOSUI...
Unzipped dojo to COSMOSUI.
Installed web service: AperiMdr
Installed web service: Broker
Installed web service: ExampleMdr
Installed web service: LoggingDataManager
Installed web service: ServiceFinder
Installed web service: SMLMDR
Installed web service: StatDataManager
Installed web service: TestFederatingCMDB
Copied axis jar files to COSMOSUI.
Copied axis jar files to COSMOSReportViewer.
Copied axis jar files to cosmos client.
Updated axis2.xml.
Updated services.xml for SML MDR.
Updated services.xml for statistical MDR.

Using COSMOS Command Line Client : Management Console

Starting COSMOS Command Line Client

Test Description:cosmosClient default broker

  • To start COSMOS command line client with default broker
  1. Start COSMOS Command line client with default broker,
  2. <cosmos-demo>\cosmos-client\cosmosClient.bat

Expected Result:

Usage: CosmosClient [Broker EPR]
Commands:
set soapversion [11 or 12]
set username [username]
set password [password]
Show
broker getDataManagers [service namespace]
broker registerAllDataManagers [service finder EPR]
broker register <DataManager name> [service finder EPR]
broker registerServiceGroup <host> <name> <wsdl URL #1> [wsdl URL #2] ...
broker deregister <host> <name>
broker epr print
broker epr change
finddatamanagers [service finder EPR]
graphQuery <host> <MDR name> <query filename> <optional query result filename>
help
exit
--------------
For commands that take an optional service finder EPR and it is not specified
It is deduced from the Broker EPR.

Test Description:cosmosClient custom broker

  • To start COSMOS command line client with custom broker
  1. Start COSMOS Command line client with custom broker,
  2. <cosmos-demo>\cosmos-client\cosmosClient.bat http://domsr01-xp:8080/axis2/services/Broker

Expected Result:

Usage: CosmosClient [Broker EPR]
Commands:
set soapversion [11 or 12]
set username [username]
set password [password]
Show
broker getDataManagers [service namespace]
broker registerAllDataManagers [service finder EPR]
broker register <DataManager name> [service finder EPR]
broker registerServiceGroup <host> <name> <wsdl URL #1> [wsdl URL #2] ...
broker deregister <host> <name>
broker epr print
broker epr change
finddatamanagers [service finder EPR]
graphQuery <host> <MDR name> <query filename> <optional query result filename>
help
exit
--------------
For commands that take an optional service finder EPR and it is not specified
It is deduced from the Broker EPR.

Test Description:cosmosClient setusername/password

  • To test the ability of COSMOS basic security feature
  1. Start COSMOS Command line client with default broker,
  2. Open CosmosCLI interface,<cosmos-demo>\cosmos-client\cosmosClient.bat
  3. COSMOS>set soapversion 12
  4. COSMOS>set username "srinivas"
  5. COSMOS>set password "srinivas"
  6. COSMOS>show

Expected Result:

COSMOS> show
Options:
brokerEPR: http://domsr01-xp:8080/axis2/services/Broker
serviceFinderEPR: http://domsr01-xp:8080/axis2/services/CosmosServiceFinder
serviceNamespace: null
username: srinivas
password: srinivas
soapVersion: 12

Register Data Managers with Broker

Test Description:Default Broker

  • To register all COSMOS data managers that are deployed on an Axis2 web service container with the default broker
  1. Start COSMOS Client with default broker -> cosmosClient.bat
  2. At COSMOS prompt run -> broker registerAllDataManagers

Expected Result:

Registering StatDataManager
Registering LoggingDataManager
Registering TestFederatingCMDB
Registering ExampleMdr
Registering SMLMDR
Registering AperiMdr
DataManagers registered

Test Description:Custom Broker

  • To register all COSMOS data managers that are deployed on an Axis2 web service container with the custom broker
  1. Start COSMOS Client with default broker -> cosmosClient.bat http://domsr01-xp:8080/axis2/services/Broker
  2. At COSMOS prompt run -> broker registerAllDataManagers

Expected Result:

Registering StatDataManager
Registering LoggingDataManager
Registering TestFederatingCMDB
Registering ExampleMdr
Registering SMLMDR
Registering AperiMdr
DataManagers registered

Test Description:Broker register StatDataManager

  • To register a COSMOS data manager that are deployed on an Axis2 web service container with the broker
  1. Start COSMOS Client with default broker -> cosmosClient.bat http://domsr01-xp:8080/axis2/services/Broker
  2. At COSMOS prompt run -> broker register StatDataManager http://localhost:8080/axis2/services/CosmosServiceFinder

Expected Result:

  1. Registering StatDataManager

Test Description:Broker register LoggingDataManager

  • To register a COSMOS data manager that are deployed on an Axis2 web service container with the broker
  1. Start COSMOS Client with default broker -> cosmosClient.bat http://domsr01-xp:8080/axis2/services/Broker
  2. At COSMOS prompt run -> broker register LoggingDataManager http://localhost:8080/axis2/services/CosmosServiceFinder

Expected Result:

  1. Registering LoggingDataManager

Test Description:Broker register TestFederatingCMDB

  • To register a COSMOS data manager that are deployed on an Axis2 web service container with the broker
  1. Start COSMOS Client with default broker -> cosmosClient.bat http://domsr01-xp:8080/axis2/services/Broker
  2. At COSMOS prompt run -> broker register TestFederatingCMDB http://localhost:8080/axis2/services/CosmosServiceFinder

Expected Result:

  1. Registering TestFederatingCMDB

Test Description:Broker register ExampleMdr

  • To register a COSMOS data manager that are deployed on an Axis2 web service container with the broker
  1. Start COSMOS Client with default broker -> cosmosClient.bat http://domsr01-xp:8080/axis2/services/Broker
  2. At COSMOS prompt run -> broker register ExampleMdr http://localhost:8080/axis2/services/CosmosServiceFinder

Expected Result:

  1. Registering ExampleMdr

Test Description:Broker register SMLMDR

  • To register a COSMOS data manager that are deployed on an Axis2 web service container with the broker
  1. Start COSMOS Client with default broker -> cosmosClient.bat http://domsr01-xp:8080/axis2/services/Broker
  2. At COSMOS prompt run -> broker register SMLMDR http://localhost:8080/axis2/services/CosmosServ

iceFinder Expected Result:

  1. Registering SMLMDR

Test Description:Broker register AperiMdr

  • To register a COSMOS data manager that are deployed on an Axis2 web service container with the broker
  1. Start COSMOS Client with default broker -> cosmosClient.bat http://domsr01-xp:8080/axis2/services/Broker
  2. At COSMOS prompt run -> broker register AperiMdr http://localhost:8080/axis2/services/CosmosServ

iceFinder Expected Result:

  1. Registering AperiMdr

Test Description:Broker registerServiceGroup

  • To register ServiceGroup that are deployed on an Axis2 web service container with the broker
  1. Start COSMOS Client with default broker -> cosmosClient.bat http://domsr01-xp:8080/axis2/services/Broker
  2. At COSMOS prompt run -> broker registerServiceGroup <host> <name> <wsdl>

Expected Result:


List All Data Managers Registered with Broker

Test Description:getDataManagers default broker

  • For listing out all data managers registered at the default broker
  1. Start COSMOS Client with default broker -> cosmosClient.bat http://localhost:8080/axis2/services/Broker
  2. At COSMOS prompt run -> broker getDataManagers

Expected Result:

Data managers registered at the broker.
Data manager name: StatDataManager
Hostname of data manager: domsr01-xp
Description:
 Service
   namespace: http://datamgr.stat.internal.dc.cosmos.eclipse.org
   EPR: http://localhost:8080/axis2/services/StatisticalDataManager
   Description:
                Statistical DataManager


 Service
   namespace: http://www.eclipse.org/cosmos/datamanager
   EPR: http://localhost:8080/axis2/services/StatDataManager
   Description: COSMOS Data Manager

Data manager name: LoggingDataManager
Hostname of data manager: domsr01-xp
Description:
 Service
   namespace: http://www.eclipse.org/cosmos/datamanager
   EPR: http://localhost:8080/axis2/services/LoggingDataManager
   Description: COSMOS Data Manager

 Service
   namespace: http://datamgr.logging.internal.dc.cosmos.eclipse.org
   EPR: http://localhost:8080/axis2/services/CBEServices
   Description:
                Logging DataManager


Data manager name: TestFederatingCMDB
Hostname of data manager: domsr01-xp
Description:
 Service
   namespace: http://cmdbf.org/schema/1-0-0/registration
   EPR: http://localhost:8080/axis2/services/TestFederatingCMDBRegistrationServi
ce
   Description: Test Federating CMDB Registration Service

 Service
   namespace: http://www.eclipse.org/cosmos/datamanager
   EPR: http://localhost:8080/axis2/services/TestFederatingCMDBDataManager
   Description: COSMOS Data Manager

 Service
   namespace: http://cmdbf.org/schema/1-0-0/query
   EPR: http://localhost:8080/axis2/services/TestFederatingCMDBQueryService
   Description: Test Federating CMDB Query Service

Data manager name: ExampleMdr
Hostname of data manager: domsr01-xp
Description:
 Service
   namespace: http://cmdbf.org/schema/1-0-0/query
   EPR: http://localhost:8080/axis2/services/ExampleMdrQueryService
   Description: Example MDR Query Service

 Service
   namespace: http://www.eclipse.org/cosmos/datamanager
   EPR: http://localhost:8080/axis2/services/ExampleMdrDataManager
   Description: COSMOS Data Manager

Data manager name: SMLMDR
Hostname of data manager: domsr01-xp
Description:
 Service
   namespace: http://www.eclipse.org/cosmos/datamanager
   EPR: http://localhost:8080/axis2/services/SmlMdrDataManager
   Description: COSMOS Data Manager

 Service
   namespace: http://cmdbf.org/schema/1-0-0/query
   EPR: http://localhost:8080/axis2/services/SmlMdrQueryService
   Description: SML MDR Query Service

Data manager name: AperiMdr
Hostname of data manager: domsr01-xp
Description:
 Service
   namespace: http://cmdbf.org/schema/1-0-0/query
   EPR: http://localhost:8080/axis2/services/AperiMdrQueryService
   Description: Aperi MDR Query Service

 Service
   namespace: http://www.eclipse.org/cosmos/datamanager
   EPR: http://localhost:8080/axis2/services/AperiMdrDataManager
   Description: COSMOS Data Manager

Test Description:getDataManagers custom broker

  • For listing out all data managers registered at the default broker
  1. Start COSMOS Client with custom broker -> cosmosClient.bat http://domsr01-xp:8080/axis2/services/Broker
  2. At COSMOS prompt run -> broker getDataManagers

Expected Result:

Data managers registered at the broker.
Data manager name: StatDataManager
Hostname of data manager: domsr01-xp
Description:
 Service
   namespace: http://datamgr.stat.internal.dc.cosmos.eclipse.org
   EPR: http://domsr01-xp:8080/axis2/services/StatisticalDataManager
   Description:
                Statistical DataManager


 Service
   namespace: http://www.eclipse.org/cosmos/datamanager
   EPR: http://domsr01-xp:8080/axis2/services/StatDataManager
   Description: COSMOS Data Manager

Data manager name: LoggingDataManager
Hostname of data manager: domsr01-xp
Description:
 Service
   namespace: http://www.eclipse.org/cosmos/datamanager
   EPR: http://domsr01-xp:8080/axis2/services/LoggingDataManager
   Description: COSMOS Data Manager

 Service
   namespace: http://datamgr.logging.internal.dc.cosmos.eclipse.org
   EPR: http://domsr01-xp:8080/axis2/services/CBEServices
   Description:
                Logging DataManager


Data manager name: TestFederatingCMDB
Hostname of data manager: domsr01-xp
Description:
 Service
   namespace: http://cmdbf.org/schema/1-0-0/registration
   EPR: http://domsr01-xp:8080/axis2/services/TestFederatingCMDBRegistrationServ
ice
   Description: Test Federating CMDB Registration Service

 Service
   namespace: http://www.eclipse.org/cosmos/datamanager
   EPR: http://domsr01-xp:8080/axis2/services/TestFederatingCMDBDataManager
   Description: COSMOS Data Manager

 Service
   namespace: http://cmdbf.org/schema/1-0-0/query
   EPR: http://domsr01-xp:8080/axis2/services/TestFederatingCMDBQueryService
   Description: Test Federating CMDB Query Service

Data manager name: ExampleMdr
Hostname of data manager: domsr01-xp
Description:
 Service
   namespace: http://cmdbf.org/schema/1-0-0/query
   EPR: http://domsr01-xp:8080/axis2/services/ExampleMdrQueryService
   Description: Example MDR Query Service

 Service
   namespace: http://www.eclipse.org/cosmos/datamanager
   EPR: http://domsr01-xp:8080/axis2/services/ExampleMdrDataManager
   Description: COSMOS Data Manager

Data manager name: SMLMDR
Hostname of data manager: domsr01-xp
Description:
 Service
   namespace: http://www.eclipse.org/cosmos/datamanager
   EPR: http://domsr01-xp:8080/axis2/services/SmlMdrDataManager
   Description: COSMOS Data Manager

 Service
   namespace: http://cmdbf.org/schema/1-0-0/query
   EPR: http://domsr01-xp:8080/axis2/services/SmlMdrQueryService
   Description: SML MDR Query Service

Data manager name: AperiMdr
Hostname of data manager: domsr01-xp
Description:
 Service
   namespace: http://cmdbf.org/schema/1-0-0/query
   EPR: http://domsr01-xp:8080/axis2/services/AperiMdrQueryService
   Description: Aperi MDR Query Service

 Service
   namespace: http://www.eclipse.org/cosmos/datamanager
   EPR: http://domsr01-xp:8080/axis2/services/AperiMdrDataManager
   Description: COSMOS Data Manager

Find all DataManagers using CosmosServiceFinder

Test Description:finddatamanagers

  • To get list of COSMOS data managers deployed on the axis2 web service container as the service finder web service
  1. finddatamanagers http://localhost:8080/axis2/services/CosmosServiceFinder

Expected Result:

Data manager name: StatDataManager
Hostname of data manager: domsr01-xp
Description:
 Service
   namespace: http://datamgr.stat.internal.dc.cosmos.eclipse.org
   EPR: http://localhost:8080/axis2/services/StatisticalDataManager
   Description:
                Statistical DataManager


 Service
   namespace: http://www.eclipse.org/cosmos/datamanager
   EPR: http://localhost:8080/axis2/services/StatDataManager
   Description: COSMOS Data Manager

Data manager name: LoggingDataManager
Hostname of data manager: domsr01-xp
Description:
 Service
   namespace: http://www.eclipse.org/cosmos/datamanager
   EPR: http://localhost:8080/axis2/services/LoggingDataManager
   Description: COSMOS Data Manager

 Service
   namespace: http://datamgr.logging.internal.dc.cosmos.eclipse.org
   EPR: http://localhost:8080/axis2/services/CBEServices
   Description:
                Logging DataManager


Data manager name: TestFederatingCMDB
Hostname of data manager: domsr01-xp
Description:
 Service
   namespace: http://cmdbf.org/schema/1-0-0/registration
   EPR: http://localhost:8080/axis2/services/TestFederatingCMDBRegistrationServi
ce
   Description: Test Federating CMDB Registration Service

 Service
   namespace: http://www.eclipse.org/cosmos/datamanager
   EPR: http://localhost:8080/axis2/services/TestFederatingCMDBDataManager
   Description: COSMOS Data Manager

 Service
   namespace: http://cmdbf.org/schema/1-0-0/query
   EPR: http://localhost:8080/axis2/services/TestFederatingCMDBQueryService
   Description: Test Federating CMDB Query Service

Data manager name: ExampleMdr
Hostname of data manager: domsr01-xp
Description:
 Service
   namespace: http://cmdbf.org/schema/1-0-0/query
   EPR: http://localhost:8080/axis2/services/ExampleMdrQueryService
   Description: Example MDR Query Service

 Service
   namespace: http://www.eclipse.org/cosmos/datamanager
   EPR: http://localhost:8080/axis2/services/ExampleMdrDataManager
   Description: COSMOS Data Manager

Data manager name: SMLMDR
Hostname of data manager: domsr01-xp
Description:
 Service
   namespace: http://www.eclipse.org/cosmos/datamanager
   EPR: http://localhost:8080/axis2/services/SmlMdrDataManager
   Description: COSMOS Data Manager

 Service
   namespace: http://cmdbf.org/schema/1-0-0/query
   EPR: http://localhost:8080/axis2/services/SmlMdrQueryService
   Description: SML MDR Query Service

Data manager name: AperiMdr
Hostname of data manager: domsr01-xp
Description:
 Service
   namespace: http://cmdbf.org/schema/1-0-0/query
   EPR: http://localhost:8080/axis2/services/AperiMdrQueryService
   Description: Aperi MDR Query Service

 Service
   namespace: http://www.eclipse.org/cosmos/datamanager
   EPR: http://localhost:8080/axis2/services/AperiMdrDataManager
   Description: COSMOS Data Manager

Deregistering Data Managers from broker

While deregistering Data Managers from broker, use hostname and DataManager names from the result of 'broker getDataManagers', otherwise deregister will fail for any mis-match in hostname/datamanager name.

Test Description: deregister StatDataManager

  • To Deregister data manager - "StatDataManager" from the broker
  1. COSMOS> broker deregister domsr01-xp StatDataManager

Expected Result:

  • DataManager deregistered.

Test Description: deregister LoggingDataManager

  • To Deregister data manager - "LoggingDataManager" from the broker
  1. COSMOS> broker deregister domsr01-xp LoggingDataManager

Expected Result:

  • DataManager deregistered.

Test Description: deregister TestFederatingCMDB

  • To Deregister data manager - "TestFederatingCMDB" from the broker
  1. COSMOS> broker deregister domsr01-xp TestFederatingCMDB

Expected Result:

  • DataManager deregistered.

Test Description:deregister ExampleMdr

  • To Deregister data manager - "ExampleMdr" from the broker
  1. COSMOS> broker deregister domsr01-xp ExampleMdr

Expected Result:

  • DataManager deregistered.

Test Description:deregister SMLMDR

  • To Deregister data manager - "SMLMDR" from the broker
  1. COSMOS> broker deregister domsr01-xp SMLMDR

Expected Result:

  • DataManager deregistered.

Test Description:deregister AperiMdr

  • To Deregister data manager - "AperiMdr" from the broker
  1. COSMOS> broker deregister domsr01-xp AperiMdr

Expected Result:

  • DataManager deregistered.

Executing CMDBf Queries using graphQuery

Test Description:graphQuery with Security

  • To test the basic security feature of COSMOS
  1. Open cosmosClient interface, <cosmos-demo>/cosmosClient/bin/cosmosClient.bat
  2. COSMOS>set soapversion 12
  3. COSMOS>set username srinivas
  4. COSMOS>set password srinivas
  5. Execute, graphQuery domsr01-xp ExampleMdr D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\ExampleMDR\all-students.txt
  6. Capture above SOAP request message using SOAPMonitor or with any other tool

Expected Result:

  1. Captured SOAP request message should contain security header along with query data as listed below.
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Header>
<sec:securityHeader xmlns:sec="http://schemas.xmlsoap.org/soap/envelope/" sec:mustUnderstand="0"><sec:username>srinivas</sec:username>
<sec:password>srinivas</sec:password></sec:securityHeader>
</soapenv:Header>
<soapenv:Body><s:query xmlns:s="http://cmdbf.org/schema/1-0-0/datamodel">
	<s:itemTemplate id="items">
		<s:recordConstraint>
			<s:recordType localName="student" namespace="" />			
		</s:recordConstraint>
	</s:itemTemplate>
</s:query></soapenv:Body></soapenv:Envelope>

Test Description:TestFederatingCMDB

  • To submit CMDBf query to fetch results for registered items
  1. graphQuery domsr01-xp TestFederatingCMDB D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\TestFederatingCMDB\all_items.txt
  • Note:Make sure to register some configuration items, before executing this query.

Expected Result:

  1. Should display appropriate query result with list of registered data item values.

Test Description:SMLMDR 1

  • To invoke graphQuery on SMLMDR
  1. COSMOS> graphQuery domsr01-xp SMLMDR D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\SMLMDR\testInstanceIdQuery.txt

Expected Result:

GraphQuery response:
<?xml version="1.0" encoding="UTF-8"?><cmdbf:queryResult xmlns:cmdbf="http://cmdbf.org/schema/1-0-0/datamodel">
	<cmdbf:nodes templateId="cableTemplate">
		<cmdbf:item>
			<cmdbf:record>
				
					<s:cable xmlns:s="cable" xmlns:conn="connection" xmlns:ft="facetModel" xmlns:it="http://www.cosmos.rm/dataCenter/core" xmlns:pm="propertyModel" xmlns:sml="http://schemas.serviceml.org/sml/2007/02" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="0001">
					
					        <it:facets>
					           <it:facet>
					              <it:properties>
					                 <pm:connector format="RJ45"/>
					              </it:properties>
					           </it:facet>
					           <it:facet>
					              <ft:location>
					                 <it:properties>
					                    <ft:position coordinate="in use"/>
					                 </it:properties>
					              </ft:location>
					           </it:facet>
					           <it:facet>
					             <it:properties>
					              <conn:connection>
					                 <conn:source sml:ref="true">
					                    <sml:uri>
					                       /DataCenterSample/hardware/networking/Switch1.xml#xpointer(/switch[@name="switch1"]/facets/facet/ports[@input="true"]/port[@number="0"])
					                    </sml:uri>
					                 </conn:source>
					                 <conn:target sml:ref="true">
					                    <sml:uri>
					                       /DataCenterSample/hardware/networking/Router1.xml#xpointer(/router[@name="router1"]/facets/facet/ports[@input="false"]/port[@number="1"])
					                    </sml:uri>
					                 </conn:target>
					              </conn:connection>
					              </it:properties>
					           </it:facet>
					        </it:facets>
					</s:cable>
				<cmdbf:recordMetadata>
					<cmdbf:recordId>D:/cosmos/apache-tomcat-5.5.26/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/Cable1.xml</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>http://cosmos.org/rm/sml/repository</cmdbf:mdrId>
				<cmdbf:localId>D:/cosmos/apache-tomcat-5.5.26/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/Cable1.xml</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
	</cmdbf:nodes>
</cmdbf:queryResult>

Test Description:SMLMDR 2

  • To invoke graphQuery on SMLMDR
  1. COSMOS> graphQuery domsr01-xp SMLMDR D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\SMLMDR\testPropertyQuery.txt

Expected Result:

GraphQuery response:
<?xml version="1.0" encoding="UTF-8"?><cmdbf:queryResult xmlns:cmdbf="http://cmdbf.org/schema/1-0-0/datamodel">
	<cmdbf:nodes templateId="cableTemplate">
		<cmdbf:item>
			<cmdbf:record>
				
					<s:cable xmlns:s="cable" xmlns:conn="connection" xmlns:ft="facetModel" xmlns:it="http://www.cosmos.rm/dataCenter/core" xmlns:pm="propertyModel" xmlns:sml="http://schemas.serviceml.org/sml/2007/02" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="0001">
					
					        <it:facets>
					           <it:facet>
					              <it:properties>
					                 <pm:connector format="RJ45"/>
					              </it:properties>
					           </it:facet>
					           <it:facet>
					              <ft:location>
					                 <it:properties>
					                    <ft:position coordinate="in use"/>
					                 </it:properties>
					              </ft:location>
					           </it:facet>
					           <it:facet>
					             <it:properties>
					              <conn:connection>
					                 <conn:source sml:ref="true">
					                    <sml:uri>
					                       /DataCenterSample/hardware/networking/Switch1.xml#xpointer(/switch[@name="switch1"]/facets/facet/ports[@input="true"]/port[@number="0"])
					                    </sml:uri>
					                 </conn:source>
					                 <conn:target sml:ref="true">
					                    <sml:uri>
					                       /DataCenterSample/hardware/networking/Router1.xml#xpointer(/router[@name="router1"]/facets/facet/ports[@input="false"]/port[@number="1"])
					                    </sml:uri>
					                 </conn:target>
					              </conn:connection>
					              </it:properties>
					           </it:facet>
					        </it:facets>
					</s:cable>
				<cmdbf:recordMetadata>
					<cmdbf:recordId>D:/cosmos/apache-tomcat-5.5.26/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/Cable1.xml</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>http://cosmos.org/rm/sml/repository</cmdbf:mdrId>
				<cmdbf:localId>D:/cosmos/apache-tomcat-5.5.26/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/Cable1.xml</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
	</cmdbf:nodes>
</cmdbf:queryResult>

Test Description:ExampleMdr 1

  • To invoke graphQuery on ExampleMdr
  1. COSMOS> graphQuery domsr01-xp ExampleMdr D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\ExampleMDR\all-students.txt

Expected Result:

GraphQuery response:
<?xml version="1.0" encoding="UTF-8"?><cmdbf:queryResult xmlns:cmdbf="http://cmdbf.org/schema/1-0-0/datamodel">
	<cmdbf:nodes templateId="items">
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">

				<student>
				 <identity firstName="Mike" id="03" lastName="Lee"/>
				</student>

				<cmdbf:recordMetadata>
					<cmdbf:recordId>03</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>03</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">

				<student>
				 <identity firstName="Jane" id="02" lastName="Ryerson"/>
				</student>

				<cmdbf:recordMetadata>
					<cmdbf:recordId>02</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>02</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">

				<student>
				 <identity firstName="Bob" id="01" lastName="Davidson"/>
				</student>

				<cmdbf:recordMetadata>
					<cmdbf:recordId>01</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
	</cmdbf:nodes>
</cmdbf:queryResult>

Test Description:ExampleMdr 2

  • To invoke graphQuery on ExampleMdr
  1. COSMOS> graphQuery domsr01-xp ExampleMdr D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\ExampleMDR\all-teachers.txt

Expected Result:

GraphQuery response:
<?xml version="1.0" encoding="UTF-8"?><cmdbf:queryResult xmlns:cmdbf="http://cmdbf.org/schema/1-0-0/datamodel">
	<cmdbf:nodes templateId="items">
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">

				<teacher>
				 <identity firstName="Heather" id="staff02" lastName="Reeba"/>
				</teacher>

				<cmdbf:recordMetadata>
					<cmdbf:recordId>staff02</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>staff02</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">

				<teacher>
				 <identity firstName="Dawn" id="staff01" lastName="Johnson"/>
				</teacher>

				<cmdbf:recordMetadata>
					<cmdbf:recordId>staff01</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>staff01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
	</cmdbf:nodes>
</cmdbf:queryResult>

Test Description:ExampleMdr 3

  • To invoke graphQuery on ExampleMdr
  1. COSMOS> graphQuery domsr01-xp ExampleMdr D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\ExampleMDR\relationship-all-classes.txt

Expected Result:

GraphQuery response:
<?xml version="1.0" encoding="UTF-8"?><cmdbf:queryResult xmlns:cmdbf="http://cmdbf.org/schema/1-0-0/datamodel">
	<cmdbf:nodes templateId="everything">
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">

				<student>
				 <identity firstName="Mike" id="03" lastName="Lee"/>
				</student>

				<cmdbf:recordMetadata>
					<cmdbf:recordId>03</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>03</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">

				<student>
				 <identity firstName="Jane" id="02" lastName="Ryerson"/>
				</student>

				<cmdbf:recordMetadata>
					<cmdbf:recordId>02</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>02</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">

				<student>
				 <identity firstName="Bob" id="01" lastName="Davidson"/>
				</student>

				<cmdbf:recordMetadata>
					<cmdbf:recordId>01</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">

				<teacher>
				 <identity firstName="Heather" id="staff02" lastName="Reeba"/>
				</teacher>

				<cmdbf:recordMetadata>
					<cmdbf:recordId>staff02</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>staff02</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">

				<teacher>
				 <identity firstName="Dawn" id="staff01" lastName="Johnson"/>
				</teacher>

				<cmdbf:recordMetadata>
					<cmdbf:recordId>staff01</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>staff01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
	</cmdbf:nodes>
	<cmdbf:edges templateId="allClasses">
		<cmdbf:relationship>
			<cmdbf:source>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>staff02</cmdbf:localId>
			</cmdbf:source>
			<cmdbf:target>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>03</cmdbf:localId>
			</cmdbf:target>
			<cmdbf:record xmlns="http://school">

				<class courseCode="PHY01" name="Physics">
				 <students>
				  <enrolledStudent idRef="02"/>
				  <enrolledStudent idRef="03"/>
				 </students>
				 <teacher idRef="staff02"/>
				</class>

				<cmdbf:recordMetadata>
					<cmdbf:recordId>PHY01</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>PHY01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:relationship>
		<cmdbf:relationship>
			<cmdbf:source>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>staff02</cmdbf:localId>
			</cmdbf:source>
			<cmdbf:target>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>02</cmdbf:localId>
			</cmdbf:target>
			<cmdbf:record xmlns="http://school">

				<class courseCode="MAT01" name="Mathematics">
				 <students>
				  <enrolledStudent idRef="01"/>
				  <enrolledStudent idRef="02"/>
				 </students>
				 <teacher idRef="staff02"/>
				</class>

				<cmdbf:recordMetadata>
					<cmdbf:recordId>MAT01</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>MAT01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:relationship>
		<cmdbf:relationship>
			<cmdbf:source>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>staff02</cmdbf:localId>
			</cmdbf:source>
			<cmdbf:target>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>02</cmdbf:localId>
			</cmdbf:target>
			<cmdbf:record xmlns="http://school">

				<class courseCode="PHY01" name="Physics">
				 <students>
				  <enrolledStudent idRef="02"/>
				  <enrolledStudent idRef="03"/>
				 </students>
				 <teacher idRef="staff02"/>
				</class>

				<cmdbf:recordMetadata>
					<cmdbf:recordId>PHY01</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>PHY01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:relationship>
		<cmdbf:relationship>
			<cmdbf:source>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>staff02</cmdbf:localId>
			</cmdbf:source>
			<cmdbf:target>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>01</cmdbf:localId>
			</cmdbf:target>
			<cmdbf:record xmlns="http://school">

				<class courseCode="MAT01" name="Mathematics">
				 <students>
				  <enrolledStudent idRef="01"/>
				  <enrolledStudent idRef="02"/>
				 </students>
				 <teacher idRef="staff02"/>
				</class>

				<cmdbf:recordMetadata>
					<cmdbf:recordId>MAT01</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>MAT01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:relationship>
		<cmdbf:relationship>
			<cmdbf:source>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>staff01</cmdbf:localId>
			</cmdbf:source>
			<cmdbf:target>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>03</cmdbf:localId>
			</cmdbf:target>
			<cmdbf:record xmlns="http://school">

				<class courseCode="ECM01" name="Economics">
				 <students>
				  <enrolledStudent idRef="01"/>
				  <enrolledStudent idRef="03"/>
				 </students>
				 <teacher idRef="staff01"/>
				</class>

				<cmdbf:recordMetadata>
					<cmdbf:recordId>ECM01</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>ECM01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:relationship>
		<cmdbf:relationship>
			<cmdbf:source>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>staff01</cmdbf:localId>
			</cmdbf:source>
			<cmdbf:target>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>01</cmdbf:localId>
			</cmdbf:target>
			<cmdbf:record xmlns="http://school">

				<class courseCode="ECM01" name="Economics">
				 <students>
				  <enrolledStudent idRef="01"/>
				  <enrolledStudent idRef="03"/>
				 </students>
				 <teacher idRef="staff01"/>
				</class>

				<cmdbf:recordMetadata>
					<cmdbf:recordId>ECM01</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>ECM01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:relationship>
	</cmdbf:edges>
</cmdbf:queryResult>

Test Description:ExampleMdr 4

  • To invoke graphQuery on ExampleMdr
  1. COSMOS> graphQuery domsr01-xp ExampleMdr D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\ExampleMDR\teaches-relationship.txt

Expected Result:

GraphQuery response:
<?xml version="1.0" encoding="UTF-8"?><cmdbf:queryResult xmlns:cmdbf="http://cmdbf.org/schema/1-0-0/datamodel">
	<cmdbf:nodes templateId="teacher">
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">

				<teacher>
				 <identity firstName="Dawn" id="staff01" lastName="Johnson"/>
				</teacher>

				<cmdbf:recordMetadata>
					<cmdbf:recordId>staff01</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>staff01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
	</cmdbf:nodes>
	<cmdbf:nodes templateId="students">
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">

				<student>
				 <identity firstName="Mike" id="03" lastName="Lee"/>
				</student>

				<cmdbf:recordMetadata>
					<cmdbf:recordId>03</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>03</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
		<cmdbf:item>
			<cmdbf:record xmlns="http://school">

				<student>
				 <identity firstName="Bob" id="01" lastName="Davidson"/>
				</student>

				<cmdbf:recordMetadata>
					<cmdbf:recordId>01</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:item>
	</cmdbf:nodes>
	<cmdbf:edges templateId="reference">
		<cmdbf:relationship>
			<cmdbf:source>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>staff01</cmdbf:localId>
			</cmdbf:source>
			<cmdbf:target>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>03</cmdbf:localId>
			</cmdbf:target>
			<cmdbf:record xmlns="http://school">

				<class courseCode="ECM01" name="Economics">
				 <students>
				  <enrolledStudent idRef="01"/>
				  <enrolledStudent idRef="03"/>
				 </students>
				 <teacher idRef="staff01"/>
				</class>

				<cmdbf:recordMetadata>
					<cmdbf:recordId>ECM01</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>ECM01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:relationship>
		<cmdbf:relationship>
			<cmdbf:source>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>staff01</cmdbf:localId>
			</cmdbf:source>
			<cmdbf:target>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>01</cmdbf:localId>
			</cmdbf:target>
			<cmdbf:record xmlns="http://school">

				<class courseCode="ECM01" name="Economics">
				 <students>
				  <enrolledStudent idRef="01"/>
				  <enrolledStudent idRef="03"/>
				 </students>
				 <teacher idRef="staff01"/>
				</class>

				<cmdbf:recordMetadata>
					<cmdbf:recordId>ECM01</cmdbf:recordId>
				</cmdbf:recordMetadata>
			</cmdbf:record>
			<cmdbf:instanceId>
				<cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId>
				<cmdbf:localId>ECM01</cmdbf:localId>
			</cmdbf:instanceId>
		</cmdbf:relationship>
	</cmdbf:edges>
</cmdbf:queryResult>

Test Description:AperiMdr 1

  • To invoke graphQuery on AperiMdr
  1. graphQuery domsr01-xp AperiMdr C:\cosmos\i11\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_all.xml

Expected Result:

  1. Should display appropriate Query result.
  2. As result file is too long,ommitted here.

Test Description:AperiMdr 2

  • To invoke graphQuery on AperiMdr
  1. graphQuery domsr01-xp AperiMdr C:\cosmos\i11\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_all_items.xml

Expected Result:

  1. Should display appropriate Query result.
  2. As result file is too long,ommitted here.

Test Description:AperiMdr 3

  • To invoke graphQuery on AperiMdr
  1. graphQuery domsr01-xp AperiMdr C:\cosmos\i11\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_disk.xml

Expected Result:

  1. Should display appropriate Query result.
  2. As result file is too long,ommitted here.

Test Description:AperiMdr 4

  • To invoke graphQuery on AperiMdr
  1. graphQuery domsr01-xp AperiMdr C:\cosmos\i11\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_hostport.xml

Expected Result:

  1. Should display appropriate Query result.
  2. As result file is too long,ommitted here.

Test Description:AperiMdr 5

  • To invoke graphQuery on AperiMdr
  1. graphQuery domsr01-xp AperiMdr C:\cosmos\i11\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_inst_system.xml

Expected Result:

  1. Should display appropriate Query result.
  2. As result file is too long,ommitted here.

Test Description:AperiMdr 6

  • To invoke graphQuery on AperiMdr
  1. graphQuery domsr01-xp AperiMdr C:\cosmos\i11\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_pool.xml

Expected Result:

  1. Should display appropriate Query result.
  2. As result file is too long,ommitted here.

Test Description:AperiMdr 7

  • To invoke graphQuery on AperiMdr
  1. graphQuery domsr01-xp AperiMdr C:\cosmos\i11\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_pool_volume_all.xml

Expected Result:

  1. Should display appropriate Query result.
  2. As result file is too long,ommitted here.

Test Description:AperiMdr 8

  • To invoke graphQuery on AperiMdr
  1. graphQuery domsr01-xp AperiMdr C:\cosmos\i11\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_pool_volume_constr.xml

Expected Result:

  1. Should display appropriate Query result.
  2. As result file is too long,ommitted here.

Test Description:AperiMdr 9

  • To invoke graphQuery on AperiMdr
  1. graphQuery domsr01-xp AperiMdr C:\cosmos\i11\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_system_disk_all.xml

Expected Result:

  1. Should display appropriate Query result.
  2. As result file is too long,ommitted here.

Test Description:AperiMdr 10

  • To invoke graphQuery on AperiMdr
  1. graphQuery domsr01-xp AperiMdr C:\cosmos\i11\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_system_disk_constr.xml

Expected Result:

  1. Should display appropriate Query result.
  2. As result file is too long,ommitted here.

Test Description:AperiMdr 11

  • To invoke graphQuery on AperiMdr
  1. graphQuery domsr01-xp AperiMdr C:\cosmos\i11\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_system_hostport_all.xml

Expected Result:

  1. Should display appropriate Query result.
  2. As result file is too long,ommitted here.

Test Description:AperiMdr 12

  • To invoke graphQuery on AperiMdr
  1. graphQuery domsr01-xp AperiMdr C:\cosmos\i11\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_system_hostport_constr.xml

Expected Result:

  1. Should display appropriate Query result.
  2. As result file is too long,ommitted here.

Test Description:AperiMdr 13

  • To invoke graphQuery on AperiMdr
  1. graphQuery domsr01-xp AperiMdr C:\cosmos\i11\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_system_pool_prop.xml

Expected Result:

  1. Should display appropriate Query result.
  2. As result file is too long,ommitted here.

Test Description:AperiMdr 14

  • To invoke graphQuery on AperiMdr
  1. graphQuery domsr01-xp AperiMdr C:\cosmos\i11\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_system_pools_all.xml

Expected Result:

  1. Should display appropriate Query result.
  2. As result file is too long,ommitted here.

Test Description:AperiMdr 15

  • To invoke graphQuery on AperiMdr
  1. graphQuery domsr01-xp AperiMdr C:\cosmos\i11\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_system_pools_constr.xml

Expected Result:

  1. Should display appropriate Query result.
  2. As result file is too long,ommitted here.

Test Description:AperiMdr 16

  • To invoke graphQuery on AperiMdr
  1. graphQuery domsr01-xp AperiMdr C:\cosmos\i11\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_system_volume_all.xml

Expected Result:

  1. Should display appropriate Query result.
  2. As result file is too long,ommitted here.

Test Description:AperiMdr 17

  • To invoke graphQuery on AperiMdr
  1. graphQuery domsr01-xp AperiMdr C:\cosmos\i11\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_system_volume_constr.xml

Expected Result:

  1. Should display appropriate Query result.
  2. As result file is too long,ommitted here.

Test Description:AperiMdr 18

  • To invoke graphQuery on AperiMdr
  1. graphQuery domsr01-xp AperiMdr C:\cosmos\i11\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_system.xml

Expected Result:

  1. Should display appropriate Query result.
  2. As result file is too long,ommitted here.


Test Description:AperiMdr 19

  • To invoke graphQuery on AperiMdr
  1. graphQuery domsr01-xp AperiMdr C:\cosmos\i11\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_system_constr.xml

Expected Result:

  1. Should display appropriate Query result.
  2. As result file is too long,ommitted here.

Test Description:AperiMdr 20

  • To invoke graphQuery on AperiMdr
  1. graphQuery domsr01-xp AperiMdr C:\cosmos\i11\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_system_inst_prop.xml

Expected Result:

  1. Should display appropriate Query result.
  2. As result file is too long,ommitted here.

Test Description:AperiMdr 21

  • To invoke graphQuery on AperiMdr
  1. graphQuery domsr01-xp AperiMdr C:\cosmos\i11\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_system_like.xml

Expected Result:

  1. Should display appropriate Query result.
  2. As result file is too long,ommitted here.

Test Description:AperiMdr 22

  • To invoke graphQuery on AperiMdr
  1. graphQuery domsr01-xp AperiMdr C:\cosmos\i11\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_volume.xml

Expected Result:

  1. Should display appropriate Query result.
  2. As result file is too long,ommitted here.

Broker EPR

Test Description:Broker epr print

  • To display current broker EPR
  1. COSMOS> broker epr print

Expected Result:

  1. The current Broker EPR being used is http://localhost:8080/axis2/services/Broker

Test Description:Broker epr change

  • To change current broker EPR
  1. COSMOS> broker epr change http://localhost:8090/axis2/services/Broker
  2. COSMOS> broker epr

Expected Result:

  1. The current Broker EPR being used is http://localhost:8090/axis2/services/Broker

Using the COSMOS Web User Interface

UI Component Widget tests

These tests have been extracted from org.eclipse.cosmos.examples.e2e.tests - DataVisualization.UI.Component.Widget.testsuite and DataVisualization.UI.Reports.testsuite

Test Description:Navigate

  1. Complete the "Installation" and "Running the Program" section outlined under http://wiki.eclipse.org/COSMOS_UG_Running_the_Example. At this point tomcat should be running. Then point your browser to http://localhost:8080/COSMOSUI/?page=cosmos
  2. Six nodes should be shown in the tree in the "Data Managers" section on the page. These nodes should be "StatDataManager", "Resource Repository", "Sample Repository with Registration", "Sample Repository with Query" and "Logging Data Repository". Each node should have different icons. You should be able to expand the "Monitoring Data Repository", "Sample Repository with Query" and "Logging Data Repository" nodes.
  3. Expand the ""Monitoring Data Repository" node. 2 child nodes should be added to the "Monitoring Data Repository" node
  4. Expand the "Logging Data Repository" node. 2 child nodes should be added to the "Logging Data Repository" node. It should have a "windows_app_log.cbe.xml" and "access_log.cbe.xml" node.
  5. Expand the "Sample Repository with Query". There should be 5 nodes: "Get All Students", "Get All Teachers", "Get All Classes", "Staff 01" and "Staff 02". The "Staff01" node should have one node named "All Students taught by the teacher with an id set to staff01" The "Staff02" node should have one node named "All Students taught by the teacher with an id set to staff0s".

Expected Result

  1. There should not be any exception that is thrown when expanding the nodes. Icons should be associated with all the nodes in the tree


Data Managers View

Test Description:DataManagers list

  • Layout of the User Interface
  1. Once you have started the COSMOS components, point your web browser to http://localhost:8080/COSMOSUI/?page=cosmos

Expected Result:

  1. The initial page of the COSMOS Web User Interface displays three main panes. The left pane shows a list of data managers that are registered with the broker. The top right pane shows the details view that is initially blank. The bottom right pane shows a properties view that is initially blank.
  2. The pane on the left is the "Data Managers" view. It lists all data managers registered at the broker. There are initially six data managers that are registered with the broker.
    1. A Statistical Data Manager that displays reports on some runtime statistics ("StatDataManager")
    2. A Logging Data Manager that displays reports on log files based on the Common Based Event format. ("LoggingDataManager")
    3. An Example Federating CMDB ("Sample Repository with Registration")
    4. An Example MDR that contains information related to students and teachers ("Sample Repository with Query")
    5. An Asset Repository that contains asset information that is modelled using the Service Modeling Language (SML) ("Resource Repository")
    6. An MDR for making queries on storage management data from Aperi using JDBC ("AperiMdr")
  3. The end user can select a particular data manager to display properties associated with the data manager. The properties are shown in the bottom right pane in the Properties view.

Statistical Data Manager

Test Description:StatDataManager CBE

  • Displaying statistical data sources & Generating the statistical data reports
  1. Expand the "StatDataManager" node in the Data Managers pane to show a list of recorded statistical data sessions
  2. select the collected data "server 33 tomcat1181829221515 CBE" and select "Statistical Report" by right clicking on it

Expected Result:

  1. Generates the statistical report and will be displayed in the "Details" pane
  2. The properties of the selected data collection should be displayed in the Properties pane.

Test Description:StatDataManager TomcatSet

  • Displaying statistical data sources & Generating the statistical data reports
  1. Expand the "StatDataManager" node in the Data Managers pane to show a list of recorded statistical data sessions
  2. select the collected data "server 33 tomcat1181829221515 TomcatSet" and select "Statistical Report" by right clicking on it

Expected Result:

  1. Generates the statistical report and will be displayed in the "Details" pane
  2. The properties of the selected data collection should be displayed in the Properties pane.

Logging Data Manager

Test Description:LogDataManager access_log

  • To query the CBE data manager for a list of log files and generate reports on the log data.
  1. Expand the "LoggingDataManager" node in the left pane to show a list of log files managed by the data manager
  2. Select the log file "access_log.cbe.xml", right click and select "Top 10 Log Report" menu option

Expected Result:

  1. The properties view should show the properties of the log file.
  2. Log report will be generated in the "Details" pane in the top right pane

Test Description:LogDataManager windows_app_log

  • To query the CBE data manager for a list of log files and generate reports on the log data.
  1. Expand the "LoggingDataManager" node in the left pane to show a list of log files managed by the data manager
  2. Select the log file "windows_app_log.cbe.xml" , right click and select "Top 10 Log Report" menu option

Expected Result:

  1. The properties view should show the properties of the log file.
  2. Log report will be generated in the "Details" pane in the top right pane

Using the Registration Example CMDBf (Sample Repository with Registration)

Test Description:TestFederatingCMDB register

  • To register configuration items with the test Federating CMDB
  1. start the COSMOS UI
  2. right-click on the "Sample Repository with Registration" Data Manager
  3. select "Register Configuration Items..." on the popup menu
  4. In the "Register MDR Configuration Items" window, select the "Example MDR"
  5. Press the "Register" button

Expected Result:

  1. A list of configuration items will be displayed showing status results

Test Description:TestFederatingCMDB deregister

  • To Deregister configuration items from the test Federating CMDB
  1. start the COSMOS UI
  2. right-click on the "Sample Repository with Registration" Data Manager
  3. select "Deregister Configuration Items..." on the popup menu
  4. In the "Deregister MDR Configuration Items" window, select the "Example MDR"
  5. Press the "Deregister" button

Expected Result:

  1. A list of configuration items will be displayed showing status results

Test Description:TestFederatingCMDB Submit Query

  1. start the COSMOS UI
  2. right-click on the "Sample Repository with Registration" Data Manager
  3. Select "Submit Query" on the popup menu
  4. Provide following CMDBf Query and click on submit
<?xml version="1.0" encoding="UTF-8" ?>
<s:query xmlns:s="http://cmdbf.org/schema/1-0-0/datamodel">
   <s:itemTemplate id="all-items">
     <s:instanceIdConstraint>
       <s:instanceId>
         <s:mdrId>*</s:mdrId>
         <s:localId>*</s:localId>
       </s:instanceId>
     </s:instanceIdConstraint>
   </s:itemTemplate>
   <s:relationshipTemplate id="all-relationships">
     <s:sourceTemplate ref="all-items"/>
     <s:targetTemplate ref="all-items"/>
   </s:relationshipTemplate>
</s:query>

Expected Result:

  1. Should display appropriate results under GraphQueryResponse viewer

Test Description:TestFederatingCMDB Metadata

  1. start the COSMOS UI
  2. right-click on the "Sample Repository with Registration" Data Manager
  3. select "View Metadata" on the popup menu

Expected Result:

  1. Should display "There is no ServiceMetaData for this DataManager."

SML MDR (Resource Repository)

Test Description:SMLMDR Submit Query

  • To construct a CMDBf query to acquire asset information on these resources.
  1. To submit a query on the SML Repository, right click on "Resource Repository" from the "Data Managers" view.
  2. A pop-up menu should be shown with a "Submit Query..." option.
  3. Click on the option to bring up a dialog box that will allow the user to enter a CMDBf query.
  4. Submit the following CMDBf query, which will get information on a cable.
<?xml version="1.0" encoding="UTF-8"?>
<s:query xmlns:s="http://cmdbf.org/schema/1-0-0/datamodel">
	<s:itemTemplate id="cableTemplate">
		<s:instanceIdConstraint>
			<s:instanceId>
				<s:mdrId>http://cosmos.org/rm/sml/repository</s:mdrId>
				<s:localId>Cable1.xml</s:localId>
			</s:instanceId>
		</s:instanceIdConstraint>
	</s:itemTemplate>
</s:query>

Expected Result:

  1. The graph response viewer should be shown in the details pane.
  2. You should see one row in the table under the "Node and Edges" section. Click on the cell under the "Source" column.
  3. The Records section of the view will show information about the cable.
  4. Note that the asset information is displayed as a SML structure as below
<s:cable name="0001" xmlns:conn="connection" xmlns:ft="facetModel"     xmlns:it="http://www.cosmos.rm/dataCenter/core"     
xmlns:pm="propertyModel" xmlns:s="cable"     xmlns:sml="http://schemas.serviceml.org/sml/2007/02" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">   
 <it:facets>        <it:facet>            <it:properties>                <pm:connector format="RJ45"/>            </it:properties>        </it:facet>        
<it:facet>            <ft:location>                <it:properties>                    <ft:position coordinate="in use"/>                </it:properties>            
</ft:location>        </it:facet>        <it:facet>            <it:properties>                <conn:connection>                    
<conn:source sml:ref="true">                        <sml:uri>
/DataCenterSample/hardware/networking/Switch1.xml#xpointer(/switch[@name="switch1"]/facets/facet/ports[@input="true"]/port[@number="0"])
</sml:uri>                    </conn:source>                    <conn:target sml:ref="true">                        <sml:uri>	
/DataCenterSample/hardware/networking/Router1.xml#xpointer(/router[@name="router1"]/facets/facet/ports[@input="false"]/port[@number="1"]) 					                    
</sml:uri>                 </conn:target>                </conn:connection>            </it:properties>        </it:facet>    
</it:facets></s:cable>

Test Description:SMLMDR MetaData

  • To fetch MetaData of SML Repository
  1. To View MetaData of SML Repository, right click on "Resource Repository" from the "Data Managers" view.
  2. A pop-up menu should be shown with a "View MetaData" option, Click on it.

Expected Result:

  1. Should display appropriate MetaData information

Using the Aperi MDR (Storage Repository)

Test Description:AperiMdr Submit Query

  • To test AperiMdr Submit Query
  1. Select "Resource Repository" from the "Data Manager" view.
  2. Right click and select "Submit Query..."
  3. Copy/Past any of the Query data from <cosmos-demo>\cosmos-client\cmdbfQuery\Aperi folder

Expected Result:

  1. Query should execute properly and should display appropriate Query result under GraphResponseViewer without any errors

Test Description:AperiMdr MetaData

  • To view Metadata information for AperiMdr
  1. Select "Resource Repository" from the "Data Manager" view.
  2. Right click and select "View MetaData"

Expected Result:

  1. Should display MetaData information for AperiMdr

Example MDR (Sample Repository with Query)

Test Description:ExampleMDR All-Students

  • To execute pre-defined Queries
  1. Expand "Sample Repository with Query" from the "Data Manager" view.
  2. Click on "Get All Students" query

Expected Result:

  1. Should display XML Query result with Students data under GraphResponse Viewer

Test Description:ExampleMDR All-Teachers

  • To execute pre-defined Queries
  1. Expand "Sample Repository with Query" from the "Data Manager" view.
  2. Click on "Get All Teachers" query

Expected Result:

  1. Should display XML Query result with Teachers data under GraphResponse Viewer

Test Description:ExampleMDR All-Classes

  • To execute pre-defined Queries
  1. Expand "Sample Repository with Query" from the "Data Manager" view.
  2. Click on "Get All Classes" query

Expected Result:

  1. Should display XML Query result with Classes data under GraphResponse Viewer

Test Description:ExampleMDR Relationship1

  • To execute pre-defined relationship query
  1. Expand "Sample Repository with Query" from the "Data Manager" view.
  2. Expand "Staff01" query node
  3. Click on "All students taught by teacher ..." query

Expected Result:

  1. Should display XML Query result with students data under teacher id - staff01

Test Description:ExampleMDR Relationship2

  • To execute pre-defined relationship query
  1. Expand "Sample Repository with Query" from the "Data Manager" view.
  2. Expand "Staff02" query node
  3. Click on "All students taught by teacher ..." query

Expected Result:

  1. Should display XML Query result with students data under teacher id - staff02

Test Description:ExampleMDR Submit Query

  • To construct a CMDBf query to acquire the student or teacher information
  1. To submit a query on the Example MDR right click the "Sample Repository with Query" from the "Data Manager" view.
  2. A pop-up menu should be shown with a "Submit Query..." option. Click on the menu option.
  3. This will bring up a query builder dialog box that will allow the user to construct a CMDBf query.
  4. Build the following CMDBf query using the query builder. This query will get a list of students
<?xml version="1.0" encoding="UTF-8"?>
<s:query xmlns:s="http://cmdbf.org/schema/1-0-0/datamodel">
	<s:itemTemplate id="items">
		<s:recordConstraint>
			<s:recordType namespace="" localName="student"/>			
		</s:recordConstraint>
	</s:itemTemplate>
</s:query>
  1. The query builder is composed of three panes. The top level pane allows the user to create itemTemplate and relationshipTemplate nodes.
  2. Right click the "query" node in the top pane and select 'Add Item'.
  3. This will bring up a second dialog box that allows the user to enter the template id. Enter the word 'items' in the text box.
  4. Select the 'itemTemplate' node in the bottom left pane to view the properties on the element
  5. Add a recordConstraint element under the 'itemTemplate' node by right clicking the 'itemTemplate' node and selecting the 'add recordConstraint' menu option.
  6. Next we need to add a 'recordType' element under the 'recordConstraint' node. This time we right click the 'recordConstraint' node in the bottom left pane and select the 'add recordType' menu option.
  7. set the localName on the recordType element to 'student'. Click on the cell next to the 'localName' cell in the bottom right table. This will allow you to edit the attribute value. Enter the word 'student' in the text box and click enter.
  8. Click the "Preview XML" button to look at the CMDBf query we constructed.
  9. Click the 'Submit' button.

Expected Result:

  1. The graph response viewer should be shown in the details pane in the top right pane as shown below. The view will show a list of three students.
  2. Click on the "Source" cell in the "Nodes and Edges" section of the view. The Record section of the view should show the information on a particular student
  3. Note that the student information is displayed as a XML structure as follows:
<student>
   <identity firstName="Mike" id="03" lastName="Lee"/>
</student>

Test Description:ExampleMDR Submit Query as Text

  • To submit a CMDBf query to capture the student or teacher information
  1. To submit a query on the Example MDR right click the "Sample Repository with Query" from the "Data Manager" view.
  2. A pop-up menu should be shown with a "Submit Query as Text" option. Click on this menu option.
  3. This will bring up a Submit Query dialog box, Copy/Paste below query and Click on Submit
<?xml version="1.0" encoding="UTF-8"?>
<s:query xmlns:s="http://cmdbf.org/schema/1-0-0/datamodel">
	<s:itemTemplate id="items">
		<s:recordConstraint>
			<s:recordType namespace="" localName="student"/>			
		</s:recordConstraint>
	</s:itemTemplate>
</s:query>

Expected Result:

  1. Should display Appropriate Query Result data under GraphResponseViewer window

Test Description:ExampleMDR New Folder

Note:Before testing this scenario,make sure to enable "QUERY_SAVE=true" under <COSMOSUI>\config\configuration.properties

  • To create new folder and save CMDBf queries under it
  1. To create a new folder on the Example MDR, right click the "Sample Repository with Query" from the "Data Manager" view.
  2. A pop-up menu should be shown with a "New Folder" option. Click on this menu option.
  3. This will prompt for Folder Name, enter Folder Name as "MyFolder" and press Ok
  4. To submit a query on the Example MDR and to save under "MyFolder", Expand "Sample Repository with Query" from the "Data Manager" view and right click on "MyFolder".
  5. A pop-up menu should be shown with a "Submit Query as Text" option. Click on this menu option.
  6. This will bring up a Submit Query dialog box, Copy/Paste below query and Click on Submit
<?xml version="1.0" encoding="UTF-8"?>
<s:query xmlns:s="http://cmdbf.org/schema/1-0-0/datamodel">
	<s:itemTemplate id="items">
		<s:recordConstraint>
			<s:recordType namespace="" localName="student"/>			
		</s:recordConstraint>
	</s:itemTemplate>
</s:query>

Expected Result:

  1. Should create "MyFolder" under "Sample Repository with Query" and should contain CMDBf query result under this folder.
  2. Open another COSMOSUI instance and make sure "MyFolder" and CMDBf query result is shown under "Sample Repository with Query"

Test Description:ExampleMDR Response History

Note:Before testing this scenario,make sure to enable "RESPONSE_HISTORY_LIMIT=10" under <COSMOSUI>\config\configuration.properties

  • To track and view CMDBf query response histories
  1. To view Response History,Select and expand "Sample Repository with Query" from the "Data Manager" view.
  2. Select and expand, newly created folder - "MyFolder"
  3. Select any of the CMDBf query result and right click on it
  4. It then shows a popup menu with "Response History...", Select any of the query result and click on it

Expected Result:

  1. Should display CMDBf query result, response histories with appropriate time stamps under

"MyFolder"


Test Description:ExampleMDR Rename saved query

  • To test the ability of renaming saved queries
  1. To rename saved query,select and expand "Sample Repository with Query" from the "Data Manager" view.
  2. Select and expand newly created folder - "MyFolder"
  3. Select any of the existing CMDBf query and right click on it
  4. A popup menu should be shown with "Rename Query", Click on it
  5. It then prompts for new Query Name, type "MyExampleMdrQuery1" and click on OK

Expected Result:

  1. Should display new Query name - "MyExampleMdrQuery1" under "MyFolder" of ExampleMdr
  2. Also check the same with new COSMOSUI instance, it should show the modified query name

Test Description:ExampleMDR Refresh

  • To test the ability of refreshing saved queries
  1. To refresh/re-execute saved query,select and expand "Sample Repository with Query" from the "Data Manager" view.
  2. Select and expand newly created folder - "MyFolder"
  3. Select any of the existing CMDBf query and right click on it
  4. A popup menu should be shown with "Refresh", Click on it

Expected Result:

  1. Above selected CMDBf Query should execute and should add it's response history into "Response History..." menu item.

Test Description:ExampleMDR MetaData

  1. Expand "Sample Repository with Query" from the "Data Manager" view.
  2. Right Click and select "View MetaData"

Expected Result:

  1. Should display ExampleMdr Meta-Data Information

Test Description:Setting Security Properties

  • To test the basic security feature settings from COSMOS UI
  1. Expand "Sample Repository with Query" from the "Data Manager" view.
  2. Right Click and select "Properties..."
  3. It then popsup Properties dialog box and prompts for Username,Password and Version
  4. Set the values for Username="user1",Password="pass1" and Version="1.2" and click on OK
  5. Now,to submit a query on the Example MDR right click the "Sample Repository with Query" from the "Data Manager" view.
  6. A pop-up menu should be shown with a "Submit Query as Text" option. Click on this menu option.
  7. This will bring up a Submit Query dialog box, Copy/Paste below query and Click on Submit
<?xml version="1.0" encoding="UTF-8"?>
<s:query xmlns:s="http://cmdbf.org/schema/1-0-0/datamodel">
	<s:itemTemplate id="items">
		<s:recordConstraint>
			<s:recordType namespace="" localName="student"/>			
		</s:recordConstraint>
	</s:itemTemplate>
</s:query>

Expected Result:

  1. Captured SOAP request message should contain security header along with query data as listed below.
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Header>
<sec:securityHeader xmlns:sec="http://www.eclipse.org/cosmos/security" sec:mustUnderstand="0"><sec:username>user1</sec:username>
<sec:password>pass1</sec:password></sec:securityHeader>
</soapenv:Header>
<soapenv:Body><s:query xmlns:s="http://cmdbf.org/schema/1-0-0/datamodel">
	<s:itemTemplate id="items">
		<s:recordConstraint>
			<s:recordType localName="student" namespace="" />			
		</s:recordConstraint>
	</s:itemTemplate>
</s:query></soapenv:Body></soapenv:Envelope>

End2End Supplement Tests (Negative)

Build Installation and Configuration

Test Description:Build Configuration long paths

  • To test Build installation with configuration having long paths with white spaces
  1. configDemo.bat C:\Program Files\cosmos\apache-tomcat-5.5.25 C:\Program Files\cosmos\cosmos-demo C:\Program Files\cosmos\birt-runtime-2.3M6.zip C:\Program Files\cosmos\dojo-release-1.0.2.zip C:\Program Files\cosmos\axis2.war

Expected Result:

Invalid Tomcat directory
Invalid COSMOS demo install directory
Invalid path to DOJO zip file
Invalid path to BIRT zip file.
Invalid path to axis2.war

Test Description:Build Configuration missing axis2 path

  • To test Build installation with missing configuration of axis2.war file
  1. C:\Program Files\cosmos\cosmos-demo\bin>configDemo.bat "C:\Program Files\cosmos\apache-tomcat-5.5.25" "C:\Program Files\cosmos\cosmos-demo" "C:\Program Files\cosmos\birt-runtime-2.3M6.zip" "C:\Program Files\cosmos\dojo-release-1.0.2.zip"

Expected Result:

Axis2 is not installed and path to axis2.war is not provided.
Install is aborted.

Test Description:Build Configuration long paths with quotes

  • To test Build installation with configuration having long paths with white spaces
  1. configDemo.bat "C:\Program Files\cosmos\apache-tomcat-5.5.25" "C:\Program Files\cosmos\cosmos-demo" "C:\Program Files\cosmos\birt-runtime-2.3M6.zip" "C:\Program Files\cosmos\dojo-release-1.0.2.zip" "C:\Program Files\cosmos\axis2.war"

Expected Result:

Unzipping C:\Program Files\cosmos\axis2.war to C:\Program Files\cosmos\apache-tomcat-5.5.25\webapps\axis2...
Installed axis2 on Apache Tomcat server.
Installed web application: COSMOSReportViewer
Installed web application: COSMOSUI
Unzipping C:\Program Files\cosmos\birt-runtime-2.3M6.zip to C:\Program Files\cosmos\apache-tomcat-5.5.25\webapps/COSMOSReportViewer...
Unzipped BIRT to COSMOSReportViewer
Copied BIRT web viewer example to COSMOSReportViewer
Unzipping C:\Program Files\cosmos\dojo-release-1.0.2.zip to C:\Program Files\cosmos\apache-tomcat-5.5.25\webapps/COSMOSUI...
Unzipped dojo to COSMOSUI.
Installed web service: AperiMdr
Installed web service: Broker
Installed web service: ExampleMdr
Installed web service: LoggingDataManager
Installed web service: ServiceFinder
Installed web service: SMLMDR
Installed web service: StatDataManager
Installed web service: TestFederatingCMDB
Copied axis jar files to COSMOSUI.
Copied axis jar files to COSMOSReportViewer.
Copied axis jar files to cosmos client.
Updated axis2.xml.
Updated services.xml for SML MDR.
Updated services.xml for statistical MDR.

COSMOS Command Line Client : Management Console

Broker registration variations

Test Description:Tomcat Port with 9080

  • Test Broker registration other than defaul port 8080 (say 9080):
  1. Start CosmosClient, <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
  2. COSMOS> broker registerAllDataManagers http://localhost:9080/axis2/services/CosmosServiceFinder

Expected Result:

  1. All DataManagers should successfuly get registered to broker on port 9080

Test Description:Multiple Broker registration

  • Test Broker registration multiple times:
  1. <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
  2. COSMOS> broker registerAllDataManagers http://localhost:9080/axis2/services/CosmosServiceFinder
  3. COSMOS> broker registerAllDataManagers http://localhost:9080/axis2/services/CosmosServiceFinder

Expected Result:

  1. Under tomcat console window, it should display "Service has already been registered at this broker. No new brokers are registered."

Test Description:getDataManagers without broker registration

  • Without broker registration, test the following:
  1. <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
  2. COSMOS> broker getDataManagers

Expected Result:

  1. Should display empty list of DataManagers

Test Description:getDataManagers with registered port 9080

  • After succesful broker registration, test the following:
  1. <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
  2. COSMOS> broker getDataManagers

Expected Result:

  1. Should display all 6 DataManagers registered with broker

Deregistration variations

Test Description:Deregistration with incorrect hostname

  • Test deregistration of StatDataManager with invalid hostname and valid datamanager name :
  1. <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
  2. COSMOS> broker deregister unknown StatDataManager

Expected Result:

  1. Deregistration should fail and should display appropriate error message

Test Description:Deregistration with incorrect datamanager

  • Test deregistration of StatDataManager with valid hostname and invalid datamanager name :
  1. <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
  2. COSMOS> broker deregister domsr01-xp StatDataMgr

Expected Result:

  1. Deregistration should fail and should display appropriate error message

GraphQuery variations

Test Description:graphQuery with invalid hostname

  • Test graphQuery for SMLMDR, with invalid hostname,valid DataManager,valid query path:
  1. <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
  2. COSMOS> graphQuery unknown SMLMDR D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\SMLMDR\testInstanceIdQuery.txt

Expected Result:

  1. Query execution should fail and throw appropriate error message.

Test Description:graphQuery with invalid datamanager

  • Test graphQuery for SMLMDR, with valid hostname,invalid DataManager,valid query path:
  1. <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
  2. COSMOS> graphQuery domsr01-xp StatDataManager D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\SMLMDR\testInstanceIdQuery.txt

Expected Result:

  1. Query execution should fail and throw appropriate error message.

Test Description:graphQuery with invalid query path

  • Test graphQuery for SMLMDR, with valid hostname,valid DataManager,invalid query path:
  1. <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
  2. COSMOS> graphQuery domsr01-xp SMLMDR D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\SMLMDRTest\testInstanceIdQuery.txt

Expected Result:

  1. Query execution should fail and throw appropriate error message.

Test Description:graphQuery with query path with spaces

  • Test graphQuery for SMLMDR, with valid hostname,valid DataManager,valid query path with spaces:
  1. <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
  2. COSMOS> graphQuery domsr01-xp SMLMDR "D:\cosmos i10\cosmos-demo\cosmos-client\cmdbfQuery\SMLMDR\testInstanceIdQuery.txt"

Expected Result:

  1. Query execution should be successful

Test Description:graphQuery with invalid AperiMdr query data

  • Test graphQuery for AperMdr with invalid query data, with valid Aperi database settings:
  1. <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
  2. COSMOS> graphQuery domsr01-xp AperiMdr D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\AperiMdr\StorageSystem_all_items.txt

Expected Result:

  1. Query execution should fail and display appropriate error message

Test Description:graphQuery with missing Aperi Database setup

  • Test graphQuery for AperMdr with valid data, with invalid Aperi database settings:
  1. <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
  2. COSMOS> graphQuery domsr01-xp AperiMdr D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\AperiMdr\StorageSystem_all_items.txt

Expected Result:

  1. Query execution should fail, with DB Connection error

COSMOS Web User Interface

COSMOS UI with Broker running at 8090

Test Description:List Datamanagers with broker port as 8090

  • Open COSMOSUI with 8090 port (Make sure all COSMOS Components are up and running at this port)
  1. http://localhost:8090/COSMOSUI/?page=cosmos

Expected Result:

  1. Should display all 6 DataManagers properly

Test Description:View Properties with broker port as 8090

  1. StatDataManager
  2. LoggingDataManager
  3. Sample Repository with Registration
  4. Sample Repository with Query
  5. Resource Repository
  6. AperiMdr

Expected Result:

  1. All properties should display the correct EPR with port 8090

Test Description:Statistical Report Generation

  • Test StatDataManager, "Statistical Report" generation:
  1. Open COSMOSUI (http://localhost:8090/COSMOSUI/?page=cosmos)
  2. Select StatDataManager -> server 33 tomcat1181829221515 CBE -> Generate StatReport

Expected Result:

  1. Statistical Report should get generated properly

Test Description:Top 10 Log Report Generation

  • Test "LoggingDataManager", Top 10 Log Report generation:
  1. Open COSMOSUI (http://localhost:8090/COSMOSUI/?page=cosmos)
  2. Select LoggingDataManager -> access_log.cbe.xml -> Top 10 Log Report

Expected Result:

  1. Top 10 Log report should get generated properly

TestFederatingCMDB Variations

Test Description:TestFederatingCMDB invalid self registration

  • Test "Sample Repository with Registration",self registration
  1. Select "Sample Repository with Registration"
  2. Click on "Register Configuration Items..."
  3. Select "Sample Repository with Registration" under registration window

Expected Result

  1. Either it should not be allowed or it should display appropriate error message

Test Description:TestFederatingCMDB invalid datamanager registration

  • Test "Sample Repository with Registration",Resource Repository registration
  1. Select "Sample Repository with Registration"
  2. Click on "Register Configuration Items..."
  3. Select "Resource Repository" under registration window

Expected Result

  1. Either registration should not be allowed or it should display appropriate error message

Test Description:TestFederatingCMDB AperiMdr registration

  • Test "Sample Repository with Registration",AperiMdr registration
  1. Select "Sample Repository with Registration"
  2. Click on "Register Configuration Items..."
  3. Select "AperiMdr" under registration window

Expected Result

  1. Either registration should not be allowed or it should display appropriate error message

Resource Repository Variations

Test Description:SMLMDR Submit Query with invalid data

  • Test Resource Repository, with invalid query
  1. select "Resource Repository" and click on "Submit Query"
  2. Provide invalid query and submit

Expected Result:

  1. Query should fail with appropriate error message

AperiMdr Variations

Test Description:AperiMdr Submit Query with invalid data

  • Test AperiMDR with proper db configuration and with invalid query
  1. select "AperiMdr" and create invalid query using Query Builder

Expected Result:

  1. Query execution should fail and display appropriate error message

Test Description:AperiMdr Submit Query with missing DB setup

  • Test AperiMDR with invalid db configuration and with valid query
  1. select "AperiMdr" and create valid query using Query Builder

Expected Result:

  1. Query execution should fail with db connection error

ExampleMdr Variations

Test Description:ExampleMdr Submit Query with invalid data

  • Test "Sample Repository with Query", with invalid query
  1. select "Sample Repository with Query"
  2. Create an invalid query from query builder and submit it

Expected Result:

  1. Should display Empty Query response under GraphResponseViewer

Basic Operational efficiency tests (Performance Tests)

Configuration Tests

Test Description:COSMOSUI/Broker/DataManagers with multiple machines

  • Testing the scenario where COSMOSUI,COSMOSReportViewer running on windows PC1,broker running on windows PC2 and all datamanagers running on linux PC1
  1. Install and deploy COSMOSUI,COSMOSReportViewer webapps application under windows PC1
  2. Install and deploy COSMOS Broker service under windows PC2
  3. Install and deploy COSMOS Data Managaers/MDR's services under linux PC1
  4. Open COSMOS Command line interface from any of the PC's with Broker URL, <cosmos-demo>/cosmosClient/bin/cosmosClient.bat http://<WindowsPC2host>:8080/axis2/services/Broker
  5. COMSOS>broker registerAllDataManagers http://<linuxPC1host:8080>/axis2/services/CosmosServiceFinder
  6. Modify BROKER EPR value under <COSMOSUI>/Configuration.properties file, pointing to windows PC2 hostname
  7. From windows PC1 open COSMOSUI,http://localhost:8080/COSMOSUI
  8. Inspect the properties of all datamanagers

Expected Result:

  1. COSMOS UI should display all 6 Data Managers and all it's operations should work normally

Test Description:COSMOSUI/DataManagers on windows/linux

  • Testing the scenario where COSMOSUI running on windows and all COSMOS services running on Linux
  1. Install COSMOS service components under linux box
  2. Install COSMOSUI,COSMOSReportViewer webapps application under windows
  3. Modify BROKER EPR value under <COSMOSUI>/Configuration.properties file, pointing to linux hostname
  4. From windows, open http://localhost:8080/COSMOSUI

Expected Result:

  1. COSMOS UI should display all 6 Data Managers and all it's operations should work normally

Test Description:DataManagers/COSMOSUI on windows/linux

  • Testing the scenario where COSMOSUI running on linux and all COSMOS services running on windows
  1. Install COSMOS service components under windows
  2. Install COSMOSUI,COSMOSReportViewer webapps application under linux
  3. Modify BROKER EPR value under <COSMOSUI>/Configuration.properties file, pointing to windows hostname
  4. From linux, open http://localhost:8080/COSMOSUI

Expected Result:

  1. COSMOS UI should display all 6 Data Managers and all it's operations should work normally

Concurrency Tests

Test Description:Multiple COSMOSUI's

  • Concurrency tests, where multiple COSMOSUI's running on one machine
  1. Install all COSMOS components on windows PC
  2. open 2 COSMOSUI's under IE and 2 COSMOSUI's under Firebox browsers
  3. Perform various test operations - Generating Stat/Log reports on all COSMOSUI's #simultaneously,Executing CMDBf queries on all COSMOSUI's simultaneously

Expected Result:

  1. All COSMOS UI's should work normally and should get appropriate results without any errors

Test Description:Multiple COSMOSUI's and Command Line Clients

  • Concurrency tests, where multiple COSMOSUI's and multiple COSMOS Command Line Clients running on one machine
  1. Install all COSMOS components on windows PC
  2. open 1 COSMOSUI under IE and 1 COSMOSUI under Firebox browser
  3. open 2 COSMOS Command Line Shells
  4. Perform various test operations - Execute CMDBf queries on all COSMOS Clients simultaneously

Expected Result:

  1. All COSMOS clients should work normally and should get appropriate results without any errors

Volume/Performance Tests

Apache JMeter Tool - Setup Instructions

  1. Open Jmeter window (jmeter-install-dir\bin\jmeter.bat)
  2. On the left side, right click on the ‘Test Plan’ node and select ‘Add->Thread Group’. This inserts one child node called ‘Thread Group’ under ‘Test Plan’.
  3. Select the ‘Thread Group’ node. On the right side for ‘Number of Threads’ text box, give the number of samples.
  4. Right click on ‘Thread Group’ node, and select ‘Add->Sampler->SOAP/XML- RPC Request’. This inserts one child node called ‘SOAP/XML-RPC Request’ under ‘Thread Group’
  5. Select the ‘SOAP/XML-RPC Request’ node. On the right-side, in text box URL: give the URL to which the request to be send. In the ‘Soap/XML-RPC Data’ text area type the ‘SOAP request’
  6. Right click on ‘Thread Group’ node, and select ‘Add->Listener->Summary Report’. This inserts one child node called ‘Summary Report’ under the ‘Thread Group’. We can select our own format for displaying results (summary, table, tree…etc)
  7. Save the test
  8. Now, to run the test, from menu bar select Run->Start for running a test.
  9. Run->Stop for stopping test
  10. The results will be populated in the Listeners that we have added to the test.

Test Description:Broker Performance Test

  • Using Apache JMeter Tool,testing Broker with samples of 10,50,100,150,200 users simulation
  1. Follow the procedure to create the test, running the test using JMeter.
  2. Provide below SOAP request of Broker to Jmeter tool and run it with users simulation of 10,50,100,150,200.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body><tns:getAllGroups xmlns:tns="http://www.eclipse.org/cosmos/broker" /> </soapenv:Body></soapenv:Envelope>

Expected Result:

  1. Broker requests with all above user samples should work fine with appropriate turn around time

Test Description:StatDataManager Performance Test

  • Using Apache JMeter Tool,testing StatDataManager with samples of 10,50,100,150,200 users simulation
  1. Follow the procedure to create the test, running the test using JMeter.
  2. Provide below SOAP request of StatDataManager to Jmeter tool and run it with users simulation of 10,50,100,150,200.

Expected Result:

  1. StatDataManager requests with all above user samples should work fine with appropriate turn around time

Test Description:LogDataManager Performance Test

  • Using Apache JMeter Tool,testing LoggingDataManager with samples of 10,50,100,150,200 users simulation
  1. Follow the procedure to create the test, running the test using JMeter.
  2. Provide below SOAP request of LoggingDataManager to Jmeter tool and run it with users simulation of 10,50,100,150,200.

Expected Result:

  1. LoggingDataManager requests with all above user samples should work fine with appropriate turn around time

Test Description:TestFederatingCMDB Performance Test

  • Using Apache JMeter Tool,testing FederatingCMDB with samples of 10,50,100,150,200 users simulation
  1. Follow the procedure to create the test, running the test using JMeter.
  2. Provide below SOAP requests of FederatingCMDB to Jmeter tool and run it with users simulation of 10,50,100,150,200.
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><tns:getGroupsByNamespace xmlns:tns="http://www.eclipse.org/cosmos/broker"><tns:namespace>http://cmdbf.org/schema/1-0-0/query</tns:namespace></tns:getGroupsByNamespace></soapenv:Body></soapenv:Envelope> 

*URL=http://localhost:8080/axis2/services/ExampleMdrQueryService 
*Soap/XML-RPC Data=<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><cmdbf:query xmlns:cmdbf="http://cmdbf.org/schema/1-0-0/datamodel"> 
<cmdbf:itemTemplate id="all-items"> </cmdbf:itemTemplate> <cmdbf:relationshipTemplate id="all-relationships"> <cmdbf:sourceTemplate ref="all-items" /> <cmdbf:targetTemplate ref="all-items" /> </cmdbf:relationshipTemplate> </cmdbf:query></soapenv:Body></soapenv:Envelope> 

*URL=http://localhost:8080/axis2/services/TestFederatingCMDBRegistrationService 
*Soap Data=<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><cmdbf:registerRequest xmlns:cmdbf="http://cmdbf.org/schema/1-0-0/datamodel"> 
<cmdbf:mdrId /> <cmdbf:itemList> <cmdbf:item> <cmdbf:record xmlns="http://school"> 
<student> 
<identity firstName="Mike" id="03" lastName="Lee"> </identity> 
</student> <cmdbf:recordMetadata> <cmdbf:recordId>03</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>03</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> <cmdbf:item> <cmdbf:record xmlns="http://school"> 
<student> 
<identity firstName="Jane" id="02" lastName="Ryerson"> </identity> 
</student> <cmdbf:recordMetadata> <cmdbf:recordId>02</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>02</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> <cmdbf:item> <cmdbf:record xmlns="http://school"> 
<student> 
<identity firstName="Bob" id="01" lastName="Davidson"> </identity> 
</student> <cmdbf:recordMetadata> <cmdbf:recordId>01</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>01</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> <cmdbf:item> <cmdbf:record xmlns="http://school"> 
<teacher> 
<identity firstName="Heather" id="staff02" lastName="Reeba"> </identity> 
</teacher> <cmdbf:recordMetadata> <cmdbf:recordId>staff02</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>staff02</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> <cmdbf:item> <cmdbf:record xmlns="http://school"> 
<teacher> 
<identity firstName="Dawn" id="staff01" lastName="Johnson"> </identity> 
</teacher> <cmdbf:recordMetadata> <cmdbf:recordId>staff01</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>staff01</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> </cmdbf:itemList> <cmdbf:relationshipList> <cmdbf:relationship> <cmdbf:source> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>staff02</cmdbf:localId> </cmdbf:source> <cmdbf:target> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>03</cmdbf:localId> </cmdbf:target> <cmdbf:record xmlns="http://school"> 
<class courseCode="PHY01" name="Physics"> 
<students> 
<enrolledStudent idRef="02"> </enrolledStudent> 
<enrolledStudent idRef="03"> </enrolledStudent> 
</students> 
<teacher idRef="staff02"> </teacher> 
</class> <cmdbf:recordMetadata> <cmdbf:recordId>PHY01</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>PHY01</cmdbf:localId> </cmdbf:instanceId> </cmdbf:relationship> <cmdbf:relationship> <cmdbf:source> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>staff02</cmdbf:localId> </cmdbf:source> <cmdbf:target> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>02</cmdbf:localId> </cmdbf:target> <cmdbf:record xmlns="http://school"> 
<class courseCode="MAT01" name="Mathematics"> 
<students> 
<enrolledStudent idRef="01"> </enrolledStudent> 
<enrolledStudent idRef="02"> </enrolledStudent> 
</students> 
<teacher idRef="staff02"> </teacher> 
</class> <cmdbf:recordMetadata> <cmdbf:recordId>MAT01</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>MAT01</cmdbf:localId> </cmdbf:instanceId> </cmdbf:relationship> <cmdbf:relationship> <cmdbf:source> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>staff02</cmdbf:localId> </cmdbf:source> <cmdbf:target> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>02</cmdbf:localId> </cmdbf:target> <cmdbf:record xmlns="http://school"> 
<class courseCode="PHY01" name="Physics"> 
<students> 
<enrolledStudent idRef="02"> </enrolledStudent> 
<enrolledStudent idRef="03"> </enrolledStudent> 
</students> 
<teacher idRef="staff02"> </teacher> 
</class> <cmdbf:recordMetadata> <cmdbf:recordId>PHY01</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>PHY01</cmdbf:localId> </cmdbf:instanceId> </cmdbf:relationship> <cmdbf:relationship> <cmdbf:source> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>staff02</cmdbf:localId> </cmdbf:source> <cmdbf:target> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>01</cmdbf:localId> </cmdbf:target> <cmdbf:record xmlns="http://school"> 
<class courseCode="MAT01" name="Mathematics"> 
<students> 
<enrolledStudent idRef="01"> </enrolledStudent> 
<enrolledStudent idRef="02"> </enrolledStudent> 
</students> 
<teacher idRef="staff02"> </teacher> 
</class> <cmdbf:recordMetadata> <cmdbf:recordId>MAT01</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>MAT01</cmdbf:localId> </cmdbf:instanceId> </cmdbf:relationship> <cmdbf:relationship> <cmdbf:source> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>staff01</cmdbf:localId> </cmdbf:source> <cmdbf:target> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>03</cmdbf:localId> </cmdbf:target> <cmdbf:record xmlns="http://school"> 
<class courseCode="ECM01" name="Economics"> 
<students> 
<enrolledStudent idRef="01"> </enrolledStudent> 
<enrolledStudent idRef="03"> </enrolledStudent> 
</students> 
<teacher idRef="staff01"> </teacher> 
</class> <cmdbf:recordMetadata> <cmdbf:recordId>ECM01</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>ECM01</cmdbf:localId> </cmdbf:instanceId> </cmdbf:relationship> <cmdbf:relationship> <cmdbf:source> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>staff01</cmdbf:localId> </cmdbf:source> <cmdbf:target> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>01</cmdbf:localId> </cmdbf:target> <cmdbf:record xmlns="http://school"> 
<class courseCode="ECM01" name="Economics"> 
<students> 
<enrolledStudent idRef="01"> </enrolledStudent> 
<enrolledStudent idRef="03"> </enrolledStudent> 
</students> 
<teacher idRef="staff01"> </teacher> 
</class> <cmdbf:recordMetadata> <cmdbf:recordId>ECM01</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>ECM01</cmdbf:localId> </cmdbf:instanceId> </cmdbf:relationship> </cmdbf:relationshipList> </cmdbf:registerRequest></soapenv:Body></soapenv:Envelope> 

Expected Result:

  1. FederatingCMDB requests with all above user samples should work fine with appropriate turn around time

Test Description:ExampleMdr Performance Test

  • Using Apache JMeter Tool,testing ExampleMDR with samples of 10,50,100,150,200 users simulation
  1. Follow the procedure to create the test, running the test using JMeter.
  2. Provide below SOAP request of ExampleMDR to Jmeter tool and run it with users simulation of 10,50,100,150,200.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <st:query xmlns:st="http://cmdbf.org/schema/1-0-0/datamodel"> <st:itemTemplate id="items" suppressFromResult="false"> <st:recordConstraint> <st:recordType localName="student" namespace="http://schemas.examplemdr.org/schema/ExampleMDR" /> </st:recordConstraint></st:itemTemplate></st:query> </soapenv:Body> </soapenv:Envelope>

Expected Result:

  1. ExampleMDR requests with all above user samples should work fine with appropriate turn around time

Test Description:SMLMDR Performance Test

  • Using Apache JMeter Tool,testing SMLMDR with samples of 10,50,100,150,200 users simulation
  1. Follow the procedure to create the test, running the test using JMeter.
  2. Provide below SOAP request of SMLMDR to Jmeter tool and run it with user samples of 10,50,100,150,200

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <st:query xmlns:st="http://cmdbf.org/schema/1-0-0/datamodel"> <st:itemTemplate id="cableTemplate"> <st:recordConstraint> <st:propertyValue localName="format" namespace="propertyModel"> <st:equal>RJ45</st:equal> </st:propertyValue> </st:recordConstraint> </st:itemTemplate> </st:query> </soapenv:Body> </soapenv:Envelope>

Expected Result:

  1. SMLMDR requests with all above user samples should work fine with appropriate turn around time

Test Description:AperiMdr Performance Test

  • Using Apache JMeter Tool,testing AperiMdr with samples of 10,50,100,150,200 users simulation
  1. Follow the procedure to create the test, running the test using JMeter.
  2. Provide below SOAP request of AperiMdr to Jmeter tool and run it with 10,50,100,150,200 users simulation

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <st:query xmlns:st="http://cmdbf.org/schema/1-0-0/datamodel"> <st:itemTemplate id="items" suppressFromResult="false"> <st:recordConstraint> <st:recordType localName="StoragePool" namespace="http://schemas.aperimdr.org/schema/AperiMDR" /> </st:recordConstraint> </st:itemTemplate> </st:query> </soapenv:Body> </soapenv:Envelope>

Expected Result:

  1. AperiMdr requests with all above user samples should work fine with appropriate turn around time

Scalability/Stability Tests

Test Description:ExampleMdr Volume Test

  • Using Apache JMeter Tool,testing ExampleMDR with multiple volumes of test data (data.xml) 1MB, 2MB,2.5MB with user samples of 10,50,100,150,200.
  1. Modify data.xml file to insert test data with 5000,10000,15000 student records
  2. Follow the procedure to create the test, running the test using JMeter.
  3. Provide below SOAP request of ExampleMDR to Jmeter tool and run it with 10,50,100,150,200 users simulation
<?xml version='1.0' encoding='utf-8'?> 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> 
<soapenv:Body> 
<st:query xmlns:st="http://cmdbf.org/schema/1-0-0/datamodel"> 
<st:itemTemplate id="items" suppressFromResult="false"> 
<st:recordConstraint> <st:recordType localName="student" namespace="http://schemas.examplemdr.org/schema/ExampleMDR" /> </st:recordConstraint></st:itemTemplate>
</st:query> </soapenv:Body> </soapenv:Envelope> 

Expected Result:

  1. ExampleMDR requests with all above user samples should work fine with appropriate turn around time

Test Description:Scalability Tests with ExampleMdr

  • Scalability tests, with incremental addition of new datamanagers/mdrs
  1. Create duplicate copies of multiple data managers and MDRs (with samples of 6,12,18,24 datamanagers )
  2. Follow the procedure to create the test, running the test using JMeter.
  3. Provide below SOAP requests of various datamanagers to Jmeter tool and run it with 10,50,100,150,200 users simulation
  • URL=
  • Soap Data=

Expected Result:

  1. All requests to various datamanagers should work normally with appropriate turn around time.

References

Back to the top