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.
COSMOS QA End2End Tests
Contents
- 1 Overview
- 2 COSMOS Installation
- 3 COSMOS End2End Tests
- 3.1 Build Installation and Configuration
- 3.2 Using COSMOS Command Line Client : Management Console
- 3.2.1 Starting COSMOS Command Line Client
- 3.2.2 Register Data Managers with Broker
- 3.2.2.1 Test Description:Default Broker
- 3.2.2.2 Test Description:Custom Broker
- 3.2.2.3 Test Description:Broker register StatDataManager
- 3.2.2.4 Test Description:Broker register LoggingDataManager
- 3.2.2.5 Test Description:Broker register TestFederatingCMDB
- 3.2.2.6 Test Description:Broker register ExampleMdr
- 3.2.2.7 Test Description:Broker register SMLMDR
- 3.2.2.8 Test Description:Broker register AperiMdr
- 3.2.2.9 Test Description:Broker registerServiceGroup AperiMdr
- 3.2.2.10 Test Description:Broker registerServiceGroup SMLMDR
- 3.2.2.11 Test Description:Broker registerServiceGroup ExampleMdr
- 3.2.2.12 Test Description:Broker registerServiceGroup LoggingDataManager
- 3.2.2.13 Test Description:Broker registerServiceGroup StatDataManager
- 3.2.2.14 Test Description:Broker registerServiceGroup TestFederatingCMDB
- 3.2.3 List All Data Managers Registered with Broker
- 3.2.4 Find all DataManagers using CosmosServiceFinder
- 3.2.5 Deregistering Data Managers from broker
- 3.2.6 Executing CMDBf Queries using graphQuery
- 3.2.6.1 Test Description:graphQuery with Security
- 3.2.6.2 Test Description:SMLMDR 1
- 3.2.6.3 Test Description:SMLMDR 2
- 3.2.6.4 Test Description:SMLMDR 3
- 3.2.6.5 Test Description:ExampleMdr 1
- 3.2.6.6 Test Description:ExampleMdr 2
- 3.2.6.7 Test Description:ExampleMdr 3
- 3.2.6.8 Test Description:ExampleMdr 4
- 3.2.6.9 Test Description:AperiMdr 1
- 3.2.6.10 Test Description:AperiMdr 2
- 3.2.6.11 Test Description:AperiMdr 3
- 3.2.6.12 Test Description:AperiMdr 4
- 3.2.6.13 Test Description:AperiMdr 5
- 3.2.6.14 Test Description:AperiMdr 6
- 3.2.6.15 Test Description:AperiMdr 7
- 3.2.6.16 Test Description:AperiMdr 8
- 3.2.6.17 Test Description:AperiMdr 9
- 3.2.6.18 Test Description:AperiMdr 10
- 3.2.6.19 Test Description:AperiMdr 11
- 3.2.6.20 Test Description:AperiMdr 12
- 3.2.6.21 Test Description:AperiMdr 13
- 3.2.6.22 Test Description:AperiMdr 14
- 3.2.6.23 Test Description:AperiMdr 15
- 3.2.6.24 Test Description:AperiMdr 16
- 3.2.6.25 Test Description:AperiMdr 17
- 3.2.6.26 Test Description:AperiMdr 18
- 3.2.6.27 Test Description:AperiMdr 19
- 3.2.6.28 Test Description:AperiMdr 20
- 3.2.6.29 Test Description:AperiMdr 21
- 3.2.6.30 Test Description:AperiMdr 22
- 3.2.7 Broker EPR
- 3.3 Using the COSMOS Web User Interface
- 3.3.1 UI Component Widget tests
- 3.3.1.1 Test Description:Navigate
- 3.3.1.2 Test Description:Navigate2
- 3.3.1.3 Test Description:Navigate2
- 3.3.1.4 Test Description:Visualize Log Report
- 3.3.1.5 Test Description:Visualize Stat Report
- 3.3.1.6 Test Description:Properties 2
- 3.3.1.7 Test Description:Example CMDBf query
- 3.3.1.8 Test Description:Multiple Graph Response Viewers
- 3.3.1.9 Test Description:Registration Example
- 3.3.1.10 Test Description:Deregistration Example
- 3.3.1.11 Test Description:Partial Registration
- 3.3.1.12 Test Description:Partial Deregistration
- 3.3.1.13 Test Description:Creating Named Query
- 3.3.1.14 Test Description:Rename Query
- 3.3.1.15 Test Description:Creating Query Folder
- 3.3.1.16 Test Description:Rename Folder
- 3.3.1.17 Test Description:Enter Security Info
- 3.3.1.18 Test Description:Save Queries
- 3.3.1.19 using 'Submit Query as Text'
- 3.3.1.20 Query Properies
- 3.3.1.21 Hierarchical Items
- 3.3.1.22 Hierarchical Relationships
- 3.3.1.23 Hierarchical Sample Registration
- 3.3.1.24 visualize CMDBf Graph Report
- 3.3.1.25 visualize CMDBf Graph Report 2
- 3.3.1.26 visualize CMDBf Graph Report 3
- 3.3.2 Data Managers View
- 3.3.3 Full screen mode toolbar button
- 3.3.4 Statistical Data Manager
- 3.3.5 Logging Data Manager
- 3.3.6 Using the Registration Example CMDBf (Sample Repository with Registration)
- 3.3.7 SML MDR (Resource Repository)
- 3.3.8 Using the Aperi MDR (Storage Repository)
- 3.3.9 Example MDR (Sample Repository with Query)
- 3.3.9.1 Test Description:ExampleMDR All-Students
- 3.3.9.2 Test Description:ExampleMDR All-Teachers
- 3.3.9.3 Test Description:ExampleMDR All-Classes
- 3.3.9.4 Test Description:ExampleMDR Relationship1
- 3.3.9.5 Test Description:ExampleMDR Relationship2
- 3.3.9.6 Test Description:ExampleMDR Submit Query
- 3.3.9.7 Test Description:ExampleMDR Submit Query as Text
- 3.3.9.8 Test Description:ExampleMDR New Folder
- 3.3.9.9 Test Description:ExampleMDR Response History
- 3.3.9.10 Test Description:ExampleMDR Rename saved query
- 3.3.9.11 Test Description:ExampleMDR Refresh
- 3.3.9.12 Test Description:ExampleMDR MetaData
- 3.3.9.13 Test Description:Setting Security Properties
- 3.3.10 CMDB Graph Response Report
- 3.3.1 UI Component Widget tests
- 4 End2End Supplement Tests (Negative)
- 4.1 Build Installation and Configuration
- 4.2 COSMOS Command Line Client : Management Console
- 4.2.1 Broker registration variations
- 4.2.1.1 Test Description:Tomcat Port with 9080
- 4.2.1.2 Test Description:Multiple Broker registration
- 4.2.1.3 Test Description:getDataManagers without broker registration
- 4.2.1.4 Test Description:getDataManagers with registered port 9080
- 4.2.1.5 Test Description: Registering ServiceGroup (Registring Multiple Times)
- 4.2.1.6 Test Description: Registering ServiceGroup (with incorrect hostname)
- 4.2.1.7 Test Description: Registering ServiceGroup (with incorrect DataManager Id)
- 4.2.1.8 Test Description: Registering ServiceGroup (with invalid/non-existing WSDL files)
- 4.2.1.9 Test Description: Registering ServiceGroup (with invalid Broker EPR)
- 4.2.2 Deregistration variations
- 4.2.3 GraphQuery variations
- 4.2.3.1 Test Description:graphQuery with invalid datamanager
- 4.2.3.2 Test Description:graphQuery with invalid query path
- 4.2.3.3 Test Description:graphQuery with query path with spaces
- 4.2.3.4 Test Description:graphQuery with invalid AperiMdr query data
- 4.2.3.5 Test Description:graphQuery with missing Aperi Database setup
- 4.2.1 Broker registration variations
- 4.3 COSMOS Web User Interface
- 4.3.1 COSMOS UI with Broker running at 8090
- 4.3.2 TestFederatingCMDB Variations
- 4.3.3 Resource Repository Variations
- 4.3.4 AperiMdr Variations
- 4.3.5 ExampleMdr Variations
- 4.3.5.1 Test Description:ExampleMdr Submit Query with invalid data
- 4.3.5.2 Test Description:ExampleMdr with invalid data using Submit Query as text
- 4.3.5.3 Test Broker Attributes for ExampleMdr with cosmos.properties
- 4.3.5.4 Test - Launching COSMOS UI with a ExampleMdr query (invalid query)
- 4.3.5.5 Test - ExampleMdr with Invalid Query Relationship data
- 5 Basic Operational efficiency tests (Performance Tests)
- 5.1 Configuration Tests
- 5.2 Concurrency Tests
- 5.3 Volume/Performance Tests
- 5.3.1 Test Description:Broker Performance Test
- 5.3.2 Test Description:StatDataManager Performance Test
- 5.3.3 Test Description:LogDataManager Performance Test
- 5.3.4 Test Description:TestFederatingCMDB Performance Test
- 5.3.5 Test Description:ExampleMdr Performance Test
- 5.3.6 Test Description:SMLMDR Performance Test
- 5.3.7 Test Description:AperiMdr Performance Test
- 5.4 Scalability/Stability Tests
- 6 Eclipse Tooling Components Tests
- 7 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_i14#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
- configDemo.bat C:\cosmos\apache-tomcat-5.5.25 C:\cosmos\cosmos-demo C:\cosmos\birt-runtime-2_3_0.zip
Expected Result:
Installed web application: COSMOSReportViewer Installed web application: COSMOSUI Unzipping C:\cosmos\birt-runtime-2_3_0.zip to C:\cosmos\apache-tomcat-5.5.25\web apps/COSMOSReportViewer... Unzipped BIRT to COSMOSReportViewer Copied BIRT web viewer example to COSMOSReportViewer 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. Installed broker database to C:\cosmos\apache-tomcat-5.5.25\webapps\axis2\WEB-INF\database/brokerdb.xml
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
- Start COSMOS Command line client with default broker,
- <cosmos-demo>\cosmos-client\cosmosClient.bat
Expected Result:
COSMOS> Help Usage: CosmosClient [Broker EPR] Commands: Help Settings Setsoapversion <1.1 or 1.2> Setcredentials <username> <password> GraphQuery <DataManager Id> <query filename> [optional query result filename] FindDataManagers [service finder EPR] GetDataManagers [service namespace] GetDataManagerById <DataManager Id> GetDataManagersByRecordTypeNamespace <RecordTypeNamespace> RegisterAllDataManagers [service finder EPR] Register <DataManager id> [service finder EPR] RegisterServiceGroup <host> <name> <id> <soapNamespace|null> <recordTypeNamespac e|null> <securityNamespace|null> <wsdl URL #1> [wsdl URL #2] ... Deregister <DataManager Id> PrintBrokerEPR ChangeBrokerEPR <new Broker EPR> GetDataManagerInfo <DataManager Id> GetSoapVersion <DataManager Id> Exit -------------- For commands that take an optional service finder EPR and it is not specified It is deduced from the Broker EPR. COSMOS>
Test Description:cosmosClient custom broker
- To start COSMOS command line client with custom broker
- Start COSMOS Command line client with custom broker,
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:8080/axis2/services/Broker
Expected Result:
COSMOS> COSMOS> Help Usage: CosmosClient [Broker EPR] Commands: Help Settings Setsoapversion <1.1 or 1.2> Setcredentials <username> <password> GraphQuery <DataManager Id> <query filename> [optional query result filename] FindDataManagers [service finder EPR] GetDataManagers [service namespace] GetDataManagerById <DataManager Id> GetDataManagersByRecordTypeNamespace <RecordTypeNamespace> RegisterAllDataManagers [service finder EPR] Register <DataManager id> [service finder EPR] RegisterServiceGroup <host> <name> <id> <soapNamespace|null> <recordTypeNamespac e|null> <securityNamespace|null> <wsdl URL #1> [wsdl URL #2] ... Deregister <DataManager Id> PrintBrokerEPR ChangeBrokerEPR <new Broker EPR> GetDataManagerInfo <DataManager Id> GetSoapVersion <DataManager Id> Exit -------------- For commands that take an optional service finder EPR and it is not specified It is deduced from the Broker EPR. COSMOS>
Test Description:cosmosClient Setting security credentials
- To test the ability of COSMOS basic security feature
- Start COSMOS Command line client with default broker,
- Open CosmosCLI interface,<cosmos-demo>\cosmos-client\cosmosClient.bat
- COSMOS> Setsoapversion 1.2
- COSMOS> Setcredentials "test" "test123"
- COSMOS> Settings
Expected Result:
COSMOS> Setsoapversion 1.2 Ok COSMOS> Setcredentials "test" "test123" Ok COSMOS> Settings Settings: brokerEPR: http://localhost:8080/axis2/services/Broker serviceFinderEPR: http://localhost:8080/axis2/services/CosmosServiceFinder serviceNamespace: null username: "test" password: "test123" soapVersion: 1.2 COSMOS>
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
- Start COSMOS Client with default broker -> cosmosClient.bat
- At COSMOS prompt run -> RegisterAllDataManagers
Expected Result:
COSMOS> RegisterAllDataManagers Monitoring Data Repository Registered Logging Data Repository Registered Sample Repository with Registration Registered Sample Repository with Query Registered Resource Repository Registered Storage Repository Registered
Test Description:Custom Broker
- To register all COSMOS data managers that are deployed on an Axis2 web service container with the custom broker
- Start COSMOS Client with custom broker -> cosmosClient.bat http://localhost:8080/axis2/services/MyBroker
- At COSMOS prompt run -> RegisterAllDataManagers
Expected Result:
COSMOS> RegisterAllDataManagers Monitoring Data Repository Registered Logging Data Repository Registered Sample Repository with Registration Registered Sample Repository with Query Registered Resource Repository Registered Storage Repository Registered
Test Description:Broker register StatDataManager
- To register a COSMOS data manager that are deployed on an Axis2 web service container with the broker
- Start COSMOS Client with default broker -> cosmosClient.bat http://localhost:8080/axis2/services/Broker
- At COSMOS prompt run -> Register http://www.eclipse.org/cosmos/stat/1
Expected Result:
COSMOS> Register http://www.eclipse.org/cosmos/stat/1 Registering Monitoring Data Repository Monitoring Data Repository Registered
Test Description:Broker register LoggingDataManager
- To register a COSMOS data manager that are deployed on an Axis2 web service container with the broker
- Start COSMOS Client with default broker -> cosmosClient.bat http://localhost:8080/axis2/services/Broker
- At COSMOS prompt run -> Register http://www.eclipse.org/cosmos/logging/2
Expected Result:
COSMOS> Register http://www.eclipse.org/cosmos/logging/2 Registering Logging Data Repository Logging Data Repository Registered
Test Description:Broker register TestFederatingCMDB
- To register a COSMOS data manager that are deployed on an Axis2 web service container with the broker
- Start COSMOS Client with default broker -> cosmosClient.bat http://localhost:8080/axis2/services/Broker
- At COSMOS prompt run -> Register http://www.eclipse.org/cosmos/TestFedCMDB/3
Expected Result:
COSMOS> Register http://www.eclipse.org/cosmos/TestFedCMDB/3 Registering Sample Repository with Registration Sample Repository with Registration Registered
Test Description:Broker register ExampleMdr
- To register a COSMOS data manager that are deployed on an Axis2 web service container with the broker
- Start COSMOS Client with default broker -> cosmosClient.bat http://localhost:8080/axis2/services/Broker
- At COSMOS prompt run -> Register http://www.eclipse.org/cosmos/examplemdr/4
Expected Result:
COSMOS> Register http://www.eclipse.org/cosmos/examplemdr/4 Registering Sample Repository with Query Sample Repository with Query Registered
Test Description:Broker register SMLMDR
- To register a COSMOS data manager that are deployed on an Axis2 web service container with the broker
- Start COSMOS Client with default broker -> cosmosClient.bat http://localhost:8080/axis2/services/Broker
- At COSMOS prompt run -> Register http://www.eclipse.org/cosmos/smlmdr/5
Expected Result:
COSMOS> Register http://www.eclipse.org/cosmos/smlmdr/5 Registering Resource Repository Resource Repository Registered
Test Description:Broker register AperiMdr
- To register a COSMOS data manager that are deployed on an Axis2 web service container with the broker
- Start COSMOS Client with default broker -> cosmosClient.bat http://localhost:8080/axis2/services/Broker
- At COSMOS prompt run -> Register http://www.eclipse.org/cosmos/aperimdr/6
Expected Result:
COSMOS> Register http://www.eclipse.org/cosmos/aperimdr/6 Registering Storage Repository Storage Repository Registered
Test Description:Broker registerServiceGroup AperiMdr
- To register ServiceGroup that are deployed on an Axis2 web service container with the broker
- Start COSMOS Client with default broker -> cosmosClient.bat http://localhost:8080/axis2/services/Broker
- COSMOS> RegisterServiceGroup localhost "Storage Repository" http://www.eclipse.org/cosmos/aperimdr/6
http://www.w3.org/2003/05/soap-envelope http://www.eclipse.org/cosmos/aperimdr http://www.eclipse.org/cosmos/security/basic http://localhost:8080/axis2/services/AperiMdrQueryService?wsdl
Expected Result:
COSMOS> RegisterServiceGroup localhost "Storage Repository" http://www.eclipse.org/cosmos/aperimdr/6 http://www.w3.org/2003/05/soap-envelope http://www.eclipse.org/cosmos/aperimdr http://www.eclipse.org/cosmos/security/basic http://localhost:8080/axis2/services/AperiMdrQueryService?wsdl Ok
Test Description:Broker registerServiceGroup SMLMDR
- To register ServiceGroup that are deployed on an Axis2 web service container with the broker
- Start COSMOS Client with default broker -> cosmosClient.bat http://localhost:8080/axis2/services/Broker
- COSMOS> RegisterServiceGroup localhost SMLMDR http://www.eclipse.org/cosmos/smlmdr/5
http://www.w3.org/2003/05/soap-envelope http://schemas.serviceml.org/sml/2007/02 http://www.eclipse.org/cosmos/security/basic http://localhost:8080/axis2/services/SmlMdrDataManager?wsdl http://localhost:8080/axis2/services/SmlMdrQueryService?wsdl
Expected Result:
COSMOS> RegisterServiceGroup localhost SMLMDR http://www.eclipse.org/cosmos/smlmdr/5 http://www.w3.org/2003/05/soap-envelope http://schemas.serviceml.org/sml/2007/02 http://www.eclipse.org/cosmos/security/basic http://localhost:8080/axis2/services/SmlMdrDataManager?wsdl http://localhost:8080/axis2/services/SmlMdrQueryService?wsdl Ok
Test Description:Broker registerServiceGroup ExampleMdr
- To register ServiceGroup that are deployed on an Axis2 web service container with the broker
- Start COSMOS Client with default broker -> cosmosClient.bat http://localhost:8080/axis2/services/Broker
- COSMOS> RegisterServiceGroup localhost ExampleMdr http://www.eclipse.org/cosmos/examplemdr/4
http://www.w3.org/2003/05/soap-envelope http://www.eclipse.org/cosmos/examplemdr http://www.eclipse.org/cosmos/security/basic http://localhost:8080/axis2/services/ExampleMdrDataManager?wsdl http://localhost:8080/axis2/services/ExampleMdrQueryService?wsdl
Expected Result:
COSMOS> RegisterServiceGroup localhost ExampleMdr http://www.eclipse.org/cosmos/examplemdr/4 http://www.w3.org/2003/05/soap-envelope http://www.eclipse.org/cosmos/examplemdr http://www.eclipse.org/cosmos/security/basic http://localhost:8080/axis2/services/ExampleMdrDataManager?wsdl http://localhost:8080/axis2/services/ExampleMdrQueryService?wsdl Ok
Test Description:Broker registerServiceGroup LoggingDataManager
- To register ServiceGroup that are deployed on an Axis2 web service container with the broker
- Start COSMOS Client with default broker -> cosmosClient.bat http://localhost:8080/axis2/services/Broker
- COSMOS> RegisterServiceGroup localhost LoggingDataManager http://www.eclipse.org/cosmos/logging/2
http://www.w3.org/2003/05/soap-envelope http://www.eclipse.org/cosmos/logging http://www.eclipse.org/cosmos/security/basic http://localhost:8080/axis2/services/LoggingDataManager?wsdl http://localhost:8080/axis2/services/CBEServices?wsdl
Expected Result:
COSMOS> RegisterServiceGroup localhost LoggingDataManager http://www.eclipse.org/cosmos/logging/2 http://www.w3.org/2003/05/soap-envelope http://www.eclipse.org/cosmos/logging http://www.eclipse.org/cosmos/security/basic http://localhost:8080/axis2/services/LoggingDataManager?wsdl http://localhost:8080/axis2/services/CBEServices?wsdl Ok
Test Description:Broker registerServiceGroup StatDataManager
- To register ServiceGroup that are deployed on an Axis2 web service container with the broker
- Start COSMOS Client with default broker -> cosmosClient.bat http://localhost:8080/axis2/services/Broker
- COSMOS> RegisterServiceGroup localhost StatDataManager http://www.eclipse.org/cosmos/stat/1
http://www.w3.org/2003/05/soap-envelope http://www.eclipse.org/cosmos/stat http://www.eclipse.org/cosmos/security/basic http://localhost:8080/axis2/services/StatisticalDataManager?wsdl http://localhost:8080/axis2/services/StatDataManager?wsdl
Expected Result:
COSMOS> RegisterServiceGroup localhost StatDataManager http://www.eclipse.org/cosmos/stat/1 http://www.w3.org/2003/05/soap-envelope http://www.eclipse.org/cosmos/stat http://www.eclipse.org/cosmos/security/basic http://localhost:8080/axis2/services/StatisticalDataManager?wsdl http://localhost:8080/axis2/services/StatDataManager?wsdl Ok
Test Description:Broker registerServiceGroup TestFederatingCMDB
- To register ServiceGroup that are deployed on an Axis2 web service container with the broker
- Start COSMOS Client with default broker -> cosmosClient.bat http://localhost:8080/axis2/services/Broker
- COSMOS> RegisterServiceGroup localhost TestFederatingCMDB http://www.eclipse.org/cosmos/TestFedCMDB/3
http://www.w3.org/2003/05/soap-envelope http://www.eclipse.org/cosmos/testfedcmdb http://www.eclipse.org/cosmos/security/basic http://localhost:8080/axis2/services/TestFederatingCMDBDataManager?wsdl http://localhost:8080/axis2/services/TestFederatingCMDBRegistrationService?wsdl http://localhost:8080/axis2/services/TestFederatingCMDBQueryService?wsdl
Expected Result:
COSMOS> RegisterServiceGroup localhost TestFederatingCMDB http://www.eclipse.org/cosmos/TestFedCMDB/3 http://www.w3.org/2003/05/soap-envelope http://www.eclipse.org/cosmos/testfedcmdb http://www.eclipse.org/cosmos/security/basic http://localhost:8080/axis2/services/TestFederatingCMDBDataManager?wsdl http://localhost:8080/axis2/services/TestFederatingCMDBRegistrationService?wsdl http://localhost:8080/axis2/services/TestFederatingCMDBQueryService?wsdl Ok
List All Data Managers Registered with Broker
Test Description:getDataManagers default broker
- For listing out all data managers registered at the default broker
- Start COSMOS Client with default broker -> cosmosClient.bat http://localhost:8080/axis2/services/Broker
- At COSMOS prompt run -> GetDataManagers
Expected Result:
COSMOS> GetDataManagers Data managers registered at the broker. Data manager name: Monitoring Data Repository Hostname of data manager: localhost Description: Statistical DataManager Id of data manager: http://www.eclipse.org/cosmos/stat/1 SoapNamespace of data manager: http://www.w3.org/2003/05/soap-envelope RecordTypeNamespace of data manager: http://www.eclipse.org/cosmos/stat SecurityNamespace of data manager: http://www.eclipse.org/cosmos/security/basic Service 1 namespace: http://datamgr.stat.internal.dc.cosmos.eclipse.org EPR: http://localhost:8080/axis2/services/StatisticalDataManager Description: Statistical DataManager Service 2 namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://localhost:8080/axis2/services/StatDataManager Description: COSMOS Data Manager Data manager name: Logging Data Repository Hostname of data manager: localhost Description: Logging DataManager Id of data manager: http://www.eclipse.org/cosmos/logging/2 SoapNamespace of data manager: http://www.w3.org/2003/05/soap-envelope RecordTypeNamespace of data manager: http://www.eclipse.org/cosmos/logging SecurityNamespace of data manager: http://www.eclipse.org/cosmos/security/basic Service 1 namespace: http://datamgr.logging.internal.dc.cosmos.eclipse.org EPR: http://localhost:8080/axis2/services/CBEServices Description: Logging DataManager Service 2 namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://localhost:8080/axis2/services/LoggingDataManager Description: COSMOS Data Manager Data manager name: Sample Repository with Registration Hostname of data manager: localhost Description: Examplar Mdr that acts as a Federating CMDB Id of data manager: http://www.eclipse.org/cosmos/TestFedCMDB/3 SoapNamespace of data manager: http://www.w3.org/2003/05/soap-envelope RecordTypeNamespace of data manager: http://www.eclipse.org/cosmos/testfedcmdb SecurityNamespace of data manager: http://www.eclipse.org/cosmos/security/basic Service 1 namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://localhost:8080/axis2/services/TestFederatingCMDBDataManager Description: COSMOS Data Manager Service 2 namespace: http://cmdbf.org/schema/1-0-0/registration EPR: http://localhost:8080/axis2/services/TestFederatingCMDBRegistrationServ ice Description: Test Federating CMDB Registration Service Service 3 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: Sample Repository with Query Hostname of data manager: localhost Description: Examplar Mdr with a simple schema to do CMDBf queries against Id of data manager: http://www.eclipse.org/cosmos/examplemdr/4 SoapNamespace of data manager: http://www.w3.org/2003/05/soap-envelope RecordTypeNamespace of data manager: http://www.eclipse.org/cosmos/examplemdr SecurityNamespace of data manager: http://www.eclipse.org/cosmos/security/basic Service 1 namespace: http://cmdbf.org/schema/1-0-0/query EPR: http://localhost:8080/axis2/services/ExampleMdrQueryService Description: Example MDR Query Service Service 2 namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://localhost:8080/axis2/services/ExampleMdrDataManager Description: COSMOS Data Manager Data manager name: Resource Repository Hostname of data manager: localhost Description: Examplar Mdr that uses SML Id of data manager: http://www.eclipse.org/cosmos/smlmdr/5 SoapNamespace of data manager: http://www.w3.org/2003/05/soap-envelope RecordTypeNamespace of data manager: http://schemas.serviceml.org/sml/2007/02 SecurityNamespace of data manager: http://www.eclipse.org/cosmos/security/basic Service 1 namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://localhost:8080/axis2/services/SmlMdrDataManager Description: COSMOS Data Manager Service 2 namespace: http://cmdbf.org/schema/1-0-0/query EPR: http://localhost:8080/axis2/services/SmlMdrQueryService Description: SML MDR Query Service Data manager name: Storage Repository Hostname of data manager: localhost Description: Examplar Mdr that uses Aperi derby database as its schema Id of data manager: http://www.eclipse.org/cosmos/aperimdr/6 SoapNamespace of data manager: http://www.w3.org/2003/05/soap-envelope RecordTypeNamespace of data manager: http://www.eclipse.org/cosmos/aperimdr SecurityNamespace of data manager: http://www.eclipse.org/cosmos/security/basic Service 1 namespace: http://cmdbf.org/schema/1-0-0/query EPR: http://localhost:8080/axis2/services/AperiMdrQueryService Description: Aperi MDR Query Service Service 2 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
- Start COSMOS Client with custom broker -> cosmosClient.bat http://localhost:8080/axis2/services/Broker
- At COSMOS prompt run -> GetDataManagers
Expected Result:
COSMOS> GetDataManagers Data managers registered at the broker. Data manager name: Monitoring Data Repository Hostname of data manager: localhost Description: Statistical DataManager Id of data manager: http://www.eclipse.org/cosmos/stat/1 SoapNamespace of data manager: http://www.w3.org/2003/05/soap-envelope RecordTypeNamespace of data manager: http://www.eclipse.org/cosmos/stat SecurityNamespace of data manager: http://www.eclipse.org/cosmos/security/basic Service 1 namespace: http://datamgr.stat.internal.dc.cosmos.eclipse.org EPR: http://localhost:8080/axis2/services/StatisticalDataManager Description: Statistical DataManager Service 2 namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://localhost:8080/axis2/services/StatDataManager Description: COSMOS Data Manager Data manager name: Logging Data Repository Hostname of data manager: localhost Description: Logging DataManager Id of data manager: http://www.eclipse.org/cosmos/logging/2 SoapNamespace of data manager: http://www.w3.org/2003/05/soap-envelope RecordTypeNamespace of data manager: http://www.eclipse.org/cosmos/logging SecurityNamespace of data manager: http://www.eclipse.org/cosmos/security/basic Service 1 namespace: http://datamgr.logging.internal.dc.cosmos.eclipse.org EPR: http://localhost:8080/axis2/services/CBEServices Description: Logging DataManager Service 2 namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://localhost:8080/axis2/services/LoggingDataManager Description: COSMOS Data Manager Data manager name: Sample Repository with Registration Hostname of data manager: localhost Description: Examplar Mdr that acts as a Federating CMDB Id of data manager: http://www.eclipse.org/cosmos/TestFedCMDB/3 SoapNamespace of data manager: http://www.w3.org/2003/05/soap-envelope RecordTypeNamespace of data manager: http://www.eclipse.org/cosmos/testfedcmdb SecurityNamespace of data manager: http://www.eclipse.org/cosmos/security/basic Service 1 namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://localhost:8080/axis2/services/TestFederatingCMDBDataManager Description: COSMOS Data Manager Service 2 namespace: http://cmdbf.org/schema/1-0-0/registration EPR: http://localhost:8080/axis2/services/TestFederatingCMDBRegistrationServ ice Description: Test Federating CMDB Registration Service Service 3 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: Sample Repository with Query Hostname of data manager: localhost Description: Examplar Mdr with a simple schema to do CMDBf queries against Id of data manager: http://www.eclipse.org/cosmos/examplemdr/4 SoapNamespace of data manager: http://www.w3.org/2003/05/soap-envelope RecordTypeNamespace of data manager: http://www.eclipse.org/cosmos/examplemdr SecurityNamespace of data manager: http://www.eclipse.org/cosmos/security/basic Service 1 namespace: http://cmdbf.org/schema/1-0-0/query EPR: http://localhost:8080/axis2/services/ExampleMdrQueryService Description: Example MDR Query Service Service 2 namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://localhost:8080/axis2/services/ExampleMdrDataManager Description: COSMOS Data Manager Data manager name: Resource Repository Hostname of data manager: localhost Description: Examplar Mdr that uses SML Id of data manager: http://www.eclipse.org/cosmos/smlmdr/5 SoapNamespace of data manager: http://www.w3.org/2003/05/soap-envelope RecordTypeNamespace of data manager: http://schemas.serviceml.org/sml/2007/02 SecurityNamespace of data manager: http://www.eclipse.org/cosmos/security/basic Service 1 namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://localhost:8080/axis2/services/SmlMdrDataManager Description: COSMOS Data Manager Service 2 namespace: http://cmdbf.org/schema/1-0-0/query EPR: http://localhost:8080/axis2/services/SmlMdrQueryService Description: SML MDR Query Service Data manager name: Storage Repository Hostname of data manager: localhost Description: Examplar Mdr that uses Aperi derby database as its schema Id of data manager: http://www.eclipse.org/cosmos/aperimdr/6 SoapNamespace of data manager: http://www.w3.org/2003/05/soap-envelope RecordTypeNamespace of data manager: http://www.eclipse.org/cosmos/aperimdr SecurityNamespace of data manager: http://www.eclipse.org/cosmos/security/basic Service 1 namespace: http://cmdbf.org/schema/1-0-0/query EPR: http://localhost:8080/axis2/services/AperiMdrQueryService Description: Aperi MDR Query Service Service 2 namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://localhost:8080/axis2/services/AperiMdrDataManager Description: COSMOS Data Manager
Test Description:getDataManager by Id
- For listing out data manager by it's id, which are registered at the broker
- Start COSMOS Client with custom broker -> cosmosClient.bat http://localhost:8080/axis2/services/Broker
- At COSMOS prompt run -> GetDataManagerById http://www.eclipse.org/cosmos/examplemdr/4
Expected Result:
COSMOS> GetDataManagerById http://www.eclipse.org/cosmos/examplemdr/4 Data manager name: ExampleMdr Hostname of data manager: localhost Description: Examplar Mdr with a simple schema to do CMDBf queries against Id of data manager: http://www.eclipse.org/cosmos/examplemdr/4 SoapNamespace of data manager: http://www.w3.org/2003/05/soap-envelope RecordTypeNamespace of data manager: http://www.eclipse.org/cosmos/examplemdr SecurityNamespace of data manager: http://www.eclipse.org/cosmos/security/basic Service 1 namespace: http://cmdbf.org/schema/1-0-0/query EPR: http://localhost:8080/axis2/services/ExampleMdrQueryService Description: Example MDR Query Service Service 2 namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://localhost:8080/axis2/services/ExampleMdrDataManager Description: COSMOS Data Manager
Test Description:getDataManagers by RecordTypeNameSpace
- For listing out data managers by it's RecordTypeNameSpace, which are registered at the broker
- Start COSMOS Client with custom broker -> cosmosClient.bat http://localhost:8080/axis2/services/Broker
- At COSMOS prompt run -> GetDataManagersByRecordTypeNamespace http://www.eclipse.org/cosmos/examplemdr
Expected Result:
COSMOS> GetDataManagersByRecordTypeNamespace http://www.eclipse.org/cosmos/examplemdr Data managers registered at the broker. Data manager name: ExampleMdr Hostname of data manager: localhost Description: Examplar Mdr with a simple schema to do CMDBf queries against Id of data manager: http://www.eclipse.org/cosmos/examplemdr/4 SoapNamespace of data manager: http://www.w3.org/2003/05/soap-envelope RecordTypeNamespace of data manager: http://www.eclipse.org/cosmos/examplemdr SecurityNamespace of data manager: http://www.eclipse.org/cosmos/security/basic Service 1 namespace: http://cmdbf.org/schema/1-0-0/query EPR: http://localhost:8080/axis2/services/ExampleMdrQueryService Description: Example MDR Query Service Service 2 namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://localhost:8080/axis2/services/ExampleMdrDataManager Description: COSMOS Data Manager
Test Description:getDataManager information
- For gettting data manager information, which is registered at the broker
- Start COSMOS Client with custom broker -> cosmosClient.bat http://localhost:8080/axis2/services/Broker
- At COSMOS prompt run -> GetDataManagerInfo http://www.eclipse.org/cosmos/examplemdr/4
Expected Result:
COSMOS> GetDataManagerInfo http://www.eclipse.org/cosmos/examplemdr/4 Id = http://www.eclipse.org/cosmos/examplemdr/4 DisplayName = Sample Repository with Query Description = Examplar Mdr with a simple schema to do CMDBf queries against SoapNamespace = http://www.w3.org/2003/05/soap-envelope RecordTypeNamespace = http://www.eclipse.org/cosmos/examplemdr SecurityNamespace = http://www.eclipse.org/cosmos/security/basic
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
- FindDataManagers http://localhost:8080/axis2/services/CosmosServiceFinder
Expected Result:
COSMOS> FindDataManagers http://localhost:8080/axis2/services/CosmosServiceFinder Data manager name: Monitoring Data Repository Hostname of data manager: localhost Description: DataManager to display Statistical info in a BIRT report Id of data manager: http://www.eclipse.org/cosmos/stat/1 SoapNamespace of data manager: http://www.w3.org/2003/05/soap-envelope RecordTypeNamespace of data manager: http://www.eclipse.org/cosmos/stat SecurityNamespace of data manager: http://www.eclipse.org/cosmos/security/basic Service 1 namespace: http://datamgr.stat.internal.dc.cosmos.eclipse.org EPR: http://localhost:8080/axis2/services/StatisticalDataManager Description: Statistical DataManager Service 2 namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://localhost:8080/axis2/services/StatDataManager Description: COSMOS Data Manager Data manager name: Logging Data Repository Hostname of data manager: localhost Description: DataManager to display CBEs in a BIRT report Id of data manager: http://www.eclipse.org/cosmos/logging/2 SoapNamespace of data manager: http://www.w3.org/2003/05/soap-envelope RecordTypeNamespace of data manager: http://www.eclipse.org/cosmos/logging SecurityNamespace of data manager: http://www.eclipse.org/cosmos/security/basic Service 1 namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://localhost:8080/axis2/services/LoggingDataManager Description: COSMOS Data Manager Service 2 namespace: http://datamgr.logging.internal.dc.cosmos.eclipse.org EPR: http://localhost:8080/axis2/services/CBEServices Description: Logging DataManager Data manager name: Sample Repository with Registration Hostname of data manager: localhost Description: Examplar Mdr that acts as a Federating CMDB Id of data manager: http://www.eclipse.org/cosmos/TestFedCMDB/3 SoapNamespace of data manager: http://www.w3.org/2003/05/soap-envelope RecordTypeNamespace of data manager: http://www.eclipse.org/cosmos/testfedcmdb SecurityNamespace of data manager: http://www.eclipse.org/cosmos/security/basic Service 1 namespace: http://cmdbf.org/schema/1-0-0/registration EPR: http://localhost:8080/axis2/services/TestFederatingCMDBRegistrationServi ce Description: Test Federating CMDB Registration Service Service 2 namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://localhost:8080/axis2/services/TestFederatingCMDBDataManager Description: COSMOS Data Manager Service 3 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: Sample Repository with Query Hostname of data manager: localhost Description: Examplar Mdr with a simple schema to do CMDBf queries against Id of data manager: http://www.eclipse.org/cosmos/examplemdr/4 SoapNamespace of data manager: http://www.w3.org/2003/05/soap-envelope RecordTypeNamespace of data manager: http://www.eclipse.org/cosmos/examplemdr SecurityNamespace of data manager: http://www.eclipse.org/cosmos/security/basic Service 1 namespace: http://cmdbf.org/schema/1-0-0/query EPR: http://localhost:8080/axis2/services/ExampleMdrQueryService Description: Example MDR Query Service Service 2 namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://localhost:8080/axis2/services/ExampleMdrDataManager Description: COSMOS Data Manager Data manager name: Resource Repository Hostname of data manager: localhost Description: Examplar Mdr that uses SML Id of data manager: http://www.eclipse.org/cosmos/smlmdr/5 SoapNamespace of data manager: http://www.w3.org/2003/05/soap-envelope RecordTypeNamespace of data manager: http://schemas.serviceml.org/sml/2007/02 SecurityNamespace of data manager: http://www.eclipse.org/cosmos/security/basic Service 1 namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://localhost:8080/axis2/services/SmlMdrDataManager Description: COSMOS Data Manager Service 2 namespace: http://cmdbf.org/schema/1-0-0/query EPR: http://localhost:8080/axis2/services/SmlMdrQueryService Description: SML MDR Query Service Data manager name: Storage Repository Hostname of data manager: localhost Description: Examplar Mdr that uses Aperi derby database as its schema Id of data manager: http://www.eclipse.org/cosmos/aperimdr/6 SoapNamespace of data manager: http://www.w3.org/2003/05/soap-envelope RecordTypeNamespace of data manager: http://www.eclipse.org/cosmos/aperimdr SecurityNamespace of data manager: http://www.eclipse.org/cosmos/security/basic Service 1 namespace: http://cmdbf.org/schema/1-0-0/query EPR: http://localhost:8080/axis2/services/AperiMdrQueryService Description: Aperi MDR Query Service Service 2 namespace: http://www.eclipse.org/cosmos/datamanager EPR: http://localhost:8080/axis2/services/AperiMdrDataManager Description: COSMOS Data Manager
Deregistering Data Managers from broker
Test Description: deregister StatDataManager
- To Deregister data manager - "StatDataManager" from the broker
- COSMOS> Deregister http://www.eclipse.org/cosmos/stat/1
Expected Result:
- DataManager deregistered.
Test Description: deregister LoggingDataManager
- To Deregister data manager - "LoggingDataManager" from the broker
- COSMOS> Deregister http://www.eclipse.org/cosmos/logging/2
Expected Result:
- DataManager deregistered.
Test Description: deregister TestFederatingCMDB
- To Deregister data manager - "TestFederatingCMDB" from the broker
- COSMOS> Deregister http://www.eclipse.org/cosmos/TestFedCMDB/3
Expected Result:
- DataManager deregistered.
Test Description:deregister ExampleMdr
- To Deregister data manager - "ExampleMdr" from the broker
- COSMOS> Deregister http://www.eclipse.org/cosmos/examplemdr/4
Expected Result:
- DataManager deregistered.
Test Description:deregister SMLMDR
- To Deregister data manager - "SMLMDR" from the broker
- COSMOS> Deregister http://www.eclipse.org/cosmos/smlmdr/5
Expected Result:
- DataManager deregistered.
Test Description:deregister AperiMdr
- To Deregister data manager - "AperiMdr" from the broker
- COSMOS> Deregister http://www.eclipse.org/cosmos/aperimdr/6
Expected Result:
- DataManager deregistered.
Executing CMDBf Queries using graphQuery
Test Description:graphQuery with Security
- To test the basic security feature of COSMOS with graphQuery
- Open cosmosClient interface, <cosmos-demo>/cosmosClient/bin/cosmosClient.bat
- COSMOS> Setsoapversion 1.2
- COSMOS> Setcredentials "test" "test123"
- Execute, GraphQuery http://www.eclipse.org/cosmos/examplemdr/4 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\ExampleMDR\all-students.txt
- Capture above SOAP request message using SOAPMonitor or with any other tool
Expected Result:
- 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>test</sec:username> <sec:password>test123</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:SMLMDR 1
- To invoke graphQuery on SMLMDR
- COSMOS> GraphQuery http://www.eclipse.org/cosmos/smlmdr/5 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\SMLMDR\all-computer-systems.query
Expected Result:
<?xml version="1.0" encoding="UTF-8"?><cmdbf:queryResult xmlns:cmdbf="http://cmdbf.org/schema/1-0-0/datamodel"> <cmdbf:nodes templateId="All_Computer_Systems"> <cmdbf:item> <cmdbf:record> <s:computerSystem xmlns:s="http://www.cosmos.rm/dataCenter" xmlns:sml="http://www.w3.org/2008/09/sml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <s:manufacturer name="Dell"/> <s:processor name="processor"> <s:vendor name="Intel"/> <s:instructionSet label="x86"/> <s:clock multiplier="G" speed="2"/> <s:systemBoardUUID value="DC5678654-ABCD-9876-B023-89506DEB0000"/> </s:processor> <s:ram name="ram"> <s:size amount="2000" multiplier="M"/> </s:ram> <s:disk name="disk"> <s:size amount="120" multiplier="G"/> </s:disk> <s:network> <s:mac address="00:02:55:AA:F5:54"/> <s:ports> <s:port number="8080"/> <s:port number="5000"/> </s:ports> </s:network> <s:os sml:ref="true"> <sml:uri> operating-systems/instance0.xml </sml:uri> </s:os> </s:computerSystem> <cmdbf:recordMetadata> <cmdbf:recordId>C:/cosmos/apache-tomcat-5.5.25/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/computer-systems/instance0.xml</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>http://cosmos.org/rm/sml/repository</cmdbf:mdrId> <cmdbf:localId>C:/cosmos/apache-tomcat-5.5.25/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/computer-systems/instance0.xml</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> <cmdbf:item> <cmdbf:record> <s:computerSystem xmlns:s="http://www.cosmos.rm/dataCenter" xmlns:sml="http://www.w3.org/2008/09/sml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <s:manufacturer name="IBM"/> <s:processor name="processor"> <s:vendor name="AMD"/> <s:instructionSet label="x86"/> <s:clock multiplier="G" speed="3"/> <s:systemBoardUUID value="DCD78A654-1234-FEDC-B023-89506DEBE355"/> </s:processor> <s:ram name="ram"> <s:size amount="3000" multiplier="M"/> </s:ram> <s:disk name="disk"> <s:size amount="500" multiplier="G"/> </s:disk> <s:network> <s:mac address="00:03:77:AA:F6:64"/> <s:ports> <s:port number="2006"/> <s:port number="80"/> </s:ports> </s:network> <s:os sml:ref="true"> <sml:uri> operating-systems/instance1.xml </sml:uri> </s:os> </s:computerSystem> <cmdbf:recordMetadata> <cmdbf:recordId>C:/cosmos/apache-tomcat-5.5.25/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/computer-systems/instance1.xml</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>http://cosmos.org/rm/sml/repository</cmdbf:mdrId> <cmdbf:localId>C:/cosmos/apache-tomcat-5.5.25/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/computer-systems/instance1.xml</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> <cmdbf:item> <cmdbf:record> <s:computerSystem xmlns:s="http://www.cosmos.rm/dataCenter" xmlns:sml="http://www.w3.org/2008/09/sml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <s:manufacturer name="IBM"/> <s:processor name="processor"> <s:vendor name="IBM"/> <s:instructionSet label="p"/> <s:clock multiplier="G" speed="5"/> <s:systemBoardUUID value="DCD78A654-55C3-344E-B023-89506DEBE3E9"/> </s:processor> <s:ram name="ram"> <s:size amount="8000" multiplier="M"/> </s:ram> <s:disk name="disk"> <s:size amount="1" multiplier="T"/> </s:disk> <s:network> <s:mac address="08:82:58:19:10:FF"/> <s:ports> <s:port number="2050"/> <s:port number="2200"/> </s:ports> </s:network> <s:os sml:ref="true"> <sml:uri> operating-systems/instance2.xml </sml:uri> </s:os> </s:computerSystem> <cmdbf:recordMetadata> <cmdbf:recordId>C:/cosmos/apache-tomcat-5.5.25/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/computer-systems/instance2.xml</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>http://cosmos.org/rm/sml/repository</cmdbf:mdrId> <cmdbf:localId>C:/cosmos/apache-tomcat-5.5.25/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/computer-systems/instance2.xml</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> <cmdbf:item> <cmdbf:record> <s:computerSystem xmlns:s="http://www.cosmos.rm/dataCenter" xmlns:sml="http://www.w3.org/2008/09/sml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <s:manufacturer name="IBM"/> <s:processor name="processor"> <s:vendor name="IBM"/> <s:instructionSet label="z"/> <s:clock multiplier="G" speed="8"/> <s:systemBoardUUID value="D5D78A654-55C3-344E-B023-89506DEBE377"/> </s:processor> <s:ram name="ram"> <s:size amount="48" multiplier="G"/> </s:ram> <s:disk name="disk"> <s:size amount="5" multiplier="T"/> </s:disk> <s:network> <s:mac address="35:63:13:90:12:DE"/> <s:ports> <s:port number="6023"/> <s:port number="5236"/> </s:ports> </s:network> <s:os sml:ref="true"> <sml:uri> operating-systems/instance3.xml </sml:uri> </s:os> </s:computerSystem> <cmdbf:recordMetadata> <cmdbf:recordId>C:/cosmos/apache-tomcat-5.5.25/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/computer-systems/instance3.xml</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>http://cosmos.org/rm/sml/repository</cmdbf:mdrId> <cmdbf:localId>C:/cosmos/apache-tomcat-5.5.25/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/computer-systems/instance3.xml</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> </cmdbf:nodes> </cmdbf:queryResult>
Test Description:SMLMDR 2
- To invoke graphQuery on SMLMDR
- COSMOS> GraphQuery http://www.eclipse.org/cosmos/smlmdr/5 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\SMLMDR\all-operating-systems.query
Expected Result:
<?xml version="1.0" encoding="UTF-8"?><cmdbf:queryResult xmlns:cmdbf="http://cmdbf.org/schema/1-0-0/datamodel"> <cmdbf:nodes templateId="All_Computer_Systems"> <cmdbf:item> <cmdbf:record> <os:operatingSystem xmlns:os="http://www.cosmos.rm/dataCenter" xmlns:sml="http://www.w3.org/2008/09/sml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <os:brand> <os:name>Microsoft Windows 2000</os:name> <os:version>1.2.3.4.5</os:version> </os:brand> <os:kernel> <os:architecture>x86</os:architecture> <os:version>M256.00</os:version> </os:kernel> <os:virtualMemory> <os:size amount="2" multiplier="G"/> </os:virtualMemory> </os:operatingSystem> <cmdbf:recordMetadata> <cmdbf:recordId>C:/cosmos/apache-tomcat-5.5.25/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/operating-systems/instance0.xml</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>http://cosmos.org/rm/sml/repository</cmdbf:mdrId> <cmdbf:localId>C:/cosmos/apache-tomcat-5.5.25/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/operating-systems/instance0.xml</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> <cmdbf:item> <cmdbf:record> <os:operatingSystem xmlns:os="http://www.cosmos.rm/dataCenter" xmlns:sml="http://www.w3.org/2008/09/sml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <os:brand> <os:name>Microsoft Windows 2000</os:name> <os:version>5.2.3.4.5</os:version> </os:brand> <os:kernel> <os:architecture>x86</os:architecture> <os:version>M24.00</os:version> </os:kernel> <os:virtualMemory> <os:size amount="3" multiplier="G"/> </os:virtualMemory> </os:operatingSystem> <cmdbf:recordMetadata> <cmdbf:recordId>C:/cosmos/apache-tomcat-5.5.25/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/operating-systems/instance1.xml</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>http://cosmos.org/rm/sml/repository</cmdbf:mdrId> <cmdbf:localId>C:/cosmos/apache-tomcat-5.5.25/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/operating-systems/instance1.xml</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> <cmdbf:item> <cmdbf:record> <os:operatingSystem xmlns:os="http://www.cosmos.rm/dataCenter" xmlns:sml="http://www.w3.org/2008/09/sml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <os:brand> <os:name>Linux</os:name> <os:version>SUSE 10.2</os:version> </os:brand> <os:kernel> <os:architecture>p</os:architecture> <os:version>35.23.043</os:version> </os:kernel> <os:virtualMemory> <os:size amount="8" multiplier="G"/> </os:virtualMemory> </os:operatingSystem> <cmdbf:recordMetadata> <cmdbf:recordId>C:/cosmos/apache-tomcat-5.5.25/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/operating-systems/instance2.xml</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>http://cosmos.org/rm/sml/repository</cmdbf:mdrId> <cmdbf:localId>C:/cosmos/apache-tomcat-5.5.25/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/operating-systems/instance2.xml</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> <cmdbf:item> <cmdbf:record> <os:operatingSystem xmlns:os="http://www.cosmos.rm/dataCenter" xmlns:sml="http://www.w3.org/2008/09/sml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <os:brand> <os:name>Linux</os:name> <os:version>SUSE 10.1</os:version> </os:brand> <os:kernel> <os:architecture>z</os:architecture> <os:version>Z4.001</os:version> </os:kernel> <os:virtualMemory> <os:size amount="6" multiplier="G"/> </os:virtualMemory> </os:operatingSystem> <cmdbf:recordMetadata> <cmdbf:recordId>C:/cosmos/apache-tomcat-5.5.25/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/operating-systems/instance3.xml</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>http://cosmos.org/rm/sml/repository</cmdbf:mdrId> <cmdbf:localId>C:/cosmos/apache-tomcat-5.5.25/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/operating-systems/instance3.xml</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> </cmdbf:nodes> </cmdbf:queryResult>
Test Description:SMLMDR 3
- To invoke graphQuery on SMLMDR
- COSMOS> GraphQuery http://www.eclipse.org/cosmos/smlmdr/5 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\SMLMDR\instance0-operating-systems.query
Expected Result:
<?xml version="1.0" encoding="UTF-8"?><cmdbf:queryResult xmlns:cmdbf="http://cmdbf.org/schema/1-0-0/datamodel"> <cmdbf:nodes templateId="ComputerSystem_instance0"> <cmdbf:item> <cmdbf:record> <s:computerSystem xmlns:s="http://www.cosmos.rm/dataCenter" xmlns:sml="http://www.w3.org/2008/09/sml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <s:manufacturer name="Dell"/> <s:processor name="processor"> <s:vendor name="Intel"/> <s:instructionSet label="x86"/> <s:clock multiplier="G" speed="2"/> <s:systemBoardUUID value="DC5678654-ABCD-9876-B023-89506DEB0000"/> </s:processor> <s:ram name="ram"> <s:size amount="2000" multiplier="M"/> </s:ram> <s:disk name="disk"> <s:size amount="120" multiplier="G"/> </s:disk> <s:network> <s:mac address="00:02:55:AA:F5:54"/> <s:ports> <s:port number="8080"/> <s:port number="5000"/> </s:ports> </s:network> <s:os sml:ref="true"> <sml:uri> operating-systems/instance0.xml </sml:uri> </s:os> </s:computerSystem> <cmdbf:recordMetadata> <cmdbf:recordId>C:/cosmos/apache-tomcat-5.5.25/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/computer-systems/instance0.xml</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>http://cosmos.org/rm/sml/repository</cmdbf:mdrId> <cmdbf:localId>C:/cosmos/apache-tomcat-5.5.25/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/computer-systems/instance0.xml</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> </cmdbf:nodes> <cmdbf:nodes templateId="Instance0_Operating_System"> <cmdbf:item> <cmdbf:record> <os:operatingSystem xmlns:os="http://www.cosmos.rm/dataCenter" xmlns:sml="http://www.w3.org/2008/09/sml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <os:brand> <os:name>Microsoft Windows 2000</os:name> <os:version>1.2.3.4.5</os:version> </os:brand> <os:kernel> <os:architecture>x86</os:architecture> <os:version>M256.00</os:version> </os:kernel> <os:virtualMemory> <os:size amount="2" multiplier="G"/> </os:virtualMemory> </os:operatingSystem> <cmdbf:recordMetadata> <cmdbf:recordId>C:/cosmos/apache-tomcat-5.5.25/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/operating-systems/instance0.xml</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>http://cosmos.org/rm/sml/repository</cmdbf:mdrId> <cmdbf:localId>C:/cosmos/apache-tomcat-5.5.25/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/operating-systems/instance0.xml</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> </cmdbf:nodes> <cmdbf:edges templateId="Instance0_Relationships"> <cmdbf:relationship> <cmdbf:source> <cmdbf:mdrId>http://cosmos.org/rm/sml/repository</cmdbf:mdrId> <cmdbf:localId>C:/cosmos/apache-tomcat-5.5.25/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/computer-systems/instance0.xml</cmdbf:localId> </cmdbf:source> <cmdbf:target> <cmdbf:mdrId>http://cosmos.org/rm/sml/repository</cmdbf:mdrId> <cmdbf:localId>C:/cosmos/apache-tomcat-5.5.25/webapps/axis2/WEB-INF/services/SMLMDR/sml-repository/operating-systems/instance0.xml</cmdbf:localId> </cmdbf:target> <cmdbf:instanceId> <cmdbf:mdrId>http://cosmos.org/rm/sml/repository</cmdbf:mdrId> <cmdbf:localId>instance0.xml/instance0.xml</cmdbf:localId> </cmdbf:instanceId> </cmdbf:relationship> </cmdbf:edges> </cmdbf:queryResult>
Test Description:ExampleMdr 1
- To invoke graphQuery on ExampleMdr
- COSMOS> GraphQuery http://www.eclipse.org/cosmos/examplemdr/4 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\ExampleMDR\all-students.txt
Expected Result:
<?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://student"> <student> <identity email="mlee332@yahoo.com" firstName="Mike" id="Student03" lastName="Lee" phoneNo="516-225-62626"/> </student> <cmdbf:recordMetadata> <cmdbf:recordId>Record for Mike Lee</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>Student03</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> <cmdbf:item> <cmdbf:record xmlns="http://student"> <student> <identity email="jane32@foo.com" firstName="Jane" id="Student02" lastName="Ryerson" phoneNo="832-398-2986"/> </student> <cmdbf:recordMetadata> <cmdbf:recordId>Record for Jane Ryerson</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>Student02</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> <cmdbf:item> <cmdbf:record xmlns="http://student"> <student> <identity email="bdavidson2@gmail.com" firstName="Bob" id="Student01" lastName="Davidson" phoneNo="416-223-6226"/> </student> <cmdbf:recordMetadata> <cmdbf:recordId>Record for Bob Davidson</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>Student01</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> </cmdbf:nodes> </cmdbf:queryResult>
Test Description:ExampleMdr 2
- To invoke graphQuery on ExampleMdr
- COSMOS> GraphQuery http://www.eclipse.org/cosmos/examplemdr/4 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\ExampleMDR\all-teachers.txt
Expected Result:
<?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://teacher"> <teacher> <identity email="hreeba2@hotmail.com" firstName="Heather" id="Staff02" lastName="Reeba" phoneNo="522-335-6821"/> </teacher> <cmdbf:recordMetadata> <cmdbf:recordId>Record for Heather Reeba</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://teacher"> <teacher> <identity email="dJohn32@gmail.com" firstName="Dawn" id="Staff01" lastName="Johnson" phoneNo="532-523-6266"/> </teacher> <cmdbf:recordMetadata> <cmdbf:recordId>Record for Dawn Johnson</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
- COSMOS> GraphQuery http://www.eclipse.org/cosmos/examplemdr/4 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\ExampleMDR\relationship-all-classes.txt
Expected Result:
<?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://student"> <student> <identity email="mlee332@yahoo.com" firstName="Mike" id="Student03" lastName="Lee" phoneNo="516-225-62626"/> </student> <cmdbf:recordMetadata> <cmdbf:recordId>Record for Mike Lee</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>Student03</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> <cmdbf:item> <cmdbf:record xmlns="http://student"> <student> <identity email="jane32@foo.com" firstName="Jane" id="Student02" lastName="Ryerson" phoneNo="832-398-2986"/> </student> <cmdbf:recordMetadata> <cmdbf:recordId>Record for Jane Ryerson</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>Student02</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> <cmdbf:item> <cmdbf:record xmlns="http://student"> <student> <identity email="bdavidson2@gmail.com" firstName="Bob" id="Student01" lastName="Davidson" phoneNo="416-223-6226"/> </student> <cmdbf:recordMetadata> <cmdbf:recordId>Record for Bob Davidson</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>Student01</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> <cmdbf:item> <cmdbf:record xmlns="http://teacher"> <teacher> <identity email="hreeba2@hotmail.com" firstName="Heather" id="Staff02" lastName="Reeba" phoneNo="522-335-6821"/> </teacher> <cmdbf:recordMetadata> <cmdbf:recordId>Record for Heather Reeba</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://teacher"> <teacher> <identity email="dJohn32@gmail.com" firstName="Dawn" id="Staff01" lastName="Johnson" phoneNo="532-523-6266"/> </teacher> <cmdbf:recordMetadata> <cmdbf:recordId>Record for Dawn Johnson</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>Student03</cmdbf:localId> </cmdbf:target> <cmdbf:record xmlns="http://class"> <class courseCode="PHY01" description="Background of quantum physics. Quantization, waves and particles. The uncertainty principle. The Schroedinger equation and postulates of quantum mechanics. Bound states in square wells. The harmonic oscillator. Transmission through barriers. Introduction to three-dimensional systems: rigid rotor and the hydrogen atom. Introduction to approximation methods for more complicated systems." name="Physics"> <students> <enrolledStudent idRef="Student02"/> <enrolledStudent idRef="Student03"/> </students> <teacher idRef="Staff02"/> </class> <cmdbf:recordMetadata> <cmdbf:recordId>Record for Physics</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>Staff02/Student03/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>Student02</cmdbf:localId> </cmdbf:target> <cmdbf:record xmlns="http://class"> <class courseCode="MAT01" description="An introduction to applications of calculus in business, the behavioural sciences, and the social sciences. The models studied will involve polynomial, rational, exponential and logarithmic functions. The major concepts introduced to solve problems are rate of change, optimization, growth and decay, and integration." name="Mathematics"> <students> <enrolledStudent idRef="Student01"/> <enrolledStudent idRef="Student02"/> </students> <teacher idRef="Staff02"/> </class> <cmdbf:recordMetadata> <cmdbf:recordId>Record for Mathematics</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>Staff02/Student02/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>Student02</cmdbf:localId> </cmdbf:target> <cmdbf:record xmlns="http://class"> <class courseCode="PHY01" description="Background of quantum physics. Quantization, waves and particles. The uncertainty principle. The Schroedinger equation and postulates of quantum mechanics. Bound states in square wells. The harmonic oscillator. Transmission through barriers. Introduction to three-dimensional systems: rigid rotor and the hydrogen atom. Introduction to approximation methods for more complicated systems." name="Physics"> <students> <enrolledStudent idRef="Student02"/> <enrolledStudent idRef="Student03"/> </students> <teacher idRef="Staff02"/> </class> <cmdbf:recordMetadata> <cmdbf:recordId>Record for Physics</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>Staff02/Student02/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>Student01</cmdbf:localId> </cmdbf:target> <cmdbf:record xmlns="http://class"> <class courseCode="MAT01" description="An introduction to applications of calculus in business, the behavioural sciences, and the social sciences. The models studied will involve polynomial, rational, exponential and logarithmic functions. The major concepts introduced to solve problems are rate of change, optimization, growth and decay, and integration." name="Mathematics"> <students> <enrolledStudent idRef="Student01"/> <enrolledStudent idRef="Student02"/> </students> <teacher idRef="Staff02"/> </class> <cmdbf:recordMetadata> <cmdbf:recordId>Record for Mathematics</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>Staff02/Student01/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>Student03</cmdbf:localId> </cmdbf:target> <cmdbf:record xmlns="http://class"> <class courseCode="ECM01" description="This course provides an introduction to microeconomic analysis relevant for understanding the Canadian economy. The behaviour of individual consumers and producers, the determination of market prices for commodities and resources, and the role of government policy in the functioning of the market system are the main topics covered." name="Economics"> <students> <enrolledStudent idRef="Student01"/> <enrolledStudent idRef="Student03"/> </students> <teacher idRef="Staff01"/> </class> <cmdbf:recordMetadata> <cmdbf:recordId>Record for Economics</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>Staff01/Student03/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>Student01</cmdbf:localId> </cmdbf:target> <cmdbf:record xmlns="http://class"> <class courseCode="ECM01" description="This course provides an introduction to microeconomic analysis relevant for understanding the Canadian economy. The behaviour of individual consumers and producers, the determination of market prices for commodities and resources, and the role of government policy in the functioning of the market system are the main topics covered." name="Economics"> <students> <enrolledStudent idRef="Student01"/> <enrolledStudent idRef="Student03"/> </students> <teacher idRef="Staff01"/> </class> <cmdbf:recordMetadata> <cmdbf:recordId>Record for Economics</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>Staff01/Student01/ECM01</cmdbf:localId> </cmdbf:instanceId> </cmdbf:relationship> </cmdbf:edges> </cmdbf:queryResult>
Test Description:ExampleMdr 4
- To invoke graphQuery on ExampleMdr
- COSMOS> GraphQuery http://www.eclipse.org/cosmos/examplemdr/4 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\ExampleMDR\teaches-relationship.txt
Expected Result:
<?xml version="1.0" encoding="UTF-8"?><cmdbf:queryResult xmlns:cmdbf="http://cmdbf.org/schema/1-0-0/datamodel"> <cmdbf:nodes templateId="students"> <cmdbf:item> <cmdbf:record xmlns="http://student"> <student> <identity email="mlee332@yahoo.com" firstName="Mike" id="Student03" lastName="Lee" phoneNo="516-225-62626"/> </student> <cmdbf:recordMetadata> <cmdbf:recordId>Record for Mike Lee</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>Student03</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> <cmdbf:item> <cmdbf:record xmlns="http://student"> <student> <identity email="jane32@foo.com" firstName="Jane" id="Student02" lastName="Ryerson" phoneNo="832-398-2986"/> </student> <cmdbf:recordMetadata> <cmdbf:recordId>Record for Jane Ryerson</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>Student02</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> <cmdbf:item> <cmdbf:record xmlns="http://student"> <student> <identity email="bdavidson2@gmail.com" firstName="Bob" id="Student01" lastName="Davidson" phoneNo="416-223-6226"/> </student> <cmdbf:recordMetadata> <cmdbf:recordId>Record for Bob Davidson</cmdbf:recordId> </cmdbf:recordMetadata> </cmdbf:record> <cmdbf:instanceId> <cmdbf:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository</cmdbf:mdrId> <cmdbf:localId>Student01</cmdbf:localId> </cmdbf:instanceId> </cmdbf:item> </cmdbf:nodes> </cmdbf:queryResult>
Test Description:AperiMdr 1
- To invoke graphQuery on AperiMdr
- GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_all.xml
Expected Result:
- Should display appropriate Query result.
- As result file is too long,ommitted here.
Test Description:AperiMdr 2
- To invoke graphQuery on AperiMdr
- GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_all_items.xml
Expected Result:
- Should display appropriate Query result.
- As result file is too long,ommitted here.
Test Description:AperiMdr 3
- To invoke graphQuery on AperiMdr
- GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_disk.xml
Expected Result:
- Should display appropriate Query result.
- As result file is too long,ommitted here.
Test Description:AperiMdr 4
- To invoke graphQuery on AperiMdr
- GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_hostport.xml
Expected Result:
- Should display appropriate Query result.
- As result file is too long,ommitted here.
Test Description:AperiMdr 5
- To invoke graphQuery on AperiMdr
- GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_inst_system.xml
Expected Result:
- Should display appropriate Query result.
- As result file is too long,ommitted here.
Test Description:AperiMdr 6
- To invoke graphQuery on AperiMdr
- GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_pool.xml
Expected Result:
- Should display appropriate Query result.
- As result file is too long,ommitted here.
Test Description:AperiMdr 7
- To invoke graphQuery on AperiMdr
- GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_pool_volume_all.xml
Expected Result:
- Should display appropriate Query result.
- As result file is too long,ommitted here.
Test Description:AperiMdr 8
- To invoke graphQuery on AperiMdr
- GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_pool_volume_constr.xml
Expected Result:
- Should display appropriate Query result.
- As result file is too long,ommitted here.
Test Description:AperiMdr 9
- To invoke graphQuery on AperiMdr
- GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_system_disk_all.xml
Expected Result:
- Should display appropriate Query result.
- As result file is too long,ommitted here.
Test Description:AperiMdr 10
- To invoke graphQuery on AperiMdr
- GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_system_disk_constr.xml
Expected Result:
- Should display appropriate Query result.
- As result file is too long,ommitted here.
Test Description:AperiMdr 11
- To invoke graphQuery on AperiMdr
- GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_system_hostport_all.xml
Expected Result:
- Should display appropriate Query result.
- As result file is too long,ommitted here.
Test Description:AperiMdr 12
- To invoke graphQuery on AperiMdr
- GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_system_hostport_constr.xml
Expected Result:
- Should display appropriate Query result.
- As result file is too long,ommitted here.
Test Description:AperiMdr 13
- To invoke graphQuery on AperiMdr
- GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_system_pool_prop.xml
Expected Result:
- Should display appropriate Query result.
- As result file is too long,ommitted here.
Test Description:AperiMdr 14
- To invoke graphQuery on AperiMdr
- GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_system_pools_all.xml
Expected Result:
- Should display appropriate Query result.
- As result file is too long,ommitted here.
Test Description:AperiMdr 15
- To invoke graphQuery on AperiMdr
- GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_system_pools_constr.xml
Expected Result:
- Should display appropriate Query result.
- As result file is too long,ommitted here.
Test Description:AperiMdr 16
- To invoke graphQuery on AperiMdr
- GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_system_volume_all.xml
Expected Result:
- Should display appropriate Query result.
- As result file is too long,ommitted here.
Test Description:AperiMdr 17
- To invoke graphQuery on AperiMdr
- GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_rel_system_volume_constr.xml
Expected Result:
- Should display appropriate Query result.
- As result file is too long,ommitted here.
Test Description:AperiMdr 18
- To invoke graphQuery on AperiMdr
- GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_system.xml
Expected Result:
- Should display appropriate Query result.
- As result file is too long,ommitted here.
Test Description:AperiMdr 19
- To invoke graphQuery on AperiMdr
- GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_system_constr.xml
Expected Result:
- Should display appropriate Query result.
- As result file is too long,ommitted here.
Test Description:AperiMdr 20
- To invoke graphQuery on AperiMdr
- GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_system_inst_prop.xml
Expected Result:
- Should display appropriate Query result.
- As result file is too long,ommitted here.
Test Description:AperiMdr 21
- To invoke graphQuery on AperiMdr
- GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_system_like.xml
Expected Result:
- Should display appropriate Query result.
- As result file is too long,ommitted here.
Test Description:AperiMdr 22
- To invoke graphQuery on AperiMdr
- GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\Aperi\query_volume.xml
Expected Result:
- Should display appropriate Query result.
- As result file is too long,ommitted here.
Broker EPR
Test Description:Broker epr print
- To display current broker EPR
- COSMOS> PrintBrokerEPR
Expected Result:
COSMOS> PrintBrokerEPR The current Broker EPR being used is http://localhost:8080/axis2/services/Broker
Test Description:Broker epr change
- To change current broker EPR
- COSMOS> ChangeBrokerEPR http://localhost:8090/axis2/services/Broker
- COSMOS> PrintBrokerEPR
Expected Result:
COSMOS> PrintBrokerEPR The current Broker EPR being used is http://localhost:8080/axis2/services/Broke r COSMOS> ChangeBrokerEPR http://localhost:8090/axis2/services/Broker Ok COSMOS> PrintBrokerEPR The current Broker EPR being used is http://localhost:8090/axis2/services/Broker
Test Description: display current client settings
- To display current broker settings
- Start COSMOS Command line client with default broker,
- COSMOS> Settings
Expected Result:
COSMOS> Settings Settings: brokerEPR: http://localhost:8090/axis2/services/Broker serviceFinderEPR: http://localhost:8080/axis2/services/CosmosServiceFinder serviceNamespace: null username: "test" password: "test123" soapVersion: 1.2
Test Description: GetSoapVersion for DataManager
- To display SoapVersion for a given Data Manager
- Start COSMOS Command line client with default broker,
- COSMOS> GetSoapVersion http://www.eclipse.org/cosmos/examplemdr/4
Expected Result:
COSMOS> GetSoapVersion http://www.eclipse.org/cosmos/examplemdr/4 SoapVersion: 1.2
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
- 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
- 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.
- Expand the ""Monitoring Data Repository" node. 2 child nodes should be added to the "Monitoring Data Repository" node
- 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.
- 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
- There should not be any exception that is thrown when expanding the nodes. Icons should be associated with all the nodes in the tree
- 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
- Right click the "Resource Repository" node in the Data Managers pane. A pop-up menu should show up with a menu item called "Create query"
- Select the "Submit query" menu item.
- A dialog box allow you to enter a XML CMDBf query. Type the following xml into the text area:
<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>
- Click Submit.
- A "CBMDB Query" node showing the date the query was submited should be added to hte "Resource Repository" node.
- Click on the "CMDBf Query" node. The "Details" pane should show the graph response view
- The view is made up of 3 sections. The "Nodes and Edges" section should contain a table with 1 row. The Source column should be populated with cableTemplate:D:/development/apache-tomcat-5.5.25/webapps/smlmdr/sml-repository/Cable1.xml
- Click on the cell in the first row and first column of the table
- The "Records" section of the view should show the templateD, MDRId and localId attributes. The templateId is set to calbeTemplate, the MDRId is set to http://cosmos.org/rm/sml/repository and the localId is set to
D:/development/apache-tomcat-5.5.25/webapps/smlmdr/sml-repository/Cable1.xml
- The table in the "Records" section shows 1 row that has a plus icon.
- Click on the plus icon to expand the row.
- The contents of the expanded row should be:
<s:cable name="0001" xmlns:conn="connection" xmlns:ft="facetModel"\n xmlns:it="http://www.cosmos.rm/dataCenter/core"\n xmlns:pm="propertyModel" xmlns:s="cable"\n 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"])\n </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"])\n </sml:uri> </conn:target> </conn:connection> </it:properties> </it:facet> </it:facets></s:cable>
- The "Additoinal Record Types" is the thrid section of the view. This section should have a table with a "NameSpace" and "LocalName" column. The table should not contain any rows.
Expected Result
- There should not be any exception that is thrown when expanding the nodes.
- complete the steps for the "navigate 2" test case.
- In the "Data Managers" pane click on the "Sample Repository with Query" node.
- The "Properties" pane should show a properties of that node
- the properties pane should reveil the following text:
epr: http://localhost:8080/axis2/services/ExampleMdrDataManager Example resid: Example Expected Result:
- You should be able to view all the properies for a particular tree node.
Test Description:Visualize Log Report
- complete the steps for the "navigate" test case.
- In the "Data Managers" select the ""Logging Data Repository">windows_app_log.cbe.xml" node.
- The "Properties" pane should show a table with two properties (epr and logfile). The epr should be the epr address of the CBE MDR and the log file is the name of the log file.
- Right click the "winodws_app_log.cbe.xml" node. A "Top 10 Report" menu item should show up
- Select this menu item.
Expected Result:
- The details pane should render the Top 10 report.
Test Description:Visualize Stat Report
- complete the steps for the "navigate" test case.
- In the "Data Managers" select the "StatDataManager">server 33 tomcat1181829221515" node.
- The "Properties" pane should just show a table with 3 property values(epr, datasource and keyset). The epr is the epr address of the Statistical MDR and the datasource should be server 33 tomcat1181829221515. The keyset may be CBE or TomcatSet
- Right click the "server 33 tomcat1181829221515" node. A "Statistical Report" menu item should show up
- Select this menu item.
Expected Result:
- The detail pane should show the stat report
Test Description:Properties 2
- complete the steps for the "navigate" test case.
- Select the Example MDR. The properties pane should show the resid of the Data Manager and the epr of the Data Manager.
- Repeat step 2 for the "Monitoring Data Repository", "Logging Data Repository" and "Resource Repsiotry" and "Sample Repository with Registration" nodes
Expected Result:
- You should be able to view all the properies for a particular Data Manager.
Test Description:Example CMDBf query
- Complete the "Installatoin" 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
- Right click the "Sample Repository with Query" node in the Data Managers pane. A pop-up menu should show up with a menu item called "Submit Query..."
- Select the "Submit Query..." menu item.
- A Dialog box should be shown with three sections. The Dialog box should have a title and a description. The top level pane should show a tree with one node that has a value of 'query'
- Right click the node and select 'Add item'
- Another dialog box should appear to enter the item template id. Enter 'items' in the text box and click OK.
- The top tree should add an 'items' node under the 'query' node. In addition the bottom left pane should contain a tree with one node that is named 'itemTemplate'
- Right click the 'itemTemplate' node in the bottom left pane and select 'add contentSelector'
- The bottom right pane should present a table with the attributes of the contentSelector node. That is it should should matchRecords in the attribute columns and true in the Value column.
- Right click the itemTemplate node again and make sure that the 'add conentSelector' option is not shown in the menu. This option should only be shown if there are no contentSelector nodes udner the 'itemTemplate.
- Delete the contentSelector node by right clicking the 'contentSeletor' node and select the 'delete contentSelector'. The bottom left tree should now only have 1 root node named 'itemTemplate'. Also, the bottom left pane should be cleared and show a blank pane.
- Right click the itemTemplate node and select 'add RecordConstraint'. This should add a 'recordConstraint' node under the 'itemTemplate' node in the bottom left pane.
- Right click the recordConstraint node and select 'add recordType. This should add a 'recordType' node under the recordConstraintNode' node in the bottom left pane. The bottom right pane should show a table with namespace and localName.
- In the table click the table cell next to the namespace cell and under the Value cell. This should allow you to select "http://schemas.examplemdr.org/schema/ExampleMDR" from the drop down box.
- In the table click the table cell next to the localName cell and under the Value cell. This should allow you to select "student" from the drop down box. The drop down box should have 3 entries ("students", "teachers" and "class")
- Click on the 'Preview XML' button on the bottom of the page. This should show the following xml in the preview tooltip pane.
<?xml version="1.0" encoding="UTF-8"?> <s:query xmlns:s="http://cmdbf.org/schema/1-0-0/datamodel"> <s:itemTemplate id="items" suppressFromResult="false" > <s:recordConstraint > <s:recordType namespace="http://schemas.examplemdr.org/schema/ExampleMDR" localName="student" > </s:recordType> </s:recordConstraint> </s:itemTemplate> </s:query>
- Click on the 'Preview XML' button again to remove the tooltip pane.
- Click Submit.
- A "CBMDB Query" node showing the date the query was submited should be added to the "Sample Repository with Query" node.
- Click on the "CMDBf Query" node. The "Details" pane should show the graph view of the query result.
- In the Details pane the "Nodes and Edgets" section contains a table with three rows. Only the Source column is populated. The Source column should have "items:03", "items:02" and "items:01" cell values.
- Click on the "items:03" cell. The Records section should show the following information:
templateID: items MDRId: org.eclipse.cosmos.samples.cmdbf.XMLRepository localId: 03
- In the Details table click on the plus line to expand the row. The contents of the expand row should be:
<xml> <student> <identity firstName="Mike" id="03" lastName="Lee"/> </student> </xml>
- The "Additoinal Record Types" is the thrid section of the view. This section should have a table with a "NameSpace" and "LocalName" column. The table should not contain any rows.
Expected Result
- There should not be any exception that is thrown when expanding the nodes.
Test Description:Multiple Graph Response Viewers
- Download and install from the COSMOS downloads page the latest Data Reporting Web Application.
- Go to the test page at : http://localhost:8080/COSMOSUITests/?page=graphResponseViewer
- Three Graph Response Viewer Widgets should be displayed
- check there is a Combo Box for all 3 Graph Response Viewers
- check there is a Nodes and Edges Grid for all 3 Graph Response Viewers
- check there is a Records Grid for all 3 Graph Response Viewers
- check there is an Additional Record Types Grid for all 3 Graph Response Viewers
- check that all 3 combo boxes have 4 entries in them :
All Node: teacher Node: student Edge: reference
- check that all 3 Nodes and Edges Grids have the following 5 rows :
Row 1 should just contain a Source cell with Value : teacher:staff01 Row 2 should just contain a Source cell with Value : students:03 Row 3 should just contain a Source cell with Value : students:01 Row 4 should just contain a Source cell with Value : teacher:staff01 Edge cell with Value : reference Target cell with Value : student:03 Row 5 should just contain a Source cell with Value : teacher:staff01 Edge cell with Value : reference Target cell with Value : student:01
- On each of the three Nodes and Edges Grids, click on the cell at row 4 cell 2 (the edge) with
a value "reference"
- for each
- check the ART pane title is hown without the grid (the pane container has a title that can be toggled so that the contents beneath it are not displayed)
- check that the green circle icon with a white + is shown underneath the Detail label
- Check that the Record Id is shown:
ECM01:SomeLongWordsAndSomeNumbers/12345678/09876/AndHereIsSomeMore/AndSoonThisWillFinsih/TestingTesting/OneTwoThreegone!
- check that when you hover the mouse over the recordid that a hint bubble is displayed and that the hint bubble displays the full recordid that is split on the 30th character.
- click on the green circle icon with a white + and make sure the popup dialog is dispalyed with the title the same as the recordid, and the xml is didpslayed
- click OK, and check that the xml is shown in the detail area in the grid.
- On each of the three Nodes and Edges Grids, click on the cell at row 5 (FIVE) cell 2 (the edge) with a value "reference"
- for each
- check the ART GRID expands and contains :
Testing 1 2 3 Testing LocalName
- for each
- in the Nodes and Edges grid, click on a blank cell (click on a cell that has no text in it)
- check that the ART grid gets hidden (it gets hidden as yo know you do not hva ART data for a blank node/edge)
- once again... click on the cell at row 5 (FIVE) cell 2 (the edge) with
a value "reference"
- click on row 5 cell 3 (students:01) This is to test that if you have ART data for one and you switch to a new cell that has ART data, that you see the new ART data.
- check that the ART Grid shows 1 row :
Seems to work Yes it Does
Test Description:Registration Example
- Complete the "Installatoin" 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
- 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
- A list of configuration items will be displayed showing status results. All the configuration items should be accepted.
- Expand the "Sample Repository with Registration" node in the navigation tree.
- Select the "All items and Relationship" node. The graph viewer should be shown in the details pane with a list of configured items.
Test Description:Deregistration Example
- Complete the "Registration example" Test case. This should be the previous test case in this test suite.
- 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
- A list of configuration items will be displayed showing status results. All the configuration items should be accepted.
- Expand the "Sample Repository with Registration" node in the navigation tree.
- Right click the "All items and Relationship" node and select "Refresh" from the pop-up menu.
Expected Result:
- The graph viewer should be shown in the details pane that shows no configuration items.
Test Description:Partial Registration
- Complete the "Installatoin" 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
- Right click on the "Resource Repository" and select "Submit query..."
- Paste a query from the cosmos-demo\cosmos-client\cmdbfQuery\SMLMDR directory and press "Submit"
- Right-click on the new query node in the navigator tree
- Select "Register Configuration Items..." on the popup menu
- In the "Register Configuration Items" window, select at least one node or edge
- Select the "Registration Example" CMDBf
- Press the "Register" button
Expected Result:
- A list of configuration items will be displayed showing status results
Test Description:Partial Deregistration
- Follow the instructions at http://wiki.eclipse.org/COSMOS_DEMO_i14
- Right click on the "Resource Repository" and select "Submit query..."
- Paste a query from the cosmos-demo\cosmos-client\cmdbfQuery\SMLMDR directory and press "Submit"
- Right-click on the new query node in the navigator tree
- Select "Deregister Configuration Items..." on the popup menu
- In the "Deregister Configuration Items" window, select at least one node or edge
- Select the "Registration Example" CMDBf
- Press the "Deregister" button
Expected Result:
- A list of configuration items will be displayed showing status results
Test Description:Creating Named Query
- Rerun the "example cmdbf query" test case. However, this time enter "My Query" in the "Query Name:" text field.
Expected Result:
- A node should be created named "My Query" under the "Sample Repository with Query" node in the navigation tree.
- There should not be any exception that is thrown when expanding the nodes.
Test Description:Rename Query
- Run the "Creating a named query" test case.
- Right click the "My Query" node in the navigation tree and select the "Rename Query" option.
- Enter "MyNew Query" in the "Query Name:" text box and click "Ok"
- The node should change from "My Query" to "My New Query".
- Right click the "My New Query" node in the navigation tree and select the "Rename Query" option.
- Enter "My Name Changed" in the "Query Name:" text box and click "Cancel"
- The node name should not change.
Expected Result:
- There should not be any exception that is thrown when expanding the nodes.
Test Description:Creating Query Folder
- Right click the "Sample Repository with Query" node in the Data Managers pane. Select the "New Folder..." menu option.
- This will bring up a dialog box. Enter "MyFolder" in the text box and click "Ok".
- A node containing a folder icon should show up under the "Sample Repository with Query" node.
- Repeat steps 1- 2 but this time click "Cancel".
- Make sure that no node is added under the "Sample Repository with Query" node.
Expected Result
- There should not be any exception that is thrown when expanding the nodes.
Test Description:Rename Folder
- Run the "Creating a query folder" test case.
- Right click the "MyFolder" node in the navigation tree and select the "Rename Query" option.
- Enter "MyNew Folder" in the "Query Name:" text box and click "Ok"
- The node should change from "MyFolder" to "MyNew Folder".
- Right click the "MyNew Folder" node in the navigation tree and select the "Rename Query" option.
- Enter "My Folder Changed" in the "Query Name:" text box and click "Cancel"
- The node name should not change.
Expected Result:
- There should not be any exception that is thrown when expanding the nodes.
Test Description:Enter Security Info
- Right click the "Sample Repository with Query" node in the Data Managers pane. Select the Properties..." menu option.
- Enter a username and password value in the dialog box. Select Soap Version 1.2 from the drop down box and click "Ok".
- Run "example cmdbf query" test case. Make sure there are no errors.
- Expand the "Sample Repository with Query" node and click on the "Get All Students" node. Make sure there are no erros.
- Expand the "Sample Repository with Query" node and click on the "Get All Teachers" node. Make sure there are no erros.
- Expand the "Sample Repository with Query" node and click on the "Get All Classes" node. Make sure there are no erros.
Expected Result
- There should not be any exception that is thrown when expanding the nodes.
Test Description:Save Queries
- Edit apache-tomcat-5.5.25\webapps\COSMOSUI\config\configuration.properties
- Set RSPONSE_HISTORY_LIMIT=5 and QUERY_SAVE= true as shown as follows:
# @name Response History Limit # @description The graph response history limit size. (-1 signifies unlimited) RESPONSE_HISTORY_LIMIT=5 # @name Auto Save Queries # @description A flag that determines if the queries should be automatically saved on the server machine. QUERY_SAVE=true
- Restart tomcat.
- Rerun "Create a named query", "Rename a query", "Create a query folder", "Rename a folder"
- Open a new browser window and point to http://localhost:8080/COSMOSUI/
- The queries that were created and renamed should show up in the view.
Expected Result:
- There should not be any exception that is thrown when expanding the nodes.
using 'Submit Query as Text'
- Right click on the Sample Repository with Query
- Choose 'Submit Query as Text'
- In the dialog box that comes up cut and paste the following query
<?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>
- Click 'Submit' button
Expected Result:
- You should get an entry in the response tree just below 'Staff02' labeled CMDBf Query <timestamp> ...
clicking on this response should yield the same behaviour in the details pane as clicking on 'Get All Students'
Query Properies
- Expand the "Sample Repository with Query" node and click the "Get All Students" node.
- The bottom right section of the page should show the following query document:
Expected Result:
<?xml version="1.0" encoding="UTF-8"?> <!-- This query selects all students taught by the teacher with --> <!-- the id: "staff01" --> <s:query xmlns:s="http://cmdbf.org/schema/1-0-0/datamodel"> <s:itemTemplate id="teacher"> <s:instanceIdConstraint> <s:instanceId> <s:mdrId>org.eclipse.cosmos.samples.cmdbf.XMLRepository </s:mdrId> <s:localId>staff02 </s:localId> </s:instanceId> </s:instanceIdConstraint> </s:itemTemplate> <s:itemTemplate id="students"> <s:recordConstraint> <s:recordType namespace="" localName="student"/> </s:recordConstraint> </s:itemTemplate> <s:relationshipTemplate id="reference"> <s:sourceTemplate ref="teacher"/> <s:targetTemplate ref="students"/> </s:relationshipTemplate> </s:query>
Hierarchical Items
- Expand "Sample Repository with Query"
- Select "Get All Classes" query
- Ensure there is an item template displayed along with three children:
ECM01 MAT01 PHY01
Expected Result:
- Select ECM01 and make sure the properties view gets populated with instance ID
- Expand ECM01 and select "Record for ECM01". Make sure the properties view gets populated with the value of the record.
Hierarchical Relationships
- Expand "Sample Repository with Query"
- Expand "Staff 01"
- Select "Students of Staff 01" query
Expected Result:
- Make sure the hierarchical view is populated with the following data:
Pupils_of_Staff01 |_Student03 |_Student01 Teacher_Staff01 |_Staff01 Relationships_of_Staff01 |_Staff01/Student03/ECM01 |_Staff01/Student01/ECM01
Hierarchical Sample Registration
- Register all entries of "Sample Repository with Query" with "Sample Repository with Registration"
- Select the query under "Sample Repository with Registration"
- Make sure three item templates appear:
all-items all-items-in-relationships all-relationships
Expected Result:
- Ensure 3 students, 3 classes, and 2 teachers appear under 'all-items'
- Ensure 3 students, and 2 teachers appear under 'all-items-in-relationships'
- Ensure a total of 6 relationships appear under 'all-relationships'
visualize CMDBf Graph Report
- Complete the steps for the "navigate" test case.
- In the "Data Managers" select the ""Sample Repository with Query>Get All Classes" node.
- Right click the "Get All Classes" node. A "CMDBf Graph Response Report" menu item should show up
- Select this menu item.
- The details pane should render the "CMDBf Graph Reponse Report".
Expected Result:
- The report should contain 3 items that shows entries for Economics, Mathematics and Physics.
- Select the "Record for Economics" link.
- The "Univeristy Course Details" report should be rendered in the page. The report should display the course description.
- Click the "Back" link at the top of the report. This should bring you back to the "CMDBf Graph Reponse Report".
visualize CMDBf Graph Report 2
- Repeat the steps for the "visualize CMDBf Graph Report" test case. Instead select the "Sample Repository with Query>Get All Students" node.
Expected Result:
- The CMDBf Graph Report should show 3 items. Mike Lee, Jane Ryerson, and Bob Davidson.
- Click on the "Record for Mike Lee" link. The Student report should render the student information (Student Id: Student03, Full name: Mike Lee, Email: mlee322@yahoo.com, Phone No: 516-225-62626
- Click the "Back" link. This should go back to the "CMDBf Graph Report"
visualize CMDBf Graph Report 3
- Repeat the steps for the "visualize CMDBf Graph Report" test case. Instead select the "Sample Repository with Query>Get All Teachers" node.
Expected Result:
- The CMDBf Graph Report should show 2 items. Heather Reeba, and Dawn Johnson.
- Click on the "Record for Heather Reeba" link. The Teacher report should render the student information (Teacher Id: Staff02, Full name: Heather Reeba , Email: hreeba2@hotmail.com, Phone No:522-335-6821
- Click the "Back" link. This should go back to the "CMDBf Graph Report"
Data Managers View
Test Description:DataManagers list
- 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.
Full screen mode toolbar button
Test Description:DataManagers list with Full Screen mode
- Open COSMOSUI in IE or Firefox browser, http://localhost:8080/COSMOSUI/?page=cosmos
- Go to Data Managers Pane and look for toolbar buttons - Minimize and Maximize
- On Data Managers pane, Click on Minimize button (V) and make sure Data Managers Pane gets minimized
- On Data Managers pane, Click on Maximize button ([]) and make sure Data Managers Pane gets maximized to full screen mode
- From full screen mode-Details pane, look for Properties and Details Pane, they should be available under minimized mode (left bottom corner)
- From full screen mode-Data Mangers pane, click on restore button to restore Data Managers pane to default view
Expected Result:
- All toolbar buttons - Minimize,Maximize and Restore buttons should function properly in minimizing,maximixing,restoring Data Managers Pane window
Test Description:Details Pane with Full Screen mode
- Open COSMOSUI in IE or Firefox browser, http://localhost:8080/COSMOSUI/?page=cosmos
- Go to Details Pane (Right top corner) and look for toolbar buttons - Minimize and Maximize
- Select "Logging Data Repository" ->access_log.cbe.xml, right click and select "Top 10 Log Report"
- On Details pane, Click on Minimize button (V) and make sure Details Pane gets minimized (Left bottom corner)
- On Details pane, Click on Maximize button ([]) and make sure Details Pane gets maximized to full screen mode with the details of "Top 10 Log Report"
- From full screen mode-Details pane, look for Data Managers and Properties Pane, they should be available under minimized mode (left bottom corner)
- From full screen mode-Details pane, click on restore button to restore Details pane to default view
Expected Result:
- All toolbar buttons - Minimize,Maximize and Restore buttons should function properly in minimizing,maximixing,restoring Details Pane window
Test Description:Properties Pane with Full Screen mode
- Open COSMOSUI in IE or Firefox browser, http://localhost:8080/COSMOSUI/?page=cosmos
- Go to Properties Pane (Right bottom corner) and look for toolbar buttons - Minimize and Maximize
- From Data Managers pane, select "Monitoring Data Repository"
- Go to Properties Pane, Click on Minimize button (V) and make sure Properties Pane gets minimized and is visibile under left bottom corner as minimized icon.
- Go to Properties Pane, Click on Maximize button ([]) and make sure Properties Pane gets maximized to full screen mode with the properties of "Monitoring Data Repository"
- From full screen mode-Properties pane, look for Data Managers and Details Pane, they should be available under minimized mode (left bottom corner)
- From full screen mode - Properties pane, click on restore button to restore Properties pane to default view
Expected Result:
- All toolbar buttons - Minimize,Maximize and Restore buttons should function properly in minimizing,maximixing,restoring Property Pane window
Statistical Data Manager
Test Description:StatDataManager CBE
- Displaying statistical data sources & Generating the statistical data reports
- Expand the "Monitoring Data Repository" node in the Data Managers pane to show a list of recorded statistical data sessions
- select the collected data "server 33 tomcat1181829221515" 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:LogDataManager access_log
- To query the CBE data manager for a list of log files and generate reports on the log data.
- Expand the "Logging Data Repository" 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:LogDataManager windows_app_log
- To query the CBE data manager for a list of log files and generate reports on the log data.
- Expand the "Logging Data Repository" 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:TestFederatingCMDB register
- 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:TestFederatingCMDB deregister
- 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:TestFederatingCMDB Submit Query
- 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:TestFederatingCMDB Metadata
- 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:SMLMDR Submit Query
- 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:SMLMDR MetaData
- To fetch MetaData of SML Repository
- To View MetaData of SML Repository, right click on "Resource Repository" from the "Data Managers" view.
- A pop-up menu should be shown with a "View MetaData" option, Click on it.
Expected Result:
- Should display appropriate MetaData information
Using the Aperi MDR (Storage Repository)
Test Description:AperiMdr Submit Query
- To test AperiMdr Submit Query
- Select "Storage Repository" from the "Data Manager" view.
- Right click and select "Submit Query..."
- Copy/Paste any of the Query data from <cosmos-demo>\cosmos-client\cmdbfQuery\Aperi folder
Expected Result:
- 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
- Select "Storage Repository" from the "Data Manager" view.
- Right click and select "View MetaData"
Expected Result:
- Should display MetaData information for AperiMdr
Example MDR (Sample Repository with Query)
Test Description:ExampleMDR All-Students
- To execute pre-defined Queries
- Expand "Sample Repository with Query" from the "Data Manager" view.
- Click on "Get All Students" query
Expected Result:
- Should display XML Query result with Students data under GraphResponse Viewer
Test Description:ExampleMDR All-Teachers
- To execute pre-defined Queries
- Expand "Sample Repository with Query" from the "Data Manager" view.
- Click on "Get All Teachers" query
Expected Result:
- Should display XML Query result with Teachers data under GraphResponse Viewer
Test Description:ExampleMDR All-Classes
- To execute pre-defined Queries
- Expand "Sample Repository with Query" from the "Data Manager" view.
- Click on "Get All Classes" query
Expected Result:
- Should display XML Query result with Classes data under GraphResponse Viewer
Test Description:ExampleMDR Relationship1
- To execute pre-defined relationship query
- Expand "Sample Repository with Query" from the "Data Manager" view.
- Expand "Staff01" query node
- Click on "All students taught by teacher ..." query
Expected Result:
- Should display XML Query result with students data under teacher id - staff01
Test Description:ExampleMDR Relationship2
- To execute pre-defined relationship query
- Expand "Sample Repository with Query" from the "Data Manager" view.
- Expand "Staff02" query node
- Click on "All students taught by teacher ..." query
Expected Result:
- 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
- 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:ExampleMDR Submit Query as Text
- To submit a CMDBf query to capture 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 as Text" option. Click on this menu option.
- 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:
- 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
- To create a new folder 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 "New Folder" option. Click on this menu option.
- This will prompt for Folder Name, enter Folder Name as "MyFolder" and press Ok
- 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".
- A pop-up menu should be shown with a "Submit Query as Text" option. Click on this menu option.
- 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:
- Should create "MyFolder" under "Sample Repository with Query" and should contain CMDBf query result under this folder.
- 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
- To view Response History,Select and expand "Sample Repository with Query" from the "Data Manager" view.
- Select and expand, newly created folder - "MyFolder"
- Select any of the CMDBf query result and right click on it
- It then shows a popup menu with "Response History...", Select any of the query result and click on it
Expected Result:
- 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
- To rename saved query,select and expand "Sample Repository with Query" from the "Data Manager" view.
- Select and expand newly created folder - "MyFolder"
- Select any of the existing CMDBf query and right click on it
- A popup menu should be shown with "Rename Query", Click on it
- It then prompts for new Query Name, type "MyExampleMdrQuery1" and click on OK
Expected Result:
- Should display new Query name - "MyExampleMdrQuery1" under "MyFolder" of ExampleMdr
- 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
- To refresh/re-execute saved query,select and expand "Sample Repository with Query" from the "Data Manager" view.
- Select and expand newly created folder - "MyFolder"
- Select any of the existing CMDBf query and right click on it
- A popup menu should be shown with "Refresh", Click on it
Expected Result:
- Above selected CMDBf Query should execute and should add it's response history into "Response History..." menu item.
Test Description:ExampleMDR MetaData
- Expand "Sample Repository with Query" from the "Data Manager" view.
- Right Click and select "View MetaData"
Expected Result:
- Should display ExampleMdr Meta-Data Information
Test Description:Setting Security Properties
- To test the basic security feature settings from COSMOS UI
- Expand "Sample Repository with Query" from the "Data Manager" view.
- Right Click and select "Properties..."
- It then popsup Properties dialog box and prompts for Username,Password and Version
- Set the values for Username="user1",Password="pass1" and Version="1.2" and click on OK
- Now,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 as Text" option. Click on this menu option.
- 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:
- 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>
CMDB Graph Response Report
Test Description:CMDB Graph Response Report
- To test CMDB Graph Response Report from COSMOS UI
- Select ExampleMDR->pre-canned queries->visualize CMDBf Graph Report
- Select SMLMDR->pre-canned queries->visualize CMDBf Graph Report
- Select AperiMDR->pre-canned queries->visualize CMDBf Graph Report
- Select FederatingCMDB->cmdbf query->visualize CMDBf Graph Report
- Select any of the custom CMDBf queries->visualize CMDBf Graph Report
Expected Result:
- Able to view CMDB Graph Response reports for all CMDBf queries.
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
- configDemo.bat C:\Program Files\cosmos\apache-tomcat-5.5.25 C:\Program Files\cosmos\cosmos-demo C:\Program Files\cosmos\birt-runtime-2_3_0.zip C:\Program Files\cosmos\axis2.war
Expected Result:
Invalid Tomcat directory Invalid COSMOS demo install directory 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
- 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_3_0.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
- configDemo.bat "C:\Program Files\cosmos\apache-tomcat-5.5.25" "C:\Program Files\cosmos\cosmos-demo" "C:\Program Files\cosmos\birt-runtime-2_3_0.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_3_0.zip to C:\Program Files\cosmos\apache-tomcat-5.5.25\webapps/COSMOSReportViewer... Unzipped BIRT to COSMOSReportViewer Copied BIRT web viewer example to COSMOSReportViewer 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):
- Start CosmosClient, <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> RegisterAllDataManagers http://localhost:9080/axis2/services/CosmosServiceFinder
Expected Result:
- All DataManagers should successfuly get registered to broker on port 9080
Test Description:Multiple Broker registration
- Test Broker registration multiple times:
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> RegisterAllDataManagers http://localhost:9080/axis2/services/CosmosServiceFinder
- COSMOS> RegisterAllDataManagers http://localhost:9080/axis2/services/CosmosServiceFinder
Expected Result:
- Should display "Duplicate Registration" messages under COSMOS Client console window
- Also 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:
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> GetDataManagers
Expected Result:
- Should display empty list of DataManagers
Test Description:getDataManagers with registered port 9080
- After succesful broker registration, test the following:
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> GetDataManagers
Expected Result:
- Should display all 6 DataManagers registered with broker
Test Description: Registering ServiceGroup (Registring Multiple Times)
- Try to register ServiceGroup multiple times
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> RegisterServiceGroup localhost "Storage Repository" http://www.eclipse.org/cosmos/aperimdr/6 http://www.w3.org/2003/05/soap-envelope
http://www.eclipse.org/cosmos/aperimdr http://www.eclipse.org/cosmos/security/basic http://localhost:9080/axis2/services/AperiMdrQueryService?wsdl
- COSMOS> RegisterServiceGroup localhost "Storage Repository" http://www.eclipse.org/cosmos/aperimdr/6 http://www.w3.org/2003/05/soap-envelope
http://www.eclipse.org/cosmos/aperimdr http://www.eclipse.org/cosmos/security/basic http://localhost:9080/axis2/services/AperiMdrQueryService?wsdl
Expected Result:
- Should display appropriate error message
Test Description: Registering ServiceGroup (with incorrect hostname)
- Try to register ServiceGroup multiple times
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> RegisterServiceGroup unknown "Storage Repository" http://www.eclipse.org/cosmos/aperimdr/6 http://www.w3.org/2003/05/soap-envelope
http://www.eclipse.org/cosmos/aperimdr http://www.eclipse.org/cosmos/security/basic http://localhost:9080/axis2/services/AperiMdrQueryService?wsdl Expected Result:
- Should display appropriate error message
Test Description: Registering ServiceGroup (with incorrect DataManager Id)
- Try to register ServiceGroup multiple times
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> RegisterServiceGroup localhost "Storage Repository" http://www.eclipse.org/cosmos/aperimdr/66 http://www.w3.org/2003/05/soap-envelope
http://www.eclipse.org/cosmos/aperimdr http://www.eclipse.org/cosmos/security/basic http://localhost:9080/axis2/services/AperiMdrQueryService?wsdl Expected Result:
- Should display appropriate error message
Test Description: Registering ServiceGroup (with invalid/non-existing WSDL files)
- Try to register ServiceGroup multiple times
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> RegisterServiceGroup localhost "Storage Repository" http://www.eclipse.org/cosmos/aperimdr/6 http://www.w3.org/2003/05/soap-envelope
http://www.eclipse.org/cosmos/aperimdr http://www.eclipse.org/cosmos/security/basic http://localhost:9980/axis2/services/AperiMdrQueryService?wsdl Expected Result:
- Should display appropriate error message
Test Description: Registering ServiceGroup (with invalid Broker EPR)
- Try to register ServiceGroup multiple times
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/MyBroker
- COSMOS> RegisterServiceGroup localhost "Storage Repository" http://www.eclipse.org/cosmos/aperimdr/6 http://www.w3.org/2003/05/soap-envelope
http://www.eclipse.org/cosmos/aperimdr http://www.eclipse.org/cosmos/security/basic http://localhost:9080/axis2/services/AperiMdrQueryService?wsdl Expected Result:
- Registration should fail and hould display appropriate error message
Deregistration variations
Test Description:Deregistration Multiple times
- Test deregistration of DataManager multiple times :
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> Deregister http://www.eclipse.org/cosmos/stat/1
- COSMOS> Deregister http://www.eclipse.org/cosmos/stat/1
Expected Result:
- Deregistration should fail and should display "Failure to deregister DataManager" message
Test Description:Deregistration with incorrect datamanager id
- Test deregistration of StatDataManager with invalid hostname and valid datamanager name :
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> Deregister http://www.eclipse.org/cosmos/stat/11
Expected Result:
- Deregistration should fail and should display appropriate error message
GraphQuery variations
Test Description:graphQuery with invalid datamanager
- Test graphQuery for SMLMDR, with invalid DataManager id,valid query path:
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> GraphQuery http://www.eclipse.org/cosmos/smlmdr/55 D:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\SMLMDR\all-computer-systems.query
Expected Result:
- Query execution should fail and throw appropriate error message.
Test Description:graphQuery with invalid query path
- Test graphQuery for SMLMDR, with valid DataManager id,invalid query path:
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> GraphQuery http://www.eclipse.org/cosmos/smlmdr/5 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\SMLMDR\unknown.txt
Expected Result:
- 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:
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> GraphQuery http://www.eclipse.org/cosmos/smlmdr/5 "C:\Program Files\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\SMLMDR\all-computer-systems.query"
Expected Result:
- 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:
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\AperiMdr\StorageSystem_all_items_invalidData.txt
Expected Result:
- 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:
- <cosmos-demo>\cosmos-client\cosmosClient.bat http://localhost:9080/axis2/services/Broker
- COSMOS> GraphQuery http://www.eclipse.org/cosmos/aperimdr/6 C:\cosmos\cosmos-demo\cosmos-client\cmdbfQuery\AperiMdr\StorageSystem_all_items.txt
Expected Result:
- 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)
Expected Result:
- Should display all 6 DataManagers properly
Test Description:View Properties with broker port as 8090
- Open COSMOSUI (http://localhost:8090/COSMOSUI/?page=cosmos), Verify Properties of all DataManagers
- Monitoring Data Repository
- Logging Data Repository
- Sample Repository with Registration
- Sample Repository with Query
- Resource Repository
- Storage Repository
Expected Result:
- All properties should display the correct EPR with port 8090
Test Description:Statistical Report Generation
- Test StatDataManager, "Statistical Report" generation:
- Open COSMOSUI (http://localhost:8090/COSMOSUI/?page=cosmos)
- Select "Monitoring Data Repository" -> server 33 tomcat1181829221515 -> Statistical Report
Expected Result:
- Statistical Report should get generated properly
Test Description:Top 10 Log Report Generation
- Test "LoggingDataManager", Top 10 Log Report generation:
- Open COSMOSUI (http://localhost:8090/COSMOSUI/?page=cosmos)
- Select "Logging Data Repository" -> access_log.cbe.xml -> Top 10 Log Report
Expected Result:
- Top 10 Log report should get generated properly
TestFederatingCMDB Variations
Test Description:TestFederatingCMDB multiple MDR's registration
- Test "Sample Repository with Registration", with multiple MDR registration
- Select "Sample Repository with Registration", right click and select "Register.."
- Select "Sample Repository with Query" and "Resource Repository" MDR's from registration window
Expected Result
- Registration should be successful and should show registered items from both MDR's
Test Description:TestFederatingCMDB invalid datamanager deregistration
- Test "Sample Repository with Registration",Deregistration without registration
- Select "Sample Repository with Registration" (Make sure no items are registered)
- Right click and select "Deregister...", choose "Resource Repository" and click on Deregister button
Expected Result
- Should display empty result as "No Items Returned"
Test Description:TestFederatingCMDB AperiMdr registration
- Test "Sample Repository with Registration",AperiMdr registration without starting Aperi
- Select "Sample Repository with Registration", right click and select "Register..."
- choose "Storage Repository" from registration dialog window
Expected Result
- Registration should fail with DB Connection error message
Resource Repository Variations
Test Description:SMLMDR Submit Query with invalid data
- Test Resource Repository, with invalid query
- select "Resource Repository" and click on "Submit Query as Text"
- Provide any invalid query data and submit
Expected Result:
- 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
- select "Storage Repository" and create invalid/incomplete query using Query Builder
Expected Result:
- 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
- select "Storage Repository" and create valid query using Query Builder
Expected Result:
- 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
- select "Sample Repository with Query"
- Create an invalid query from query builder and submit it
Expected Result:
- Should display Empty Query response under GraphResponseViewer
Test Description:ExampleMdr with invalid data using Submit Query as text
- Test "Sample Repository with Query", with invalid query using "Submit Query as text"
- select "Sample Repository with Query" -> "Submit Query as Text"
- Create an invalid query from query builder and submit it
Expected Result:
- Should display Empty Query response or appropriate error message
Test Broker Attributes for ExampleMdr with cosmos.properties
- Testing "Broker Attributes for ExampleMdr" by modifying cosmos.properties file
- Open COSMOS Command line client
- Deregister examplemdr => Deregister http://www.eclipse.org/cosmos/examplemdr/4
- shutdown tomcat instance
- Goto ExampleMdr service location and modify it's mdrid under cosmos.properties file
- Restart tomcat
- Register examplemdr with new mdrid, Register http://www.eclipse.org/cosmos/examplemdr/44
- Run GetDataManagerInfo with new mdrid
Expected Result:
- Modified Broker attributes should display correctly
Test - Launching COSMOS UI with a ExampleMdr query (invalid query)
- Testing "Launching COSMOS UI with a ExampleMdr query (invalid query)"
- Open Browser and run the following query
http://localhost:8090/COSMOSUI/?page=DataPage&mdrName="Sample Repository with Query"& query=<?xml version="1.0" encoding="UTF-8"?><s:itemTemplate id="All_Students"> <s:recordConstraint><s:recordType namespace="" localName="mystudent"/></s:itemTemplate> </s:query>
Expected Result:
- Query should execute successfully and display empty GraphResponseViewer
Test - ExampleMdr with Invalid Query Relationship data
- Testing ExampleMDR with invalid Relationship query
- Create relationship Query with non-existing localid and submit query as text
- Example, copy staff01 query and modify localid as "mystaff01" and submit the query
Expected Result:
- Query should execute successfully and display all students data without having any relationship data to given localid (or) it should display empty response.
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
- Install and deploy COSMOSUI,COSMOSReportViewer webapps application under windows PC1
- Install and deploy COSMOS Broker service under windows PC2
- Install and deploy COSMOS Data Managaers/MDR's services under linux PC1
- 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
- COMSOS>broker registerAllDataManagers http://<linuxPC1host:8080>/axis2/services/CosmosServiceFinder
- Modify BROKER EPR value under <COSMOSUI>/Configuration.properties file, pointing to windows PC2 hostname
- From windows PC1 open COSMOSUI,http://localhost:8080/COSMOSUI
- Inspect the properties of all datamanagers
Expected Result:
- 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
- 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:DataManagers/COSMOSUI on windows/linux
- 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:Multiple COSMOSUI's
- 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:Multiple COSMOSUI's and Command Line Clients
- 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:Broker Performance Test
- 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:StatDataManager Performance Test
- 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:LogDataManager Performance Test
- 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:TestFederatingCMDB Performance Test
- 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:ExampleMdr Performance Test
- 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:SMLMDR Performance Test
- 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:AperiMdr Performance Test
- 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: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.
- 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 ExampleMdr
- 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
<?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:
- All requests to various datamanagers should work normally with appropriate turn around time.
Eclipse Tooling Components Tests
MDR Toolkit tests
Pre-requisites:
* Eclipse 3.4 * WTP, EMF, GEF installed * COSMOS SDK installed * Tomcat installed * Axis2 installed and runtime location set in Window>Preferences>Web Services>Axis2 Preferences
Creating a Data Manager Project
Test Description: Create Data Manager
- Select File > New > Other... from the Eclipse menu bar
- Select Web > Dynamic Web Project
- Type in a new project name
- For Target Runtime, select "Apache Tomcat 5.5". If this is not available in the list, create the entry by clicking the New... button and associating Apache Tomcat 5.5 with the Tomcat location on your computer.
- Next to Default Configuration, click Modify...
- Choose "Axis2 Web Services"
- Choose "CMDBf query service" under "Systems management" and click OK.
- Click the "Next >" button twice
- On the "MDR configuration" page, enter in values for all fields. Click Finish.
Expected Result:
- After step 6, the MDR configuration page is displayed.
- No error dialogs are displayed during the process
- A new web project is created with the name you indicated.
- A new class is created with the name you provided in the configuration, suffixed by QueryService, and it is in the package you indicated
- There are no compilation errors in the generated project
Facet interface for creating DM Project
Test Description: DM Project creation using Facet Interface
- Select File > New > Other... from the Eclipse menu bar
- Select Web > Dynamic Web Project
- Type in a new project name
- For Target Runtime, select "Apache Tomcat 5.5". If this is not available in the list, create the entry by clicking the New... button and associating Apache Tomcat 5.5 with the Tomcat location on your computer.
- Next to Default Configuration, click Modify...
- Choose "Systems Management > CMDBf query service"
- Choose "Axis2 Web Services"
- Deselect "Systems Management > CMDBf query service"
- Select "Systems Management > CMDBf registration service"
- Select "Systems Management > CMDBf query service"
Expected Result:
- Ensure a message is displayed after following step 6 that says Axis2 is required.
- Ensure the message indicated in result #1 disappears after step 7.
- Ensure a message is displayed after following step 9 that says you must select the query service
- Ensure the message indicated in result #3 disappears after step 10.
Run on Server
- Run the steps for "Creating Data Manager Project" and create an MDR
- Make sure dojo is installed and configured correctly. Dojo should be available under ../eclipse/plugins/org.eclipse.cosmos.dr.web.ui.viewer/COSMOSUI/dojo-release-1.1.0
- Go to above project, select MDR-> right click and run as-"Run on Server"
- It will ask for Server Runtime location, select already configured Apache Tomcat and finish the wizard
- It then starts tomcat server and will launch COSMOS UI in eclipse internal browser and displays UI with above MDR
Expected Result:
- After step 5, COSMOS UI should get displayed with the MDR Details.
- Go to COSMOS UI, select MDR and inspect for its properties. For example, it should display MDR Data as :
name MyMDRQueryService http://cmdbf.org/schema/1-0-0/query http://localhost:8080/MyMDR/services/MyMDRQueryService
Using Web UI
- Run the steps for "Run on Server" and launch COSMOS UI with the MDR
- Alternatively after deploying MDR under tomcat, COSMOS UI can be launched using "System Management Web UI" icon which is available under toolbar menu with COMOS logo
- For example, Click on "System Management Web UI" icon and provide MDR details as :(MDR Name as "MYMDR" and EPR as "http://localhost:8080/MyMDR/services/MyMDRQueryService")
- Now go to COSMOS UI, select MDR->right click->Submit Query as Text and execute below query
<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:
- After step 2, COSMOS UI should comeup with appropriate MDR details
- After step 3, CMDBf query should execute successfully and should display result data as
Items > http://www.eclipse.org/cosmos/helloworld > http://www.eclipse.org/cosmos/SampleRecord
SML Tooling tests
- SML tooling instructions available at http://wiki.eclipse.org/COSMOS_UG_SML
- SML test resources are located under CVS at org.eclipse.cosmos.rm.validation.tests/src/test-resources/
Test Description: SML editor/import/export UI validation tests
- Ensuring that validating from the UI produces expected markers in the errors view, and that the line numbers match the correct location.
- Ensuring that creating a SML-IF using New > SML-IF file produces a valid SML-IF file (use the validator after creating)
- Ensuring that changes typed on the Overview tab of the editor are updated in the Source tab of the editor.
- Ensuring that importing a SML-IF file works for both a file system and workspace file.
- Ensuring that importing a valid SML-IF file, and then validating the resulting folder, results in the same validation messages
- Ensuring that importing a valid SML-IF file, and then exporting it, results in a valid SML-IF file
- Ensuring that entering new rule bindings on the third page of the export wizard will cause these bindings to be generated on export.