How to get the test plan OSLC url
I'm creating a RPE template to 'print' a test plan. Now I want to include the related defects. Aparently there is no direct link from the test plan to the defects (as far as I know now) which we can use. A query on the defects is the only way. In the defect I found the OSLC back-link. So to query I need have the OSLC link of a testplan in RPE. RQM does not provide such a URI.
The following URLs are both pointing to a testplan: https://fibula5.vanlint5.nl:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/My+Reporting+%28Quality+Management%29/testplan/urn:com.ibm.rqm:testplan:6 The following link is also TP6 (used in defects): https://fibula5.vanlint5.nl:9443/qm/oslc_qm/contexts/_ZJ9pcRklEeOfPN1jCvntow/resources/com.ibm.rqm.planning.VersionedTestPlan/_0F8nYBrVEeO9E_QFReYRSg How can one get this 2nd URL if I've got the first? The 2nd format I can use to query the defects. Thanks. Marc |
2 answers
Sunil Kumar R (1.1k●1●33●44)
| answered Oct 24 '13, 8:06 a.m.
JAZZ DEVELOPER edited Oct 24 '13, 8:06 a.m.
Hello! Not sure if this answers..I tried the steps below to get to the 2nd URL you have..
1. Go to..
https://localhost:9443/qm/oslc_qm/catalog
2. Note down the value for the project area under teh oslc discovery path..
eg: for Project area "JKE Banking (Quality Management)" it is "_fVeFIsIMEeK7HcjfoUeAvg"
<oslc_disc:ServiceProvider>
<dc:title>JKE Banking (Quality Management)</dc:title>
<oslc_disc:details rdf:resource="https://clm.jkebanking.net:9443/qm/process/project-areas/_fVeFIsIMEeK7HcjfoUeAvg"/>
<oslc_disc:services rdf:reso...
3. Then use the "versionedTestPlan" URL as below to get both the type of URL's you showed!
https://localhost:9443/qm/oslc_qm/contexts/_fVeFIsIMEeK7HcjfoUeAvg/resources/com.ibm.rqm.planning.VersionedTestPlan
Best Regards, Sunil
Comments I tried this. I got an error:
Marc, you MUST use the following header:
Oke, my URL was wrong. Some more detail for others and later reference. Add the OSLC-Core-Version as a header, and the accept=text/xml.
|
Hi Marc,
You can use the oslclinks request parameter (https://jazz.net/wiki/bin/view/Main/RqmApi#oslclinks) to resolve the OSLC URL of the test artifact (see the dc:identifier property). However, defects associated to a test plan are contained in the qm:relatedChangeRequest properties (see https://jazz.net/products/rational-quality-manager/api-doc-4.0.4/schemas/qm_xsd/elements/testplan.html#a36). Comments Paul, thanks for you comment. True. When create a defect and manually relate this direct to a testplan, this defect is shown here. When you create a defect on a execution result the defect does not appear here. Is this a defect in RQM behaviour.
This behavior is working as designed. The qm:testplan/qm:relatedChangeRequest property is the same as the OSLC oslc_qm:TestCase/oslc_qm:relatedChangeRequest property and the qm:executionresult/qm:defect property represents the OSLC oslc_qm:TestResult/oslc_qm:affectedByChangeRequest property. Paul,
Hi Marc,
I've done some more testing and documented this in a defect (on Jazz).
Paul Slauenwhite
commented Oct 28 '13, 6:38 a.m.
| edited Oct 31 '13, 10:58 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Hi Marc,
showing 5 of 6
show 1 more comments
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.