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
Comments
Thanks for quick response. I have tried with your provided URL but still not receiving expected test case details. I mean to say testcase id which I can refer for my next REST API for update status. This URL returns some different Testcases. I am new related to RQM so unable to understand issue. Is there any other way to handle this requirement?
One thing I observed that one testcase will belong to different Test Plan so I have to update status which is executed under recent test plan.
I guess maybe I don't fully understand your question. The URL in my example should return a feed of only the test cases with the title that you specify. It should return all of the properties of that test case. Is that not what you are seeing?
Let me brief about my requirement. I have two applications one is RQM where we have set of TestCases under one Project name, these testcases get executes under different TestPlan. Another side we have 3rd party Test automation tool. Whenever we run any testcase using 3rd party automation tool, I have to update testcase status (pass/fail/incomplete etc) in RQM under specific TestPlan. I have only two values common in two system 1. Project Name and 2. TestCase name.I am writing one component (using .NET C#) which will update Testcase status in RQM of particular TestPlan based on specific TestCase name and project name. I hope I have explained my requirement.
Thanks for your timing.
I am running test using C# application and through that application, I am trying to update state (as you mentioned) of execution records. I think you are having correct understanding of my requirement. Can you please let me know how to achieve this requirement. Thanks for your support.
Hi Paul
Unfortunately, no. You could GET a feed of test case results but you would have to PUT each test case result individually. Keep in mind, only those test case results that have been created will appear in the feed. Maybe in your case, only passed test case results exist.