RQMUrlutility - Create a new executionworkitem
We can't create a new executionworkitem through the REST API using RQMUrlutility.
We can succesfully GET a executionworkitem, but using PUT to create a new seems harder then expected. java -jar RQMUrlUtility.jar -command PUT -user xxxx -password xxxx -filepath c:\rqmurl\ter.xml -url https://xxx/jazz/service/com.i The ter.xml file is the same file as the GET but without the tags identification and webId. Has anyone been succesfull creating new TER? If so, please give me some directions. /Best Regards, Bengt |
11 answers
I am assuming you are seeing a 303 (See Other) response code. A TER can only be associated to one test case so if you are PUTting/POSTing a duplicate TER (e.g. same test case), you will get a 303 with the ID of the original TER in the Content Location header of the response.
If you are not receiving a 303 response code, what is the error? |
Ok, I have tried with a new test case but without any success.
If we start from the beginning. Is the following syntax? java -jar RQMUrlUtility.jar -command PUT -user xxxx -password xxxx -filepath c:\rqmurl\ter.xml -url https://xxxx/jazz/service/com.i ter.xml (seems as I can't post it correctly):
|
Are you using the project area alias (see https://jazz.net/wiki/bin/view/Main/RqmApi#projectAlias) for project in the -url?
|
Are you using the project area alias (see https://jazz.net/wiki/bin/view/Main/RqmApi#projectAlias) for project in the -url? If the project alias would be wrong, could I really be succesfull using a GET then? GET is working, POST is not. Right now I get following error message from the utility - RQMUrlUtility: Server Response code: 415 |
Correct.
I believe you are running into https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/58732. |
Correct. How can I use the workaround (using PUT) as PUT needs an item ID, which I don't have as the item should be created? |
The RQM Reportable REST API can create resources using a PUT request with an external ID (see https://jazz.net/wiki/bin/view/Main/RqmApi#External_ID). For example,
PUT https://<RQM>:<RQM>/<RQM>/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<RQM>/executionworkitem/1234 However, TERs (or executionworkitem) are considered equal when they reference the same test case(s). As such, a PUT request with an external ID turns into an update of the existing TER (or executionworkitem) with a different ID. |
I'm using RQM Reportable REST API to create TER and ER records using http PUT. I can successfully create TER and ER OK for the first time and they are associated to each other as well as to the right test case and test script. However, I cannot create a new TER if my test case already has a TER and got http 303 error.
What do I need to do to trigger a creation of new TER for a particular test case? Is it in the TER xml file? Here is my cmd: PUT https://<RQM>:<RQM>/<RQM>/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<RQM>/executionworkitem/ter123.xml Thanks, |
You cannot create more than one test execution record per test case, environment, plan, and milestone. From GUI I can create new TER for a given test case. Will RQM REST API add support for this in the future? Can I query existing TER for a given test case? If so, please let me know how. At least I can add new ER to existing TER of a test case. Thanks, Comments You cannot create more than one test execution record per test case, environment, test plan, and milestone/iteration in the RQM Reportable REST API or RQM UI. You must have changed one/more of these test execution record properties.
|
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.