OSLC Api tests - quality-manager/onboarding GitHub Wiki
Note: The /com.ibm.rqm.oslc.tests/launches/OSLC API JUnits.launch JUnitˆ2 Launch launch configuration requires all the org.eclipse.osgi plug-ins in the development target. If execution problems persist, use the work-around /com.ibm.rqm.oslc.tests/launches/OSLC API JUnits.launch launch configuration attached to OSLC junits does not run with new RQM 4.0.1 M2 target. (70133)
- Modify the '/com.ibm.rqm.predefined.targets/launches/QM Initialize 4.0.launch' JUnitˆ2 Launch configuration to set the 'createTestProjectAreas' System Property to 'true'.
- Run the '/com.ibm.rqm.predefined.targets/launches/QM Initialize 4.0.launch' JUnitˆ2 Launch configuration.
- Run the '/com.ibm.rqm.predefined.targets/launches/RQM-sample.launch' OSGiˆ2 Launch configuration.
- Edit the '/com.ibm.rqm.oslc.tests/launches/OSLC API JUnits.launch' JUnitˆ2 Launch launch configuration:
- Bundles >> System Properties:
- -Dcom.ibm.rqm.oslc.test.serverHost=
<server host name or localhost (default)> - -Dcom.ibm.rqm.oslc.test.renamedServerHost=
<renamed server host name or rqm (default)> - -Dcom.ibm.rqm.oslc.test.serverPort=
<server port number or 9443 (default)> - -Dcom.ibm.rqm.oslc.test.isProduction=
<true for production environments and false (default) for development environments> - -Dcom.ibm.rqm.oslc.test.consumerKey=
<generated consumer key or 6634004e7db54e678cb40183fb054273 (default)> - -Dcom.ibm.rqm.oslc.test.consumerSecret=
<consumer key secret or junit (default)> - -Dcom.ibm.rqm.oslc.test.userId=
<user ID or TestJazzAdmin1 (default)> - -Dcom.ibm.rqm.oslc.test.userPassword=
<user password or TestJazzAdmin1 (default)> - -Dcom.ibm.rqm.oslc.test.projectName=
<project area name or "Quality Manager" (default)>
- -Dcom.ibm.rqm.oslc.test.serverHost=
- If running the server rename tests
- add the following entry to the .hosts file:
127.0.0.1 <renamed server host name or rqm (default)>
- Run the
/com.ibm.rqm.oslc.tests/launches/OSLC API JUnits.launchJUnitˆ2 Launch launch configuration.
- Do the setup
- Open and Run
/com.ibm.rqm.oslc.tests/launches/OSLC API JUnits.launch
- Do the setup
- Open and Run
/com.ibm.rqm.oslc.tests/src/com/ibm/rqm/oslc/tests/AllOslcTests.java
- Create the following user:
- Name:
TestJazzAdmin1 - User ID:
TestJazzAdmin1 - E-mail Address:
[email protected] - Repository Permissions:
JazzUsersRequires JazzAdmins if the com.ibm.rqm.oslc.test.consumerKey consumer key is not created (see next step) and the OSLC JUnits automatically create a consumer key.
- Client Access Licenses:
Rational Quality Manager - Quality Manager Professional
- Create a consumer key:
- Consumer Key:
<key will be generated by the server> - Consumer Name:
TestJazzAdmin1 - Consumer Secret:
junit - Trusted:
<checked>
- Edit Consumer:
- Functional User ID:
TestJazzAdmin1
- Add the TestJazzAdmin1 to the project area as a Test Team Member and Test Team Contributor. Ensure the TestJazzAdmin1 has sufficient project area privileges to CRUD/query test resources (see https://jazz.net/wiki/bin/view/Main/RqmApi#Permissions).
- Edit the
/com.ibm.rqm.oslc.tests/launches/OSLC API JUnits.launchJUnitˆ2 Launch launch configuration:
- Bundles >> System Properties:
- -Dcom.ibm.rqm.oslc.test.serverHost=
<server host name or localhost (default)> - -Dcom.ibm.rqm.oslc.test.renamedServerHost=
<renamed server host name or rqm (default)> - -Dcom.ibm.rqm.oslc.test.serverPort=
<server port number or 9443 (default)> - -Dcom.ibm.rqm.oslc.test.isProduction=
<true for production environments and false (default) for development environments> - -Dcom.ibm.rqm.oslc.test.consumerKey=
<generated consumer key or 6634004e7db54e678cb40183fb054273 (default)> - -Dcom.ibm.rqm.oslc.test.consumerSecret=
<consumer key secret or junit (default)> - -Dcom.ibm.rqm.oslc.test.userId=
<user ID or TestJazzAdmin1 (default)> - -Dcom.ibm.rqm.oslc.test.userPassword=
<user password or TestJazzAdmin1 (default)> - -Dcom.ibm.rqm.oslc.test.projectName=
<project area name or "Quality Manager" (default)>
- -Dcom.ibm.rqm.oslc.test.serverHost=
- If running the server rename tests
- add the following hosts file entry:
<server IP address> <renamed server host name or rqm (default)>
- Run the
/com.ibm.rqm.oslc.tests/launches/OSLC API JUnits.launchJUnitˆ2 Launch launch configuration.