How to update run status of a test case in RQM using REST API?
![]()
Hi,
I am new to IBM Tools.I have created an automation framework to execute the test cases sequentially.I need to report the status of the run and customized html report generated by the framework back to RQM after each run.Can some one give some sample code to start with?
|
3 answers
![]()
Hi libin,
You can try using RQMUrlUtility to update the execution result of the Test Case. You can also attach a file to TestCase Result. Refer https://jazz.net/wiki/bin/view/Main/RQMURLUtility for more details. Its an open source utility so you can even refer the code how we use the RQM Reportable REST API to create/update TestArtifact in RQM Comments Hi Reshma,
Thanks for for your quick response.I am new to IBM tools.It would be great if you can provide a sample code for updating test case status using RQM utility.Attached is the screenshot of the Test plan.I would like to update the status of a test case with ID:6 as Passed or Failed.
I got the command to update the execution results as below -
java -jar RQMUrlUtility.jar -command GET -user ADMIN -password ADMIN -filepath file.xml -url https://localhost:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/project area/executionresult/urn:com.ibm.rqm:executionresult:id
Can some one give the schema of xml?
|
![]() Hi Libin,
Were you able to solve your issue. If yes can you please guide me solving the issue. If possible can you please provide a sample code.
Thank you
Sridhar
Comments Have a look at this how to create xml to specify the target for PUT/POST request:
|
![]() Hi libin.
|
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.