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)

Setup (development environment)

  1. 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'.
  2. Run the '/com.ibm.rqm.predefined.targets/launches/QM Initialize 4.0.launch' JUnitˆ2 Launch configuration.
  3. Run the '/com.ibm.rqm.predefined.targets/launches/RQM-sample.launch' OSGiˆ2 Launch configuration.
  4. 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)>
  1. 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)>
  1. Run the /com.ibm.rqm.oslc.tests/launches/OSLC API JUnits.launch JUnitˆ2 Launch launch configuration.

Server Tests (Development)

  1. Do the setup
  2. Open and Run /com.ibm.rqm.oslc.tests/launches/OSLC API JUnits.launch

JUnit Tests (Development)

  1. Do the setup
  2. Open and Run /com.ibm.rqm.oslc.tests/src/com/ibm/rqm/oslc/tests/AllOslcTests.java

Setup (Production)

  1. Create the following user:
  • Name: TestJazzAdmin1
  • User ID: TestJazzAdmin1
  • E-mail Address: [email protected]
  • Repository Permissions: JazzUsers
    • Requires 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
  1. Create a consumer key:
  • Consumer Key: <key will be generated by the server>
  • Consumer Name: TestJazzAdmin1
  • Consumer Secret: junit
  • Trusted: <checked>
  1. Edit Consumer:
  • Functional User ID: TestJazzAdmin1
  1. 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).
  2. 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)>
  1. If running the server rename tests
  • add the following hosts file entry:
    • <server IP address> <renamed server host name or rqm (default)>

Server Tests (Production)

  1. Run the /com.ibm.rqm.oslc.tests/launches/OSLC API JUnits.launch JUnitˆ2 Launch launch configuration.
⚠️ **GitHub.com Fallback** ⚠️