How to update TestCase status in RQM using TestCase name and project name
Hi,
I have requirement to update TestCase status (Pass/Fail/Incomplete etc) in RQM. I have input as Project Name and TestCase name but not sure how to retrieve that testcase details from RQM server to update status. I have below GET and PUT rest API for update status but not sure how to retrieve id based on Project name and Testcase name that needs to pass to this API.
java -jar "D:\RQMUrlUtility.jar" -command GET -user xxxx -password xxxx -filepath "D:\Temp.xml" -url "https://rqmserver.abcde.corp.ae:9443/qm2/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Regression Suite - 2016/executionresult/urn:com.ibm.rqm:executionresult:0"
Please help me to resolve this issue.
Regards,
Rajeev
One answer
I think what you want to do is use the "fields" parameter to query for the testcases with a particular title. You can find the documentation on how this works here: https://jazz.net/wiki/bin/view/Main/RqmApi#fields
Example:
You can select all the elements of the test case with name ${testCaseName} in project area ${projectAreaAlias} with the below URL.
https://${hostName}:9443/${contextRoot}/service/com.ibm.rqm.integration.service.IIntegrationService/resources/${projectAreaAlias}/testcase?fields=feed/entry/content/testcase[title="${testCaseName}"]/*
A concrete example might look like:
https://localhost:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/testcase?fields=feed/entry/content/testcase[title="Case A"]/*
I hope that answers your question.
Comments
showing 5 of 8
show 3 more comments