Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "COSMOS/COSMOS TEST AUTO"

m ('''3) Test Details''')
('''3) Test Details''')
Line 16: Line 16:
 
<tr><th> Sl No </th><th> Component </th><th> Test Project </th><th> Contact Person </th><th> Dependencies </th><th> Test Setup </th><th> Test Automation </th></tr>
 
<tr><th> Sl No </th><th> Component </th><th> Test Project </th><th> Contact Person </th><th> Dependencies </th><th> Test Setup </th><th> Test Automation </th></tr>
  
<tr><td>1</td><td>data-collection</td><td>org.eclipse.cosmos.dc.cmdf.services.tests</td><td>David Whiteman</td><td>org.eclipse.cosmos.common.tests</td><td>The directory in testTempDirectory in CMDBfTestMessages.properties will be created.  This will need to be changed from the default for Linux testing.</td><td>Done, AllTests.testsuite works</td></tr>
+
<tr><td>1</td><td>data-collection</td><td>org.eclipse.cosmos.dc.cmdf.services.tests</td><td>David Whiteman</td><td>org.eclipse.cosmos.common.tests</td><td>The directory in testTempDirectory in CMDBfTestMessages.properties will be created.  This will need to be changed from the default for Linux testing.</td><td>Done, only normal junits, no plugin junits </td></tr>
 
<tr><td>2</td><td>data-collection</td><td>org.eclipse.cosmos.dc.framework.test</td><td>?</td><td>?</td><td>?</td><td>Execution works fine, but all the test cases fails, need this to be deployed http://localhost:8080/cosmos/services </td></tr>
 
<tr><td>2</td><td>data-collection</td><td>org.eclipse.cosmos.dc.framework.test</td><td>?</td><td>?</td><td>?</td><td>Execution works fine, but all the test cases fails, need this to be deployed http://localhost:8080/cosmos/services </td></tr>
 
<tr><td>3</td><td>data-collection</td><td>org.eclipse.cosmos.dc.tests</td><td>?</td><td>?</td><td>?</td><td>The project cannot be compiled due to following dependency errors:<br/>
 
<tr><td>3</td><td>data-collection</td><td>org.eclipse.cosmos.dc.tests</td><td>?</td><td>?</td><td>?</td><td>The project cannot be compiled due to following dependency errors:<br/>
Line 50: Line 50:
 
<tr><td colspan="7"></td></tr>
 
<tr><td colspan="7"></td></tr>
 
<tr><td>1</td><td>resource-modeling</td><td>org.eclipse.cosmos.rm.repository.tests</td><td>David Whiteman</td><td>org.eclipse.cosmos.common.tests</td><td>See org.eclipse.cosmos.rm.repository.tests/src/org/eclipse/cosmos/rm/repository/tests/common/testMessages.properties
 
<tr><td>1</td><td>resource-modeling</td><td>org.eclipse.cosmos.rm.repository.tests</td><td>David Whiteman</td><td>org.eclipse.cosmos.common.tests</td><td>See org.eclipse.cosmos.rm.repository.tests/src/org/eclipse/cosmos/rm/repository/tests/common/testMessages.properties
and org.eclipse.cosmos.rm.repository.tests/src/META-INF</td><td>Done, AllTests.testsuite works. Configuration reqd as mentioned.</td></tr>
+
and org.eclipse.cosmos.rm.repository.tests/src/META-INF</td><td>Done, only normal juints, no plugin junits. Configuration reqd as mentioned.</td></tr>
<tr><td>2</td><td>resource-modeling</td><td>org.eclipse.cosmos.rm.smlif.tests</td><td>David Whiteman</td><td>org.eclipse.cosmos.common.tests</td><td>Configure artifacts in org.eclipse.cosmos.rm.smlif.tests/test-resources.  Open the TPTP artifacts to see documentation on what is required.</td><td>Partially done, AllTests.testsuite works. Error while executing TPTP plugin junits</td></tr>
+
<tr><td>2</td><td>resource-modeling</td><td>org.eclipse.cosmos.rm.smlif.tests</td><td>David Whiteman</td><td>org.eclipse.cosmos.common.tests</td><td>Configure artifacts in org.eclipse.cosmos.rm.smlif.tests/test-resources.  Open the TPTP artifacts to see documentation on what is required.</td><td>Partially done, AllTests.testsuite works. Error while executing TPTP plugin junits - junit.framework.AssertionFailedError: The project P/org.eclipse.cosmos.rm.example.datacenter does not exist in the test workspace at E:/Bobz/workarea/COSMOS/TestAuto/tmp/test-workspace</td></tr>
<tr><td>3</td><td>resource-modeling</td><td>org.eclipse.cosmos.rm.validation.tests</td><td>David Whiteman</td><td>org.eclipse.cosmos.common.tests</td><td>See org.eclipse.cosmos.rm.validation.tests/src/org/eclipse/cosmos/rm/validation/internal/common/testMessages.properties.  Also need to configure artifacts in org.eclipse.cosmos.rm.validation.tests/test-resources for plugin tests (open the artifacts to read documentation on doing this).</td><td>Partially done, AllTests.testsuite works. Error while executing TPTP plugin junits</td></tr>
+
<tr><td>3</td><td>resource-modeling</td><td>org.eclipse.cosmos.rm.validation.tests</td><td>David Whiteman</td><td>org.eclipse.cosmos.common.tests</td><td>See org.eclipse.cosmos.rm.validation.tests/src/org/eclipse/cosmos/rm/validation/internal/common/testMessages.properties.  Also need to configure artifacts in org.eclipse.cosmos.rm.validation.tests/test-resources for plugin tests (open the artifacts to read documentation on doing this).</td><td>Done, both normal and plugin junits work. </td></tr>
  
 
</table>
 
