Problem generating multiple test cases using RQM Utility
The problem I have right now is that all the new test cases overwrite each other. As if the latest Test Case current webID does not get incremented correctly.
Is there a required "commit" or do i need to add a long pause between each update ?
I am using version 4.0.1
Accepted answer
Are you able to generate your own unique IDs? If so, what you could do is just create the test case with an external ID. Again, from that link: "...A unique ID provided by the user when creating a new resource with a PUT...".
I just tried it with Poster by adding my ID to the URL, e.g. .../urn:com.ibm.rqm:testcase/myID1. The response was 201, created. I can keep adding new ones with /myID2, /myID3, etc., even with the same XML body, new TCs are created.
Toni
2 other answers
Comments
I am using the java RQMUrlUtility:
Basically i try to create about 35 different test cases in a row, but only the 1st one gives me a 201 return code (new) the other 34 returns me a 200 return code (updated) which does not make sense because I am not specifying any WebID and I am uploading different XML files
Here is the trace (for the first 2 entries only):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<<<<<----- [ RQMUrlUtility ] ---->>>>>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RQMUrlUtility: Connected to https://10.10.23.61:9443 using project "Archive+Dev+Playground"
RQMUrlUtility: Calling [ HTTP PUT ] method to upload XML from a specified file to URL
RQMUrlUtility: Server Response code: 201
RQMUrlUtility: [ SUCCESS ] XML string from file : "C:\Users\benoitl\AppData\Local\Temp\RQM2579577557869613250.xml" written to URL : "https://10.10.23.61:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Archive+Dev+Playground/testcase/urn:com.ibm.rqm:testcase "
Disconnecting from the IBM Rational Quality Manager server.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<<<<<----- [ RQMUrlUtility ] ---->>>>>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RQMUrlUtility: Connected to https://10.10.23.61:9443 using project "Archive+Dev+Playground"
RQMUrlUtility: Calling [ HTTP PUT ] method to upload XML from a specified file to URL
RQMUrlUtility: Server Response code: 200
RQMUrlUtility: [ SUCCESS ] XML string from file : "C:\Users\benoitl\AppData\Local\Temp\RQM5576112222695598570.xml" written to URL : "https://10.10.23.61:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Archive+Dev+Playground/testcase/urn:com.ibm.rqm:testcase "
Disconnecting from the IBM Rational Quality Manager server.