Test case REST API has identifier filed as test case title instead of urn:com.ibm.rqm:testcase:32
i'm accessing testcases via Rest API . i see few of the testcases Identifer are in format show below. https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/testcase/urn:com.ibm.rqm:testcase:32
but few of them have title as there ID as show below.
https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/testcase/TEST_CASE _TITLE
this is causing problems for accessing testcases which have special characters in there title.
Is there a solution for this? is there any workaround?
2 answers
Hi Anup,
The testcases which have been created from RQM UI will have ID as mentioned in 1st link. But if the testcase is imported using some importer for eg. RQMExcelImporter, the ID can be customized by user which results in ID mentioned by 2nd link.
There is no way to change or modify this ID
Thanks
The testcases which have been created from RQM UI will have ID as mentioned in 1st link. But if the testcase is imported using some importer for eg. RQMExcelImporter, the ID can be customized by user which results in ID mentioned by 2nd link.
There is no way to change or modify this ID
Thanks
I am curious how those IDs with space got into RQM. I tried with RQM 4.0.6 and some special characters such as space( ), plus(+) and slash(/) got converted to something else before being imported into RQM. In other words, I did not find a way to make the IDs have space in them. I used the keyword
XLSArtifactID
to specify the external ID and could see the ID changes even in the progress window.
http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0/topic/com.ibm.rational.test.qm.doc/topics/t_create_config_files_import_excel_artifacts.html
I think you are in an awkward position now with regard to handling such data. Try to contact Support and see if you can get some further assistance.
http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0/topic/com.ibm.rational.test.qm.doc/topics/t_create_config_files_import_excel_artifacts.html
I think you are in an awkward position now with regard to handling such data. Try to contact Support and see if you can get some further assistance.
Comments
anup g
May 28 '14, 7:45 a.m.for example :
test case title : Test case 1 (hello + world)
url feed:
https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/testcase/Test+case+1+(Hello+++world)
Don Yang
May 28 '14, 7:46 a.m.Do you mean that if you access to test case by id(corresponding to TEST_CASE _TITLE) with:
https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/testcase/urn:com.ibm.rqm:testcase:xx
it does not work for you and you have to use TEST_CASE _TITLE instead?
anup g
May 28 '14, 8:31 a.m.Hi Don Yang,
i use the below url to get all the test cases :
https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/testcase/
Inside response xml i have the ID tag which hold links for the testcase : test case 1 (hello + world)
https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/testcase/test+case+1+(hello +++world)
when i try this link i get 404 error.