RQM 6.0: how to get List of linked Test Case execution records in test case using OSLC/REST
![]()
I want to get the list of TCER in test case using OSLC/REST. I have looked into the Test case RDF but didn't find URL for TCER. Thanks in advance.
|
4 answers
![]()
Hi Naveen,
The TCER (com.ibm.rqm.execution.TestcaseExecutionRecord) references a test case (com.ibm.rqm.planning.VersionedTestCase) - see http://open-services.net/bin/view/Main/QmSpecificationV2#Resource_TestExecutionRecord. Have you considered using the RQM Reportable REST API? Comments Thanks Paul for response.
Naveen, we do not model the TCER reference in the test case. Instead, the test case reference is modeled in the TCER.
I have been trying hard to get this from Test case but as you said it is not there.
Yes:
Hi paul,
Two things:
showing 5 of 6
show 1 more comments
|
![]() Hi @Paul Slauenwhite your answer is very helpful, I tried following url but it gives 401 resource not found error. Could you please help me to correct my URL Comments https://d-9376:9443/qm/oslc_qm/contexts/_pbsSEP9wEee-4tAhUSdolw1>/resources/com.ibm.rqm.planning.VersionedTestCase/1 is not a proper URL for a OSLC test case. The last segment of the URL should be an UUID.
Thanks @Paul Slauenwhite for your valuable help. My problem is I want to get TCER associate with test case, but as per RQM specification Test case associate with TCER. I am trying to get TCER from test case using your query but getting 401 error. Can you please correct Anurag, your request query is correct except for the URL of the test case. The format should be:
|
![]() Hi @Paul Slauenwhite thanks for quick reply, I updated my test case url as below:
https://d-9376:9443/qm/oslc_qm/contexts/_pbsSEP9wEee-4tAhUSdolw1>/resources/com.ibm.rqm.planning.VersionedTestCase/1
But my requirement is I want to fetch tcer of test case using query. Can you please help me to build that query, which fetch tcer associate with test case. Here I pasted my url, please guide me to resolve query:
Comments ![]() FORUM MODERATOR / JAZZ DEVELOPER
The test case URL is still wrong.
Hi @Paul Slauenwhite , sorry for mistakes I am new to Jazz environment. My requirement is I want fetch TCER associated with test case. Can you please provide information or query for same. I tried your query which was previously provided by you, but it gives 401 error. My TCER id is 1 and test case id is also 1. Can you please correct my url/query. 1
Anurag, your query request URL is correct except:
Hi @Paul Slauenwhite, I corrected my URL please check,it also gives me 400 error:
https://d-9376:9443/qm/oslc_qm/contexts/_pbsSEP9wEee-4tAhUSdolw /resources/com.ibm.rqm.execution.TestcaseExecutionRecord?oslc.where=oslc_qm:runsTestCase= https://d-9376:9443/qm/oslc_qm/contexts/_pbsSEP9wEee-4tAhUSdolw/resources/com.ibm.rqm.planning.VersionedTestCase/_BKcLQfXtEeevMKrERW9Sqg
Surround the test case URL in < and >. You need to read/understand http://open-services.net/bin/view/Main/OSLCCoreSpecQuery.
@Paul Slaunwhite, Thanks , but I am not getting my question's answer. Can we get/fetch TCER which is associated with Test Case by using test case id or URL? @Paul Slaunwhite Could you please help me to tell How to get UUID of test case? ![]() FORUM MODERATOR / JAZZ DEVELOPER
Anurag, yes, you can read the TCERs associated with a specific test case (URL) using your query:
showing 5 of 8
show 3 more comments
|
![]() @Paul Slauenwhite Can you please help me to correct my URL in previous comment. I provided UUID of test case as mentioned by you for getting TCER which is associate with test case. But still I am not getting 400 resource not found error Comments Anurag, did you verify the test case URL by reading (GET) the test case?
|