How to update run status of a test case in RQM using REST API?
![](http://jazz.net/_images/myphoto/386ab36be3cf20ef7769f0684eb9c9e8.jpg)
3 answers
![](http://jazz.net/_images/myphoto/386ab36be3cf20ef7769f0684eb9c9e8.jpg)
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
![](http://jazz.net/_images/myphoto/386ab36be3cf20ef7769f0684eb9c9e8.jpg)
Hi Reshma,
![](http://jazz.net/_images/myphoto/386ab36be3cf20ef7769f0684eb9c9e8.jpg)
I got the command to update the execution results as below -
![](http://jazz.net/_images/myphoto/386ab36be3cf20ef7769f0684eb9c9e8.jpg)
Hi Libin,
Comments
![](http://jazz.net/_images/myphoto/4ee0243059850e593be8cc6c15368389.jpg)
Have a look at this how to create xml to specify the target for PUT/POST request:
https://jazz.net/wiki/bin/view/Main/RqmApi#Nested_PUT
![](http://jazz.net/_images/myphoto/386ab36be3cf20ef7769f0684eb9c9e8.jpg)
Hi libin.
From my point of you depends a correct answer to your question a bit on how you design your automation environment and which adapter you're using.
If you're new to RQM I assume you use the Command Line Adapter provided by IBM to trigger your automations. So the adapter usually returns certain information automatically. You should also be able to upload a custom html report as file attachment and append it to execution result. There exists a quite good article on jazz.net describing the usage.
Nevertheless the report won't be embedded into the RQM execution result page which means the report needs to be opened in a separate window.
In case you're familiar with Java it should be possible to extend the command line adapter if you'd like to embed the html report to the Execution Results web page. The adapter source code should be part of the download package.
Another alternative for test automation is the OSLC Lyo Framework. There exist an out-of-the-box test adapter sample which can be extended using Java. With Lyo you're able to include result reports right into the execution result page.
Find more information about Lyo on the Eclipse project web page and the above mentioned adapter source code can be found in the Lyo Git repository available here.