Import Execution Result in RQM
![](http://jazz.net/_images/myphoto/976b1cb5ebda643620faf0a270194aac.jpg)
21 answers
![](http://jazz.net/_images/myphoto/976b1cb5ebda643620faf0a270194aac.jpg)
what was the URL you used?
https://10.6.11.30:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/AREA+SPAG-TFA/executionresult/33730369
What was the XML you tried to post?
<ns2:executionresult xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns="http://purl.org/dc/elements/1.1/" xmlns:ns10="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1" xmlns:ns11="http://jazz.net/xmlns/alm/qm/qmadapter/task/v0.1" xmlns:ns3="http://jazz.net/xmlns/alm/v0.1/" xmlns:ns4="http://schema.ibm.com/vega/2008/" xmlns:ns5="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns6="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/" xmlns:ns7="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" xmlns:ns8="http://jazz.net/xmlns/alm/qm/qmadapter/v0.1" xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1">
<identifier xmlns="http://purl.org/dc/elements/1.1/">https://10.6.11.30:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/AREA+SPAG-TFA/executionresult/urn:com.ibm.rqm:executionresult:33730369</identifier>
<title xmlns="http://purl.org/dc/elements/1.1/">SW1.1.2 - Msg. A63 di cancellazione corretto - ITB ( 2 )</title>
<ns5:updated>2011-01-14T00:00:00.100Z</ns5:updated>
<ns5:state>com.ibm.rqm.execution.common.state.pass</ns5:state>
<ns5:owner>rcaniatti</ns5:owner>
<ns8:machine>Local Computer</ns8:machine>
<ns8:iterations>1</ns8:iterations>
<ns8:starttime>2011-01-13T00:00:00.978Z</ns8:starttime>
<ns8:endtime>2011-01-13T01:00:00.978Z</ns8:endtime>
<ns8:pointspassed>100</ns8:pointspassed>
<ns8:pointsfailed>0</ns8:pointsfailed>
<ns8:pointsattempted>100</ns8:pointsattempted>
<ns8:pointsblocked>0</ns8:pointsblocked>
<ns8:pointsinconclusive>0</ns8:pointsinconclusive>
<ns8:remoteexecution>false</ns8:remoteexecution>
<ns2:stateid/>
<ns2:pointspermfailed>0</ns2:pointspermfailed>
<ns8:stepResults>
<ns8:stepResult endTime="2011-01-13T01:00:00.978Z" ns3:id="_zr0fwVzTEd-6SILIyD0QAQ" result="com.ibm.rqm.execution.common.state.passed" startTime="2010-05-11T08:04:22.302Z">
<ns8:startTime>2011-01-13T00:00:00.978Z</ns8:startTime>
<ns8:endTime>2011-01-13T01:00:00.978Z</ns8:endTime>
<ns8:result>com.ibm.rqm.execution.common.state.passed</ns8:result>
<ns8:expectedResult>
<div:div xmlns:div="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml"> </div:div>
</ns8:expectedResult>
<ns8:description>
<div:div xmlns:div="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml"> </div:div>
</ns8:description>
<ns8:stepType>com.ibm.rqm.execution.common.elementtype.execution</ns8:stepType>
</ns8:stepResult>
</ns8:stepResults>
<ns2:testcase href="https://10.6.11.30:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/AREA+SPAG-TFA/testcase/urn:com.ibm.rqm:testcase:640"/>
<ns2:testplan href="https://10.6.11.30:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/AREA+SPAG-TFA/testplan/urn:com.ibm.rqm:testplan:69"/>
<ns2:executionworkitem href="https://10.6.11.30:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/AREA+SPAG-TFA/executionworkitem/urn:com.ibm.rqm:executionworkitem:_15KYMB7-EeCdwp5CBPGl0Q"/>
</ns2:executionresult>
What was the full error returned from the command?
The error is "RQMUrlUtility: Server Response code: 400" and nothing else.
Thank you in advance for any suggests.
![](http://jazz.net/_images/myphoto/976b1cb5ebda643620faf0a270194aac.jpg)
The URL for the executionworkitem element doesn't look correct. You shouldn't have a "urn:com.ibm.rqm:executionworkitem" prefix followed by a GUID. If that executionworkitem is something you created in a previous post, the the URL would look more like this:
https://10.6.11.30:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/AREA+SPAG-TFA/executionworkitem/_15KYMB7-EeCdwp5CBPGl0Q
Be sure you can do a get on that URL.
https://10.6.11.30:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/AREA+SPAG-TFA/executionworkitem/_15KYMB7-EeCdwp5CBPGl0Q
Be sure you can do a get on that URL.
![](http://jazz.net/_images/myphoto/976b1cb5ebda643620faf0a270194aac.jpg)
Hi All,
I have also same problem of importing execution result.
please provide a sample xml template for import execution result. And
what is the executionworkitem when we are importing the execution result for new execution.please help me out in this.
Hi Jyothi,
executionworkitem is actually Testcase Execution Record (TER).
Every Execution result should belong to one TER. Therefore when creating a new Testcase Execution Result, you need to provide link to corresponding TER. I hope it helps.
You can find schema of executionresult at https://<yourserver>:9443/<qm>/service/com.ibm.rqm.integration.service.IIntegrationService/qm.xsd
![](http://jazz.net/_images/myphoto/976b1cb5ebda643620faf0a270194aac.jpg)
Hi All,
I have also same problem of importing execution result.
please provide a sample xml template for import execution result. And
what is the executionworkitem when we are importing the execution result for new execution.please help me out in this.
Hi Jyothi,
executionworkitem is actually Testcase Execution Record (TER).
Every Execution result should belong to one TER. Therefore when creating a new Testcase Execution Result, you need to provide link to corresponding TER. I hope it helps.
You can find schema of executionresult at https://<yourserver>:9443/<qm>/service/com.ibm.rqm.integration.service.IIntegrationService/qm.xsd
Sorry the link would be
https://<rqm>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/schema/qm.xsd
![](http://jazz.net/_images/myphoto/976b1cb5ebda643620faf0a270194aac.jpg)
Thank you Pramod
now i got the logic thank you so much :lol:
Hi Jyothi,
executionworkitem is actually Testcase Execution Record (TER).
Every Execution result should belong to one TER. Therefore when creating a new Testcase Execution Result, you need to provide link to corresponding TER. I hope it helps.
You can find schema of executionresult at https://<yourserver>:9443/<qm>/service/com.ibm.rqm.integration.service.IIntegrationService/qm.xsd
Sorry the link would be
https://<rqm>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/schema/qm.xsd
now i got the logic thank you so much :lol:
Hi All,
I have also same problem of importing execution result.
please provide a sample xml template for import execution result. And
what is the executionworkitem when we are importing the execution result for new execution.please help me out in this.
Hi Jyothi,
executionworkitem is actually Testcase Execution Record (TER).
Every Execution result should belong to one TER. Therefore when creating a new Testcase Execution Result, you need to provide link to corresponding TER. I hope it helps.
You can find schema of executionresult at https://<yourserver>:9443/<qm>/service/com.ibm.rqm.integration.service.IIntegrationService/qm.xsd
Sorry the link would be
https://<rqm>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/schema/qm.xsd
![](http://jazz.net/_images/myphoto/976b1cb5ebda643620faf0a270194aac.jpg)
Hi All,
when i am trying to import the TestScript it's throwing 500 error. Please check that xml code.
Is any mistake in the xml file.
<xml>
<testscript>
<title>JTestSCriptimport</title>
<description>test script under test case A of test suite 1</description>
<scripttype>Manual</scripttype>
<steps>
<step>
<name>open finance application in browser</name>
<title>open finance application in browser</title>
<description>
open finance application in browser
</description>
<expectedResult>
app should open
</expectedResult>
</step>
</steps>
</testscript>
when i am trying to import the TestScript it's throwing 500 error. Please check that xml code.
Is any mistake in the xml file.
<xml>
<testscript>
<title>JTestSCriptimport</title>
<description>test script under test case A of test suite 1</description>
<scripttype>Manual</scripttype>
<steps>
<step>
<name>open finance application in browser</name>
<title>open finance application in browser</title>
<description>
open finance application in browser
</description>
<expectedResult>
app should open
</expectedResult>
</step>
</steps>
</testscript>
page 1of 1 pagesof 2 pagesof 3 pages