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.
Difference between revisions of "COSMOS QA End2End Tests"
(→Executing CMDBf Queries using graphQuery) |
(→Using the Registration Example CMDBf (Sample Repository with Registration)) |
||
Line 1,116: | Line 1,116: | ||
#select "View Metadata" on the popup menu | #select "View Metadata" on the popup menu | ||
Expected Result: | Expected Result: | ||
− | #Should display | + | #Should display "There is no ServiceMetaData for this DataManager." |
− | + | ||
---- | ---- | ||
Revision as of 05:51, 27 May 2008
Contents
- 1 Overview
- 2 COSMOS Installation
- 3 COSMOS End2End Tests
- 4 End2End Supplement Tests (Negative)
- 5 Basic Operational efficiency tests
- 6 References
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
COSMOS End2End Tests
Build Installation and Configuration
Test Description:
- To test Build installation with default configuration
- 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
Start the COSMOS Command Line Client
Test Description:
- To Start the command line client by executing the cosmosClient.bat or cosmosClient.sh
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost: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.
Register Data Managers with Broker
Test Description:
- To register all COSMOS data managers that are deployed on an Axis2 web service container with the broker
- COSMOS> broker registerAllDataManagers
Expected Result:
log4j:WARN No appenders could be found for logger (org.apache.axis2.util.Loader). log4j:WARN Please initialize the log4j system properly. Registering StatDataManager Registering LoggingDataManager Registering TestFederatingCMDB Registering ExampleMdr Registering SMLMDR Registering AperiMdr DataManagers registered
List All Data Managers Registered with Broker
Test Description:
- For listing out all data managers registered at the broker
- COSMOS> broker getDataManagers
Expected Result:
Data managers registered at the broker. Data manager name: StatDataManager Hostname of data manager: batra03-xp Description: Service 1: namespace: http://axis.datamgr.stat.dc.cosmos.eclipse.org EPR: http://batra03-xp:8080/axis2/services/StatisticalDataManager Description: Statistical DataManager Service 2: namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://batra03-xp:8080/axis2/services/StatDataManager Description: COSMOS Data Manager Data manager name: LoggingDataManager Hostname of data manager: batra03-xp Description: Service 1: namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://batra03-xp:8080/axis2/services/LoggingDataManager Description: COSMOS Data Manager Service 2: namespace: http://axis.datamgr.logging.dc.cosmos.eclipse.org EPR: http://batra03-xp:8080/axis2/services/CBEServices Description: Logging DataManager Data manager name: TestFederatingCMDB Hostname of data manager: batra03-xp Description: Service 1: namespace: http://cmdbf.org/schema/1-0-0/registration EPR: http://batra03-xp:8080/axis2/services/TestFederatingCMDBRegistrationService Description: Test Federating CMDB Registration Service Service 2: namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://batra03-xp:8080/axis2/services/TestFederatingCMDBDataManager Description: COSMOS Data Manager Service 3: namespace: http://cmdbf.org/schema/1-0-0/query EPR: http://batra03-xp:8080/axis2/services/TestFederatingCMDBQueryService Description: Test Federating CMDB Query Service Data manager name: ExampleMdr Hostname of data manager: batra03-xp Description: Service 1: namespace: http://cmdbf.org/schema/1-0-0/query EPR: http://batra03-xp:8080/axis2/services/ExampleMdrQueryService Description: Example MDR Query Service Service 2: namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://batra03-xp:8080/axis2/services/ExampleMdrDataManager Description: COSMOS Data Manager Data manager name: SMLMDR Hostname of data manager: batra03-xp Description: Service 1: namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://batra03-xp:8080/axis2/services/SmlMdrDataManager Description: COSMOS Data Manager Service 2: namespace: http://cmdbf.org/schema/1-0-0/query EPR: http://batra03-xp:8080/axis2/services/SmlMdrQueryService Description: SML MDR Query Service Data manager name: AperiMdr Hostname of data manager: batra03-xp Description: Service 1: namespace: http://cmdbf.org/schema/1-0-0/query EPR: http://batra03-xp:8080/axis2/services/AperiMdrQueryService Description: Aperi MDR Query Service Service 2: namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://batra03-xp:8080/axis2/services/AperiMdrDataManager Description: COSMOS Data Manager
Find all DataManagers using CosmosServiceFinder
Test Description:
- To get list of COSMOS data managers deployed on the axis2 web service container as the service finder web service
- COSMOS> finddatamanagers http://localhost:8080/axis2/services/CosmosServiceFinder
Expected Result:
Data manager name: StatDataManager Hostname of data manager: batra03-xp Description: Service 1: namespace: http://axis.datamgr.stat.dc.cosmos.eclipse.org EPR: http://batra03-xp:8080/axis2/services/StatisticalDataManager Description: Statistical DataManager Service 2: namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://batra03-xp:8080/axis2/services/StatDataManager Description: COSMOS Data Manager Data manager name: LoggingDataManager Hostname of data manager: batra03-xp Description: Service 1: namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://batra03-xp:8080/axis2/services/LoggingDataManager Description: COSMOS Data Manager Service 2: namespace: http://axis.datamgr.logging.dc.cosmos.eclipse.org EPR: http://batra03-xp:8080/axis2/services/CBEServices Description: Logging DataManager Data manager name: TestFederatingCMDB Hostname of data manager: batra03-xp Description: Service 1: namespace: http://cmdbf.org/schema/1-0-0/registration EPR: http://batra03-xp:8080/axis2/services/TestFederatingCMDBRegistrationService Description: Test Federating CMDB Registration Service Service 2: namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://batra03-xp:8080/axis2/services/TestFederatingCMDBDataManager Description: COSMOS Data Manager Service 3: namespace: http://cmdbf.org/schema/1-0-0/query EPR: http://batra03-xp:8080/axis2/services/TestFederatingCMDBQueryService Description: Test Federating CMDB Query Service Data manager name: ExampleMdr Hostname of data manager: batra03-xp Description: Service 1: namespace: http://cmdbf.org/schema/1-0-0/query EPR: http://batra03-xp:8080/axis2/services/ExampleMdrQueryService Description: Example MDR Query Service Service 2: namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://batra03-xp:8080/axis2/services/ExampleMdrDataManager Description: COSMOS Data Manager Data manager name: SMLMDR Hostname of data manager: batra03-xp Description: Service 1: namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://batra03-xp:8080/axis2/services/SmlMdrDataManager Description: COSMOS Data Manager Service 2: namespace: http://cmdbf.org/schema/1-0-0/query EPR: http://batra03-xp:8080/axis2/services/SmlMdrQueryService Description: SML MDR Query Service Data manager name: AperiMdr Hostname of data manager: batra03-xp Description: Service 1: namespace: http://cmdbf.org/schema/1-0-0/query EPR: http://batra03-xp:8080/axis2/services/AperiMdrQueryService Description: Aperi MDR Query Service Service 2: namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://batra03-xp:8080/axis2/services/AperiMdrDataManager Description: COSMOS Data Manager
Deregistering Data Managers from broker
Test Description:
- To Deregister data manager - "StatDataManager" from the broker
- COSMOS> broker deregister domsr01-xp StatDataManager
Expected Result:
- DataManager deregistered.
Test Description:
- To Deregister data manager - "LoggingDataManager" from the broker
- COSMOS> broker deregister domsr01-xp LoggingDataManager
Expected Result:
- DataManager deregistered.
Test Description:
- To Deregister data manager - "TestFederatingCMDB" from the broker
- COSMOS> broker deregister domsr01-xp TestFederatingCMDB
Expected Result:
- DataManager deregistered.
Test Description:
- To Deregister data manager - "ExampleMdr" from the broker
- COSMOS> broker deregister domsr01-xp ExampleMdr
Expected Result:
- DataManager deregistered.
Test Description:
- To Deregister data manager - "SMLMDR" from the broker
- COSMOS> broker deregister domsr01-xp SMLMDR
Expected Result:
- DataManager deregistered.
Test Description:
- To Deregister data manager - "AperiMdr" from the broker
- COSMOS> broker deregister domsr01-xp AperiMdr
Expected Result:
- DataManager deregistered.
Executing CMDBf Queries using graphQuery
SMLMDR
Test Description:
- To invoke graphQuery on SMLMDR
- 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:
- To invoke graphQuery on SMLMDR
- 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>
ExampleMdr
Test Description:
- To invoke graphQuery on ExampleMdr
- 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:
- To invoke graphQuery on ExampleMdr
- 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:
- 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:
- 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>
AperiMdr
Test Description:
- COSMOS> graphQuery domsr01-xp AperiMdr D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_system_disk_constr.xml
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="StorageSystem"> </cmdbf:nodes> <cmdbf:nodes templateId="Disk"> </cmdbf:nodes> <cmdbf:edges templateId="StorageSystemDisks"> </cmdbf:edges> </cmdbf:queryResult>
Test Description:
- COSMOS> graphQuery domsr01-xp AperiMdr D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_system_pool_prop.xml
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="StorageSystem"> </cmdbf:nodes> <cmdbf:nodes templateId="StoragePool"> </cmdbf:nodes> <cmdbf:edges templateId="StorageSystemStoragePools"> </cmdbf:edges> </cmdbf:queryResult>
Test Description:
- COSMOS> graphQuery domsr01-xp AperiMdr D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\AperiMdr\StorageSystem_display_name.txt
Expected Result:
Test Description:
- COSMOS> graphQuery domsr01-xp AperiMdr D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\AperiMdr\StorageSystem_relationship.txt
Expected Result:
TestFederatingCMDB
Test Description:
- To submit CMDBf query to fetch results for registered items
- COSMOS> COSMOS> graphQuery domsr01-xp TestFederatingCMDB D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\TestFederatingCMDB\all_items.txt
Expected Result:
- Should display appropriate query result with list of registered data item values.
Using the COSMOS Web User Interface
Data Managers View
Test Description:
- Layout of the User Interface
- Once you have started the COSMOS components, point your web browser to http://localhost:8080/COSMOSUI/?page=cosmos
Expected Result:
- 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.
- 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.
- A Statistical Data Manager that displays reports on some runtime statistics ("StatDataManager")
- A Logging Data Manager that displays reports on log files based on the Common Based Event format. ("LoggingDataManager")
- An Example Federating CMDB ("Sample Repository with Registration")
- An Example MDR that contains information related to students and teachers ("Sample Repository with Query")
- An Asset Repository that contains asset information that is modelled using the Service Modeling Language (SML) ("Resource Repository")
- An MDR for making queries on storage management data from Aperi using JDBC ("AperiMdr")
- 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:
- Displaying statistical data sources & Generating the statistical data reports
- Expand the "StatDataManager" node in the Data Managers pane to show a list of recorded statistical data sessions
- select the collected data "server 33 tomcat1181829221515 CBE" and select "Statistical Report" by right clicking on it
Expected Result:
- Generates the statistical report and will be displayed in the "Details" pane
- The properties of the selected data collection should be displayed in the Properties pane.
Test Description:
- Displaying statistical data sources & Generating the statistical data reports
- Expand the "StatDataManager" node in the Data Managers pane to show a list of recorded statistical data sessions
- select the collected data "server 33 tomcat1181829221515 TomcatSet" and select "Statistical Report" by right clicking on it
Expected Result:
- Generates the statistical report and will be displayed in the "Details" pane
- The properties of the selected data collection should be displayed in the Properties pane.
Logging Data Manager
Test Description:
- To query the CBE data manager for a list of log files and generate reports on the log data.
- Expand the "LoggingDataManager" node in the left pane to show a list of log files managed by the data manager
- Select the log file "access_log.cbe.xml", right click and select "Top 10 Log Report" menu option
Expected Result:
- The properties view should show the properties of the log file.
- Log report will be generated in the "Details" pane in the top right pane
Test Description:
- To query the CBE data manager for a list of log files and generate reports on the log data.
- Expand the "LoggingDataManager" node in the left pane to show a list of log files managed by the data manager
- Select the log file "windows_app_log.cbe.xml" , right click and select "Top 10 Log Report" menu option
Expected Result:
- The properties view should show the properties of the log file.
- 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:
- To register configuration items with the test Federating CMDB
- start the COSMOS UI
- right-click on the "Sample Repository with Registration" Data Manager
- select "Register Configuration Items..." on the popup menu
- In the "Register MDR Configuration Items" window, select the "Example MDR"
- Press the "Register" button
Expected Result:
- A list of configuration items will be displayed showing status results
Test Description:
- To Deregister configuration items from the test Federating CMDB
- start the COSMOS UI
- right-click on the "Sample Repository with Registration" Data Manager
- select "Deregister Configuration Items..." on the popup menu
- In the "Deregister MDR Configuration Items" window, select the "Example MDR"
- Press the "Deregister" button
Expected Result:
- A list of configuration items will be displayed showing status results
Test Description:
- start the COSMOS UI
- right-click on the "Sample Repository with Registration" Data Manager
- Select "Submit Query" on the popup menu
- 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:
- Should display appropriate results under GraphQueryResponse viewer
Test Description:
- start the COSMOS UI
- right-click on the "Sample Repository with Registration" Data Manager
- select "View Metadata" on the popup menu
Expected Result:
- Should display "There is no ServiceMetaData for this DataManager."
SML MDR (Resource Repository)
Test Description:
- To construct a CMDBf query to acquire asset information on these resources.
- To submit a query on the SML Repository, right click on "Resource Repository"
- From the "Data Managers" view. A pop-up menu should be shown with a "Submit Query..." option. #Click on the option to bring up a dialog box that will allow the user to enter a CMDBf query.
- 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:
- The graph response viewer should be shown in the details pane.
- You should see one row in the table under the "Node and Edges" section. Click on the cell under the "Source" column.
- The Records section of the view will show information about the cable.
- 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:
- Resource Repository
- View MetaData
Expected Result:
Using the Aperi MDR (Storage Repository)
Test Description:
- AperiMDR
- Submit Query
Expected Result:
Test Description:
- AperiMDR
- View MetaData
Expected Result:
Example MDR (Sample Repository with Query)
Test Description:
- Sample Repository with Query
- Get All Students
Expected Result:
Test Description:
- Sample Repository with Query
- Get All Teachers
Expected Result:
Test Description:
- Sample Repository with Query
- Get All Classes
Expected Result:
Test Description:
- Sample Repository with Query
- Staff01
Expected Result:
Test Description:
- Sample Repository with Query
- Staff02
Expected Result:
Test Description:
- To construct a CMDBf query to acquire the student or teacher information
- To submit a query on the Example MDR right click the "Sample Repository with Query" from the "Data Manager" view.
- A pop-up menu should be shown with a "Submit Query..." option. Click on the menu option.
- This will bring up a query builder dialog box that will allow the user to construct a CMDBf query.
- 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>
- The query builder is composed of three panes. The top level pane allows the user to create itemTemplate and relationshipTemplate nodes.
- Right click the "query" node in the top pane and select 'Add Item'.
- 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.
- Select the 'itemTemplate' node in the bottom left pane to view the properties on the element
- Add a recordConstraint element under the 'itemTemplate' node by right clicking the 'itemTemplate' node and selecting the 'add recordConstraint' menu option.
- 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.
- 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.
- Click the "Preview XML" button to look at the CMDBf query we constructed.
- Click the 'Submit' button.
Expected Result:
- 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.
- 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
- Note that the student information is displayed as a XML structure as follows:
<student> <identity firstName="Mike" id="03" lastName="Lee"/> </student>
Test Description:
- Sample Repository with Query
- View MetaData
Expected Result:
End2End Supplement Tests (Negative)
COSMOS Command Line Client : Management Console
Tomcat Port Variations
Test Description:
- Configure tomcat port to 9080 (other than default port : 8080) and test the following:
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
Expected Result:
- Should display COSMOS prompt without any errors
Test Description:
- Test Broker registration other than defaul port 8080 (say 9080):
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> broker registerAllDataManagers http://localhost:9080/axis2/services/CosmosServiceFinder
Expected Result:
- All DataManagers should successfuly get registered to broker on port 9080
Broker registration variations
Test Description:
- Test Broker registration multiple times:
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> broker registerAllDataManagers http://localhost:9080/axis2/services/CosmosServiceFinder
- COSMOS> broker registerAllDataManagers http://localhost:9080/axis2/services/CosmosServiceFinder
Expected Result:
- Under tomcat console window, it should display "Service has already been registered at this broker. No new brokers are registered."
Test Description:
- Without broker registration, test the following:
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> broker getDataManagers
Expected Result:
- Should display empty list of DataManagers
Test Description:
- Without any broker registration, test the following
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> finddatamanagers http://localhost:9080/axis2/services/CosmosServiceFinder
Expected Result:
- Should display all 6 DataManagers deployed under tomcat with port 9080
Test Description:
- After succesful broker registration, test the following:
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> broker getDataManagers
Expected Result:
- Should display all 6 DataManagers registered with broker
Deregistration variations
Test Description:
- Test deregistration of StatDataManager with valid hostname and valid datamanager name :
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> broker deregister domsr01-xp StatDataManager
Expected Result:
- Deregistration should be successful
Test Description:
- Test deregistration of StatDataManager with invalid hostname and valid datamanager name :
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> broker deregister unknown StatDataManager
Expected Result:
- Deregistration should fail and should display appropriate error message
Test Description:
- Test deregistration of StatDataManager with valid hostname and invalid datamanager name :
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> broker deregister domsr01-xp StatDataMgr
Expected Result:
- Deregistration should fail and should display appropriate error message
GraphQuery variations
Test Description:
- Test graphQuery for SMLMDR, with valid hostname,valid DataManager,valid query path:
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> graphQuery domsr01-xp SMLMDR D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\SMLMDR\testInstanceIdQuery.txt
Expected Result:
- Query execution should be succesful.
Test Description:
- Test graphQuery for SMLMDR, with invalid hostname,valid DataManager,valid query path:
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> graphQuery unknown SMLMDR D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\SMLMDR\testInstanceIdQuery.txt
Expected Result:
- Query execution should fail and throw appropriate error message.
Test Description:
- Test graphQuery for SMLMDR, with valid hostname,invalid DataManager,valid query path:
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> graphQuery domsr01-xp StatDataManager D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\SMLMDR\testInstanceIdQuery.txt
Expected Result:
- Query execution should fail and throw appropriate error message.
Test Description:
- Test graphQuery for SMLMDR, with valid hostname,valid DataManager,invalid query path:
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> graphQuery domsr01-xp SMLMDR D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\SMLMDRTest\testInstanceIdQuery.txt
Expected Result:
- Query execution should fail and throw appropriate error message.
Test Description:
- Test graphQuery for SMLMDR, with valid hostname,valid DataManager,valid query path with spaces:
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> graphQuery domsr01-xp SMLMDR "D:\cosmos i10\cosmos-demo\cosmos-client\cmdbfQuery\SMLMDR\testInstanceIdQuery.txt"
Expected Result:
- Query execution should be successful
Test Description:
- Test graphQuery for AperMdr with valid data, with valid Aperi database settings:
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> graphQuery domsr01-xp AperiMdr D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\AperiMdr\StorageSystem_all_items.txt
Expected Result:
- Query should execute successfully
Test Description:
- Test graphQuery for AperMdr with invalid query data, with valid Aperi database settings:
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> graphQuery domsr01-xp AperiMdr D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\AperiMdr\StorageSystem_all_items.txt
Expected Result:
- Query execution should fail and display appropriate error message
Test Description:
- Test graphQuery for AperMdr with valid data, with invalid Aperi database settings:
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> graphQuery domsr01-xp AperiMdr D:\cosmosi10\cosmos-demo\cosmos-client\cmdbfQuery\AperiMdr\StorageSystem_all_items.txt
Expected Result:
- Query execution should fail, with DB Connection error
Using the COSMOS Web User Interface
Tomcat Port Variations
Test Description
- Open COSMOSUI with 8090 port (Make sure all COSMOS Components are up and running at this port)
Expected Result:
- Should display all 6 DataManagers properly
Test Description:
- Open COSMOSUI (http://localhost:8090/COSMOSUI/?page=cosmos), Verify Properties of all DataManagers
- StatDataManager
- LoggingDataManager
- Sample Repository with Registration
- Sample Repository with Query
- Resource Repository
- AperiMdr
Expected Result:
- All properties should display the correct EPR with port 8090
Test Description:
- Test StatDataManager, "Statistical Report" generation:
- Open COSMOSUI (http://localhost:8090/COSMOSUI/?page=cosmos)
- Select StatDataManager -> server 33 tomcat1181829221515 CBE -> Generate StatReport
Expected Result:
- Statistical Report should get generated properly
Test Description:
- Test "LoggingDataManager", Top 10 Log Report generation:
- Open COSMOSUI (http://localhost:8090/COSMOSUI/?page=cosmos)
- Select LoggingDataManager -> access_log.cbe.xml -> Top 10 Log Report
Expected Result:
- Top 10 Log report should get generated properly
TestFederatingCMDB Variations
Test Description:
- Test "Sample Repository with Registration",self registration
- Select "Sample Repository with Registration"
- Click on "Register Configuration Items..."
- Select "Sample Repository with Registration" under registration window
Expected Result
- Either it should not be allowed or it should display appropriate error message
Test Description:
- Test "Sample Repository with Registration",Resource Repository registration
- Select "Sample Repository with Registration"
- Click on "Register Configuration Items..."
- Select "Resource Repository" under registration window
Expected Result
- Either registration should not be allowed or it should display appropriate error message
Test Description:
- Test "Sample Repository with Registration",AperiMdr registration
- Select "Sample Repository with Registration"
- Click on "Register Configuration Items..."
- Select "AperiMdr" under registration window
Expected Result
- Either registration should not be allowed or it should display appropriate error message
Resource Repository Variations
Test Description:
- Test Resource Repository, with valid query
- select "Resource Repository" and click on "Submit Query"
- Provide valid query and submit
Expected Result:
- Query should execute successfully
Test Description:
- Test Resource Repository, with invalid query
- select "Resource Repository" and click on "Submit Query"
- Provide invalid query and submit
Expected Result:
- Query should fail with appropriate error message
AperiMdr Variations
Test Description:
- Test AperiMDR with proper db configuration and with valid query
- select "AperiMdr" and create valid query using Query Builder
Expected Result:
- Query should execute successfully
Test Description:
- Test AperiMDR with proper db configuration and with invalid query
- select "AperiMdr" and create invalid query using Query Builder
Expected Result:
- Query execution should fail and display appropriate error message
Test Description:
- Test AperiMDR with invalid db configuration and with valid query
- select "AperiMdr" and create valid query using Query Builder
Expected Result:
- Query execution should fail with db connection error
ExampleMdr Variations
Test Description:
- Test "Sample Repository with Query", with valid query
- select "Sample Repository with Query"
- Create a valid query from query builder and submit it
Expected Result:
- Query execution should be successful
Test Description:
- Test "Sample Repository with Query", with invalid query
- select "Sample Repository with Query"
- Create an invalid query from query builder and submit it
Expected Result:
- Should display Empty Query response under GraphResponseViewer
Basic Operational efficiency tests
Configuration Tests
Test Description:
- Testing the scenario where COSMOSUI running on windows and all COSMOS services running on Linux
- Install COSMOS service components under linux box
- Install COSMOSUI,COSMOSReportViewer webapps application under windows
- Modify BROKER EPR value under <COSMOSUI>/Configuration.properties file, pointing to linux hostname
- From windows, open http://localhost:8080/COSMOSUI
Expected Result:
- COSMOS UI should display all 6 Data Managers and all it's operations should work normally
Test Description:
- Testing the scenario where COSMOSUI running on linux and all COSMOS services running on windows
- Install COSMOS service components under windows
- Install COSMOSUI,COSMOSReportViewer webapps application under linux
- Modify BROKER EPR value under <COSMOSUI>/Configuration.properties file, pointing to windows hostname
- From linux, open http://localhost:8080/COSMOSUI
Expected Result:
- COSMOS UI should display all 6 Data Managers and all it's operations should work normally
Concurrency Tests
Test Description:
- Concurrency tests, where multiple COSMOSUI's running on one machine
- Install all COSMOS components on windows PC
- open 2 COSMOSUI's under IE and 2 COSMOSUI's under Firebox browsers
- Perform various test operations - Generating Stat/Log reports on all COSMOSUI's #simultaneously,Executing CMDBf queries on all COSMOSUI's simultaneously
Expected Result:
- All COSMOS UI's should work normally and should get appropriate results without any errors
Test Description:
- Concurrency tests, where multiple COSMOSUI's and multiple COSMOS Command Line Clients running on one machine
- Install all COSMOS components on windows PC
- open 1 COSMOSUI under IE and 1 COSMOSUI under Firebox browser
- open 2 COSMOS Command Line Shells
- Perform various test operations - Execute CMDBf queries on all COSMOS Clients simultaneously
Expected Result:
- All COSMOS clients should work normally and should get appropriate results without any errors
Volume/Performance Tests
Apache JMeter Tool - Setup Instructions
- Open Jmeter window (jmeter-install-dir\bin\jmeter.bat)
- 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’.
- Select the ‘Thread Group’ node. On the right side for ‘Number of Threads’ text box, give the number of samples.
- 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’
- 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’
- 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)
- Save the test
- Now, to run the test, from menu bar select Run->Start for running a test.
- Run->Stop for stopping test
- The results will be populated in the Listeners that we have added to the test.
Test Description:
- Using Apache JMeter Tool,testing Broker with samples of 10,50,100,150,200 users simulation
- Follow the procedure to create the test, running the test using JMeter.
- Provide below SOAP request of Broker to Jmeter tool and run it with users simulation of 10,50,100,150,200.
- URL = http://localhost:8080/axis2/services/Broker
- Soap/XML-RPC Data = <?xml version='1.0' encoding='utf-8'?>
<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:
- Broker requests with all above user samples should work fine with appropriate turn around time
Test Description:
- Using Apache JMeter Tool,testing StatDataManager with samples of 10,50,100,150,200 users simulation
- Follow the procedure to create the test, running the test using JMeter.
- Provide below SOAP request of StatDataManager to Jmeter tool and run it with users simulation of 10,50,100,150,200.
- URL = http://localhost:8080/axis2/services/StatisticalDataManager
- Soap/XML-RPC Data = <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><tns:getDatasourceKeysets xmlns:tns="http://axis.datamgr.stat.dc.cosmos.eclipse.org" /></soapenv:Body></soapenv:Envelope>
Expected Result:
- StatDataManager requests with all above user samples should work fine with appropriate turn around time
Test Description:
- Using Apache JMeter Tool,testing LoggingDataManager with samples of 10,50,100,150,200 users simulation
- Follow the procedure to create the test, running the test using JMeter.
- Provide below SOAP request of LoggingDataManager to Jmeter tool and run it with users simulation of 10,50,100,150,200.
- URL = http://localhost:8080/axis2/services/CBEServices
- Soap/XML-RPC Data = <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><tns:getLogFileIdentifiersxmlns:tns="http://axis.datamgr.logging.dc.cosmos.eclipse.org" /></soapenv:Body></soapenv:Envelope>
Expected Result:
- LoggingDataManager requests with all above user samples should work fine with appropriate turn around time
Test Description:
- Using Apache JMeter Tool,testing FederatingCMDB with samples of 10,50,100,150,200 users simulation
- Follow the procedure to create the test, running the test using JMeter.
- Provide below SOAP requests of FederatingCMDB to Jmeter tool and run it with users simulation of 10,50,100,150,200.
- URL=http://localhost:8080/axis2/services/Broker
- Soap/XML-RPC Data=
<?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:
- FederatingCMDB requests with all above user samples should work fine with appropriate turn around time
Test Description:
- Using Apache JMeter Tool,testing ExampleMDR with samples of 10,50,100,150,200 users simulation
- Follow the procedure to create the test, running the test using JMeter.
- Provide below SOAP request of ExampleMDR to Jmeter tool and run it with users simulation of 10,50,100,150,200.
- URL=http://localhost:8080/axis2/services/ExampleMdrQueryService
- Soap Data=<?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:
- ExampleMDR requests with all above user samples should work fine with appropriate turn around time
Test Description:
- Using Apache JMeter Tool,testing SMLMDR with samples of 10,50,100,150,200 users simulation
- Follow the procedure to create the test, running the test using JMeter.
- Provide below SOAP request of SMLMDR to Jmeter tool and run it with user samples of 10,50,100,150,200
- URL=http://localhost:8080/axis2/services/SmlMdrQueryService
- SOAP Data=<?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="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:
- SMLMDR requests with all above user samples should work fine with appropriate turn around time
Test Description:
- Using Apache JMeter Tool,testing AperiMdr with samples of 10,50,100,150,200 users simulation
- Follow the procedure to create the test, running the test using JMeter.
- Provide below SOAP request of AperiMdr to Jmeter tool and run it with 10,50,100,150,200 users simulation
- URL=http://localhost:8080/axis2/services/AperiMdrQueryService
- Soap Data=<?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="StoragePool" namespace="http://schemas.aperimdr.org/schema/AperiMDR" /> </st:recordConstraint> </st:itemTemplate> </st:query> </soapenv:Body> </soapenv:Envelope>
Expected Result:
- AperiMdr requests with all above user samples should work fine with appropriate turn around time
Scalability/Stability Tests
Test Description:
- 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.
- Modify data.xml file to insert test data with 5000,10000,15000 student records
- Follow the procedure to create the test, running the test using JMeter.
- Provide below SOAP request of ExampleMDR to Jmeter tool and run it with 10,50,100,150,200 users simulation
- URL=http://localhost:8080/axis2/services/ExampleMdrQueryService
- Soap Data=
<?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:
- ExampleMDR requests with all above user samples should work fine with appropriate turn around time
Test Description:
- Scalability tests, with incremental addition of new datamanagers/mdrs
- Create duplicate copies of multiple data managers and MDRs (with samples of 6,12,18,24 datamanagers )
- Follow the procedure to create the test, running the test using JMeter.
- 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:
- All requests to various datamanagers should work normally with appropriate turn around time.