</table>
 
<br/><br/>We will try to automate as much as possible from the above list using the TPTP Test Automation Framework.<br/><br/>
 
<br/><br/>We will try to automate as much as possible from the above list using the TPTP Test Automation Framework.<br/><br/>

Revision as of 10:23, 29 May 2008

1) Introduction

This page provides information and links related to Test Automation of COSMOS junits.

2) Test Automation Overview


The COSMOS build is based on Eclipse PDE (Plug-in Development Environment) and it runs in the eclipse server. Currently the candidate drivers at the end of an iteration are manually tested by the respective component teams. This initiative is to define the process of testing and automate junit execution as part of the build. By automating and integrating with the build, testing can be done more often and bugs will be discovered early on.

The test cases are available in CVS at the following location:
Cosmos cvs.jpg

Go to HEAD -> org.eclipse.cosmos -> tests

3) Test Details

The following table briefly explains the different contacts for the test cases as well as the pre reqs and test setup needed to execute it.

Sl No Component Test Project Contact Person Dependencies Test Setup Test Automation
1data-collectionorg.eclipse.cosmos.dc.cmdf.services.testsDavid Whitemanorg.eclipse.cosmos.common.testsThe directory in testTempDirectory in CMDBfTestMessages.properties will be created. This will need to be changed from the default for Linux testing.Done, only normal junits, no plugin junits
2data-collectionorg.eclipse.cosmos.dc.framework.test???Execution works fine, but all the test cases fails, need this to be deployed http://localhost:8080/cosmos/services
3data-collectionorg.eclipse.cosmos.dc.tests???The project cannot be compiled due to following dependency errors:

missing required Java projects:
1) org.apache.ibatis
2) org.eclipse.cosmos.dc.common
3) org.eclipse.cosmos.dc.local.registry
4) org.eclipse.cosmos.dc.remote.wsdm
5) org.eclipse.cosmos.dc.spec
6) org.eclipse.cosmos.management.common
7) org.eclipse.cosmos.management.wsdm

4data-collectionorg.eclipse.cosmos.example.mdr.registration.testsAli MehreganiCOSMOS environmentThis test requires the COSMOS environment to be running before the test is executed. It's meant to perform functional testing on the registration service. It's probably unrealistic to run this plug-in against each build. I would exclude this test from your test automation framework
1data-reportingorg.eclipse.cosmos.dr.tests.drs.service.handlerSheldon Lee-LoyThe COSMOS End 2 End should be deployed on http://localhost:8080The project cannot be compiled due to following dependency errors:

1) missing required Java project: 'org.eclipse.cosmos.dr.drs.service.handler'
2) Target runtime Apache Tomcat v5.5 is not defined

2data-reportingorg.eclipse.cosmos.dr.tests.drs.service.handler.tptpSheldon Lee-Loyorg.eclipse.cosmos.dr.tests.drs.service.handlerThe COSMOS End 2 End should be deployed on http://localhost:8080The project was not built since it depends on org.eclipse.cosmos.dr.tests.drs.service.handler, which has build path errors
1management-enablementorg.eclipse.cosmos.me.dmtoolkit.testsDavid Whitemanorg.eclipse.cosmos.common.tests, Webtools platformOne manual test in addition to a plugin test.InactiveProcessException while executing testcase
2management-enablementorg.eclipse.cosmos.me.management.tests???

The project cannot be compiled due to following dependency errors:
missing required Java projects:
1) org.apache.axis2.jaxws.api
2) org.apache.axis2.jws.api
3) org.eclipse.cosmos.me.management.common
4) org.eclipse.cosmos.me.management.wsdm

1resource-modelingorg.eclipse.cosmos.rm.repository.testsDavid Whitemanorg.eclipse.cosmos.common.testsSee org.eclipse.cosmos.rm.repository.tests/src/org/eclipse/cosmos/rm/repository/tests/common/testMessages.properties and org.eclipse.cosmos.rm.repository.tests/src/META-INFDone, only normal juints, no plugin junits. Configuration reqd as mentioned.
2resource-modelingorg.eclipse.cosmos.rm.smlif.testsDavid Whitemanorg.eclipse.cosmos.common.testsConfigure artifacts in org.eclipse.cosmos.rm.smlif.tests/test-resources. Open the TPTP artifacts to see documentation on what is required.Partially done, AllTests.testsuite works. Error while executing TPTP plugin junits - junit.framework.AssertionFailedError: The project P/org.eclipse.cosmos.rm.example.datacenter does not exist in the test workspace at E:/Bobz/workarea/COSMOS/TestAuto/tmp/test-workspace
3resource-modelingorg.eclipse.cosmos.rm.validation.testsDavid Whitemanorg.eclipse.cosmos.common.testsSee org.eclipse.cosmos.rm.validation.tests/src/org/eclipse/cosmos/rm/validation/internal/common/testMessages.properties. Also need to configure artifacts in org.eclipse.cosmos.rm.validation.tests/test-resources for plugin tests (open the artifacts to read documentation on doing this).Done, both normal and plugin junits work.



We will try to automate as much as possible from the above list using the TPTP Test Automation Framework.

Back to the top