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

extension elements in executionresult are not stored

Hi,

I am trying to store executionresult resources via REST.
According to the API (http://jazz.net/projects/rational-quality-manager/api-doc-2.0/), an executionresult element may contain any number of custom elements in the end. Storing the following execution result:


<xml>
<qm>

<title>My test case</title>
<jzalm>2010-01-04T10:27:16.055Z</jzalm>
<jzalm>com.ibm.rqm.execution.common.state.passed</jzalm>
<jzalm>xxgardfp</jzalm>

<qmresult>afrodite</qmresult>
<qmresult>/a/b/c/log.txt, /d/e/f/log.txt</qmresult>
<qmresult>2010-01-01T00:00:00.000Z</qmresult>
<qmresult>2010-01-01T01:00:00.000Z</qmresult>
<qmresult>10</qmresult>
<qmresult>0</qmresult>
<qmresult>10</qmresult>
<qmresult>0</qmresult>
<qmresult>0</qmresult>
<qmresult>0</qmresult>


<Test>
<qm>
<Test>
<qm>

<qm>

<Extension>
<executionid>10000</executionid>
</qm>


with the following command


$ java -jar RQMUrlUtility.jar -user xxgardfp -password xxgardfp -command PUT -filepath er.xml -url "https://localhost:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/executionresult/1"


works fine.

However, when I fetch the resource with


$ java -jar RQMUrlUtility.jar -user xxgardfp -password xxgardfp -command GET -filepath er-downloaded.xml -url "https://localhost:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+M
anager/executionresult/1"


I get the following resource, which apparently is missing the executionid element that the original executionresult document contained.



<xml>
<executionresult>
<identifier>https://localhost:9443/jazz/service/com.ibm.rqm.integ
ration.service.IIntegrationService/resources/Quality+Manager/executionresult/1</identifier>
<title>My test case</title>
<state>com.ibm.rqm.execution.common.state.passed</state>
<updated>2010-01-04T12:55:27.603Z</updated>
<owner>xxgardfp</owner>
<machine>afrodite</machine>
<log>/a/b/c/log.txt, /d/e/f/log.txt</log>
<starttime>2010-01-01T00:00:00.000Z</startt>
<endtime>2010-01-01T01:00:00.000Z</endtime>
<pointspassed>10</pointspassed>
<pointsfailed>0</pointsfailed>
<pointsattempted>10</pointsattempted>
<pointsblocked>0</pointsblocked>
<pointsinconclusive>0</pointsinconclusive>
<pointspermfailed>0</pointspermfailed>
<testcase>
<executionworkitem>
<attachment>
</executionresult>


Is this a bug?

best regards, Peter

0 votes



One answer

Permanent link
Sorry,

the code formatting swallowed some XML tags and attributes.
The point, however, is that I have an
executionid element at the bottom of the submitted executionresult document that does not get returned in the GET request.

best regards, Peter

0 votes

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 04 '10, 8:00 a.m.

Question was seen: 4,041 times

Last updated: Jan 04 '10, 8:00 a.m.

Confirmation Cancel Confirm