Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Import Execution Result in RQM

I tried to import ExecutionResult in RQM using RQMUrlUtil.jar, but I received RQMUrlUtility: Server Response code: 400. I used this jar to import test plan and test cases with success, but not with execution result. Can someone give me any suggests?

0 votes



21 answers

Permanent link
what was the URL you used? What was the XML you tried to post? What was the full error returned from the command?

0 votes


Permanent link
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.

0 votes


Permanent link
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.

0 votes


Permanent link
As you wrote, the URL for the executionworkitem was wrong. I mended it and I did further modifies in my xml and now the upload works fine.

Thank you for your collaboration
Alessandro.

0 votes


Permanent link
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.

0 votes


Permanent link
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

0 votes


Permanent link
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

0 votes


Permanent link
Thank you Pramod
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

0 votes


Permanent link
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>

0 votes


Permanent link
I would suggest to do a GET on existing Test script and observe the difference
Things to check,
Required fields as per schema
Correctness of name space

0 votes

1–15 items
page 1of 1 pagesof 2 pagesof 3 pages

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jan 17 '11, 4:58 a.m.

Question was seen: 14,301 times

Last updated: Jan 17 '11, 4:58 a.m.

Confirmation Cancel Confirm