Is there a rest api in rqm to validate a test case is present in a project area by using the test case title?
Hi,
I am trying to validate if a test-case is present in a project area. I need to do it in two ways, 1) by using test-case title 2) by using test-case id ( I got the solution for this)
I have read other post where I can use
1) https://<url>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project area>/testcase
2) https://<url>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project area>/testcase/urn:com.ibm.rqm:testcase:'test-casae title' (This does not work, for obvious reason, "urn:com.ibm.rqm.testcase" cannot be use with string)
The first option returns a huge amount of xml data which is causing problem while transferring it from rqm server.
Is there any way to solve this problem?
Thanks,
Krishnananda
Accepted answer
Hi Krishnananda,
Try:
GET https://<url>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project area>/testcase/<id>
See https://jazz.net/wiki/bin/view/Main/RqmApi#id for the different types of IDs.
Or you can try fields filtering:
GET https://<url>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project area>/testcase?fields=feed/entry/content/testcase[title='test case title']/*
See https://jazz.net/wiki/bin/view/Main/RqmApi#fields for more information on fields filtering.