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 "Lyo/BuildTestSuite"

< Lyo
m (Corrected See link to Lyo/LyoTestSuite by deleting ]space after LyoTestSuite)
(Replaced content with "= Building and running the Lyo OSLC Test Suite = == '''[https://github.com/eclipse/lyo.testsuite Moved to Github README]''' ==")
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
= Building and running the Lyo OSLC Test Suite =
 
= Building and running the Lyo OSLC Test Suite =
  
== Prerequisites ==
+
== '''[https://github.com/eclipse/lyo.testsuite Moved to Github README]''' ==
* [http://eclipse.org/downloads Eclipse 3.6 or 3.7 IDE]
+
* [http://eclipse.org/egit/download/ EGit] team provider for git (recommended) or [http://git-scm.com/download git command line package].
+
* [http://www.eclipse.org/m2e/download/ m2eclipse] for Maven support in the Eclipse IDE
+
 
+
This page assumes you are using EGit.
+
 
+
== Clone the Lyo OSLC Test Suite git repository ==
+
This example assumes EGit is being used
+
 
+
* Open the Git Repositories view in Eclipse and click the Clone Git Repository icon
+
* Use git://git.eclipse.org/gitroot/lyo/org.eclipse.lyo.testsuite.git as the URI.  User/Password are not required.
+
[[Image:Lyo-testsuite-git-repo.png]]
+
* On the Branch Selection page, select the master branch
+
* On the Local Destination page, specify a location or accept the default and click Finish
+
 
+
The repository should now show up in your Git Repositories view
+
 
+
== Import Eclipse projects from the git repository ==
+
* In the Git Repositories view, right click org.eclipse.lyo.testsuite and select Import Projects
+
* Select the Import Existing Projects wizard and click next
+
* Select all components of testsuite (there should only be one right now)
+
[[Image:Lyo-testsuite-import-projects.png]]
+
 
+
== Configure the OSLC Test Suites ==
+
The test suite '''config''' directory contains sample configuration files for different implementations of providers.  Currently there are config files for the Reference Implementation for OSLC (RIO) implementations as well as some IBM Rational products such as Rational Team Concert and Rational ClearQuest.  We are looking for config files for other implementations if you would like to contribute one.  Just open a [http://bugs.eclipse.org Bugzilla] for the Lyo project and attach your config file.
+
 
+
This example will show configuring to test the Lyo Change Management (CM) reference implementation.
+
 
+
* open config/rio-cm/rio-cm-setup.properties
+
* typical properties which would need to be configured are the baseUri (the URI of the OSLC providers catalog resource) and the user/password
+
* For the CM RIO provider running on the same system as the test suite, the property file is fine.
+
 
+
== Running the OSLC Test Suite ==
+
The test suite is run by running an Eclipse JUnit launch for test class '''org.eclipse.lyo.testsuite.server.DynamicSuiteBuilder'''.  DynamicSuiteBuilder uses the information in the config file to determine the version of the tests (OSLC V1 or OSLC V2) and which test classes to include in the run.  The config is passed to the test suite run with the '''-Dprops''' argument in the launch.  The test suite project contains several launches already configured to run the suite based on the sample configuration files.  We will run the launch to test the RIO CM provider.
+
* Select Run->Run Configurations and select JUnit
+
* Select the Test RIO-CM launch.  Go to the Arguments tab and verify the config file location is correct
+
[[Image:Lyo-testsuite-launch.png]]
+
* Click Run
+
* The test suite should run fairly quickly and you will have results in the JUnit view of Eclipse similar to this:
+
[[Image:Lyo-testsuite-result.png]]
+
* Failures will have an exception indicating the root cause of the failure.
+
 
+
See [[Lyo/LyoTestSuite| the test suite description]] for areas where we are planning improvements.
+

Latest revision as of 14:37, 18 December 2020

Building and running the Lyo OSLC Test Suite

Moved to Github README

Back to the top