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

What is <ns2:stateid> in execution result feed?

Hi,

I'm trying to create execution result feed externally in XML and then use the URL utility to upload it to RQM. While I was populating the fields in an execution result, I'm not sure what to put for stateid field.

I had a look at some existing execution records:
ns2:stateid>_I9PKEzbkEd-Hbt_es8WUYg</ns2>
ns2:stateid>_IcxMc0LREeCDh8JnIOV3nw</ns2>
So my question is how is the stateid generated and what does it mean? If I want to create a value it, how should I do that?

Thank you.

0 votes



5 answers

Permanent link
Any one can help?

Hi,

I'm trying to create execution result feed externally in XML and then use the URL utility to upload it to RQM. While I was populating the fields in an execution result, I'm not sure what to put for stateid field.

I had a look at some existing execution records:
ns2:stateid>_I9PKEzbkEd-Hbt_es8WUYg</ns2>
ns2:stateid>_IcxMc0LREeCDh8JnIOV3nw</ns2>
So my question is how is the stateid generated and what does it mean? If I want to create a value it, how should I do that?

Thank you.

0 votes


Permanent link
Hi,

I'm trying to create execution result feed externally in XML and then use the URL utility to upload it to RQM. While I was populating the fields in an execution result, I'm not sure what to put for stateid field.

I had a look at some existing execution records:
ns2:stateid>_I9PKEzbkEd-Hbt_es8WUYg</ns2>
ns2:stateid>_IcxMc0LREeCDh8JnIOV3nw</ns2>
So my question is how is the stateid generated and what does it mean? If I want to create a value it, how should I do that?

Thank you.


See http://jazz.net/projects/rational-quality-manager/api-doc-2.0/api-files/schemas/qm_xsd/elements/stateid.html (linked from http://jazz.net/wiki/bin/view/Main/RqmApi) for the stateid definition. Within execution results, the stateid property is deprecated (see http://jazz.net/projects/rational-quality-manager/api-doc-2.0/) and not required for PUT/POSTing execution results.

0 votes


Permanent link
Every time an execution result is modified a new "state" is created and it has a stateId. Typically customers never see or think about the stateId. However internally one of the uses of stateId is to prevent one client from getting a resource, then posting that resource and overwriting changes that could have been made by another client after the first GET was done.

Basically, if you did a GET on a resource and someone else updates it, a new stateId is generated. So when you do the PUT to update the resource the stateId you pass from your original GET wouldn't match the current stateId and an exception will be thrown.

The stateId is optional and if you do not specify it when updating the resource, the resource will be updated regardless if a second client changed it, since your original GET.

0 votes


Permanent link
thank you for your help!

0 votes


Permanent link
Is there a guide or documention on what fields in each test artifact are required and what are optional?

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 02 '11, 7:07 p.m.

Question was seen: 5,998 times

Last updated: Mar 02 '11, 7:07 p.m.

Confirmation Cancel Confirm