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

Need help with Execution Result and Execution Workitem XML

Hi,

I'm trying to create exectution result and execution work item in XML and then use the URL utility to upload them into RQM. I'm able to successfully upload the execution result and execution work item XMLs. But there are problems:

- information missing. In the exectuion work item XML, I have <ns2:currentexecutionresult> and <ns2:executionresult>. After upload, those two fields are gone.

- information also missing in the execution result XML. I have <ns3:state>com.ibm.rqm.execution.common.state.failed</ns3:state>
<ns7:machine>testmachine</ns7:machine>
<ns7:starttime>2010-12-03T02:01:45.421Z</ns7:starttime>
<ns7:endtime>2010-12-03T02:02:14.312Z</ns7:endtime>
After upload, <state> field and <machine> field are gone. Start time and End time became 1970-01-01T00:00:00.000Z
The points info. on passed/attempted/failed/blocked/inconclusive became zero.

- In RQM GUI, the execution result shows as "Not Run", thus it can't be opened.

- in RQM GUI, execution work item can be displayed, but no last result even though the linkage has been set in the both XML files.

Can anyone please tell me what went wrong? Also, is there a list of required and option fields for each test artifact in RQM when creating them externally in XML files?

Many thanks!

0 votes



2 answers

Permanent link
You want to create your execution work item first. When you create it, don't bother specifying any currentexecutionresult or executionresult elements.

Second, create the executionresult providing the link to the executionworkitem you just created. When you create a new executionresult, RQM will automatically set the currentexecutionresult of the associated EWI and add the result to the EWI list of execution results.

In terms of the other data that is missing, be certain you are using the correct namespace. Do a get on an result that was created via the UI and verify the namespace being used for those elements is correct.

Also, you should also tell folks what version of RQM you are using. Maybe this is an issue that has already been fixed.

0 votes


Permanent link
Thank you!
It is the namespace problem. I have two RQM servers, both are 2.0.1.1 with the same iFix. The only difference is one is on windows and the other is on Linux. The XML file that worked on one RQM didn't work on the other. I then looked at the namespaces used, they are little different.

For example:
One has <ns3:owner>, while the other is <ns5:owner>;
one has <ns9:frequency>, and the other is <ns6:frequency>

Why is that?


You want to create your execution work item first. When you create it, don't bother specifying any currentexecutionresult or executionresult elements.

Second, create the executionresult providing the link to the executionworkitem you just created. When you create a new executionresult, RQM will automatically set the currentexecutionresult of the associated EWI and add the result to the EWI list of execution results.

In terms of the other data that is missing, be certain you are using the correct namespace. Do a get on an result that was created via the UI and verify the namespace being used for those elements is correct.

Also, you should also tell folks what version of RQM you are using. Maybe this is an issue that has already been fixed.

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: Mar 08 '11, 12:16 a.m.

Question was seen: 4,979 times

Last updated: Mar 08 '11, 12:16 a.m.

Confirmation Cancel Confirm