From: cosmos-dev-bounces@xxxxxxxxxxx
[mailto:cosmos-dev-bounces@xxxxxxxxxxx] On
Behalf Of N, Shivashankari
Sent: Wednesday, January 23, 2008 8:25 AM
To: Cosmos Dev
Cc: Hayes, Ian; Devine, John T
Subject: [cosmos-dev] Junit
execution related issues
Importance: High
QA is facing issues while running the Junits
(in
Windows). We started with the Data Collection
part.
Steps followed while testing them:
-------------------------------------------------
1. Downloaded
eclipse and all other dependent libraries based on wiki page
http://wiki.eclipse.org/COSMOSDataCollectorEnvironment#Download_Dependencies
2. Checked out
all projects from cosmos/data-collection and resolved few compilation issues
and library dependencies
3. Checked out
all tests from tests/data-Collection
4. Bought up
tomcat running on port 8080
5. Registered
broker with domain using COSMOS command line client
6. Bought up
all Data Managers running outside eclipse (using
cosmos-demo\DataManagers\startup.bat)
7. Finally,
executed JUnits one at time.
Issues with:
-------------------
ManagementDomainTests.java /
DataBrokerTests.java / ClientTests.java
-----------------------------------------------------------------------------------------------------------------
testManagementDomainClient
started...
org.apache.muse.ws.addressing.soap.SoapFault:
[ID = 'DestinationUnreachable'] There is no resource available at the given
EPR:
<wsa:EndpointReference
xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Address>http://domsr01-xp:8080/cosmos/services/org.eclipse.cosmos.dc.runtime.osgi.OSGiRuntimeHost</wsa:Address>
<wsa:ReferenceParameters>
<muse-wsa:ResourceId
xmlns:muse-wsa="http://ws.apache.org/muse/addressing"
wsa:IsReferenceParameter="true" xmlns:wsa="http://www.w3.org/2005/08/addressing">RuntimeIdentifierValue</muse-wsa:ResourceId>
</wsa:ReferenceParameters>
</wsa:EndpointReference>
-----------
testDataBrokerClient
started...
org.apache.muse.ws.addressing.soap.SoapFault:
[ID = 'DestinationUnreachable'] There is no resource available at the given
EPR:
<wsa:EndpointReference
xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Address>http://domsr01-xp:8080/cosmos/services/org.eclipse.cosmos.dc.runtime.osgi.OSGiRuntimeHost</wsa:Address>
<wsa:ReferenceParameters>
<muse-wsa:ResourceId
xmlns:muse-wsa="http://ws.apache.org/muse/addressing"
wsa:IsReferenceParameter="true"
xmlns:wsa="http://www.w3.org/2005/08/addressing">RuntimeIdentifierValue</muse-wsa:ResourceId>
</wsa:ReferenceParameters>
</wsa:EndpointReference>
org.apache.muse.ws.addressing.soap.SoapFault:
[ID = 'DestinationUnreachable'] There is no resource available at the given
EPR:
-------
<wsa:EndpointReference
xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Address>http://155.35.13.194:8080/cosmos/services/org.eclipse.cosmos.dc.local.registry.SQLProviderRegistry</wsa:Address>
<wsa:ReferenceParameters>
<muse-wsa:ResourceId
xmlns:muse-wsa="http://ws.apache.org/muse/addressing"
wsa:IsReferenceParameter="true" xmlns:wsa="http://www.w3.org/2005/08/addressing">Resource_1</muse-wsa:ResourceId>
</wsa:ReferenceParameters>
</wsa:EndpointReference>
AssemblyTests/CollectionTests/QueryTests/SQLProviderRegistryTests
---------------------------------------------------------------------------------------------------------------
java.lang.RuntimeException: [ID = 'NoDataResource'] The resource 'muse.xml' does
not exist or is not in the classpath.
at
org.apache.muse.core.AbstractEnvironment.getDataResourceStream(AbstractEnvironment.java:250)
at
org.apache.muse.core.AbstractEnvironment.getDocument(AbstractEnvironment.java:328)
at
org.apache.muse.core.platform.AbstractIsolationLayer.initialize(AbstractIsolationLayer.java:151)
at org.eclipse.cosmos.dc.tests.runtime.SQLProviderRegistryTests.setUp(SQLProviderRegistryTests.java:65)
at junit.framework.TestCase.runBare(TestCase.java:128)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
WSDMBindingTests.java/
WSDMBindingUtilTests.java /WSDMCustomCapabilityTests.java /
WSDMNotificationTests.java
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
java.lang.RuntimeException: [ID = 'NoDataResource'] The resource 'muse.xml' does
not exist or is not in the classpath.
at
org.apache.muse.core.AbstractEnvironment.getDataResourceStream(AbstractEnvironment.java:250)
at
org.apache.muse.core.AbstractEnvironment.getDocument(AbstractEnvironment.java:328)
at org.eclipse.cosmos.dc.tests.wsdm.binding.WSDMBindingTests.setUp(WSDMBindingTests.java:76)
at junit.framework.TestCase.runBare(TestCase.java:128)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
QA requires the http://wiki.eclipse.org/COSMOSDataCollectorEnvironment#Download_Dependencies
page
to be
updated so that our Eclipse environment is correct
apart from the approaches to run the above JUnits.
Regards
Shivashankari
Team Lead
India Technology Center
"If
bugs were people then you would be China"