It's all about the answers!

Ask a question

Problem in xml request. Two environments return different types of ids.


Ignacio Barrau (11158) | asked Sep 04 '13, 3:38 p.m.

Hi. I am having a problem with my code in an environment obtaining an xml with StringRQMUrlGET. I have two environments. Both have clm 4.0.2. Their difference is: 

1-Tomcat 7 and db2 express c 9.7.

2- Websphere and oracle.

I wrote some code that involve a get of a test suite xml. The thing is, when i try to get a test suite with its id, i have different results. I get the test suite like this:

https://<public uri>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<projectname>/testsuite/urn:com.ibm.rqm:testsuite:3361

Then i have different results on the environments:

- In number 1, i have the tests cases from the 3361 test suite, they are with internal id:

 https://<public uri>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<projectname>/testcase/urn:com.ibm.rqm:testcase:391

- In number 2, the xml has test cases with UUID with this:

https://<public uri>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<projectname>/testcase/391

Why should this be? i need to return the internal id, but i don't know why the second environment is returning the other one.

2 answers



permanent link
Ara Masrof (3.2k15) | answered Sep 05 '13, 8:15 a.m.
JAZZ DEVELOPER
 Ignacio,
The two different environments you are referring to are using two different physical databases yet they are suppose to be mirror images of each other correct? 
If so, how did you 'move' the data from one DB to the other (i.e. Repotools, Copy Utility, DB back up.....etc)?

Comments
Ignacio Barrau commented Sep 05 '13, 8:32 a.m.

Hi Ara. The different environments are complete different (work items, artifacts, etc.) They are not related.

Number 1 is where i work and Number 2 is where my friend work. We have different data. We have the both have clm 4.0.2. We both need the same code i am working on.
That is why i am so surprised to see that he has a different result with the same lines. Could this be configuration problem?


1
Ara Masrof commented Sep 05 '13, 8:52 a.m.
JAZZ DEVELOPER

Ignacio,

If these are two distinct databases, then Paul's earlier response would address the issue. The two test cases in question were created differently as Paul noted; therefore the URL within the XML of the Test Suite would reflect this difference (one using an internal ID and the other an external ID). 


Ignacio Barrau commented Sep 05 '13, 11:53 a.m.

Aaaah. Now i understand what you people where saying to me haha. All-right, the problem now is that the test cases where created in rqm web. How can i know if my rqm creates them with post or put? can i configure that somewhere?


Paul Slauenwhite commented Sep 05 '13, 12:47 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

The ID gives the only indication how the test artifact was created.


permanent link
Paul Slauenwhite (8.4k12) | answered Sep 05 '13, 7:39 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Both test case URLs are valid.  The test case in number 1 was created with a POST request or in the RQM web UI so it uses an internal ID (see https://jazz.net/wiki/bin/view/Main/RqmApi#Internal_ID).  The test case in number 2 was created with a PUT request so it uses an external ID (see https://jazz.net/wiki/bin/view/Main/RqmApi#External_ID)

Comments
Ignacio Barrau commented Sep 05 '13, 8:02 a.m. | edited Sep 05 '13, 8:05 a.m.

Hi Paul, thanks for answering. Interesting information that one, but it is not my problem. My problem is when i call a GET for test suites; each environment returns different ids for testcases.

Your answer


Register or 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.