RQM Rest API - description for each step result
We are using the RQM Rest API for submitting results from our testing framework. Everything works fine, for each step we can set properties like "actualResult", "result", "startTime" and "endTime". The problem is that we also want to send a description for each execution step. Using the Rest API the description for each step is empty after submission. While developing we've been using official api documentation and our queries are based on this xml schema. Perhaps we can use the "properties" node? Is it somehow possible?
2 answers
I would suggest following https://jazz.net/wiki/bin/view/Main/RqmApi#ScenarioCreateTip.
Thanks for your hint!
It turned out that the tool we've been using to generate RQM's execution results was using invalid xml namespaces.
working example:
<?xml version="1.0" encoding="UTF-8"?>
<ns2:executionresult xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/"
xmlns:ns4="http://purl.org/dc/elements/1.1/" xmlns:ns5="http://jazz.net/xmlns/alm/v0.1/"
xmlns:ns8="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1">
<ns4:title>title</ns4:title>
<ns5:state>com.ibm.rqm.execution.common.state.passed</ns5:state>
<ns8:starttime>2011-12-09T05:48:04.038Z</ns8:starttime>
<ns8:endtime>2011-12-09T05:48:09.413Z</ns8:endtime>
<ns8:pointspassed>1</ns8:pointspassed>
<ns8:pointsfailed>0</ns8:pointsfailed>
<ns8:pointsattempted>1</ns8:pointsattempted>
<ns8:pointsblocked>0</ns8:pointsblocked>
<ns8:pointsinconclusive>0</ns8:pointsinconclusive>
<ns8:pointspermfailed>0</ns8:pointspermfailed>
<ns8:stepResults>
<ns8:stepResult>
<ns8:actualResult>actual result</ns8:actualResult>
<ns8:endTime>408565698</ns8:endTime>
<ns8:result>com.ibm.rqm.execution.common.state.failed</ns8:result>
<ns8:startTime>408565698</ns8:startTime>
<ns8:description>
<div:div xmlns:div="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml">
Restart the server:
<span xmlns="" xmlns:ns14="http://www.w3.org/1999/xhtml"
style="font-weight: bold;">
</span>
<span xmlns="" xmlns:ns14="http://www.w3.org/1999/xhtml"
style="font-weight: bold;" />
<span xmlns="" xmlns:ns14="http://www.w3.org/1999/xhtml"
style="font-style: italic;">
</span>
</div:div>
</ns8:description>
</ns8:stepResult>
</ns8:stepResults>
<ns2:testcase
href="https://SERVER:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/PROJECT/testcase/urn:com.ibm.rqm:testcase:666" />
<ns2:testscript
href="https://SERVER:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/PROJECT/testscript/urn:com.ibm.rqm:testscript:777" />
<ns2:executionworkitem
href="https://SERVER:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/PROJECT/executionworkitem/urn:com.ibm.rqm:executionworkitem:888" />
<ns2:testphase
href="https://SERVER:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/SERVER/testphase/urn:com.ibm.rqm:testphase:999" />
</ns2:executionresult>
Comments
Hello Lucas, I'm new to using RQM to run our tests. I've got a scenario where I am using a Third Party tool to run semi-automated tests and want those results pushed back to the RQM execution step that triggered my semi-automation. How do you know where you are inserting this result data into RQM? Our third party tool is a generic web service that can be called by clicking on a link within RQM to initiate some automated action. Currently when I click on the link RQM does not send any specific header in the HTTP request so that I know where to push my results. Ideally I would like my CGI server to generate output like you have above and submit it to RQM, but am having a hard time figuring where to send this data.