rqm REST API: get all testphase with a title name is not working
Hello all,
i'm currently trying to get all the testphases with a specific title name. my query url looks like this:
https://baseurl/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/project/testphase?fields=feed/entry/content/testphase[title="ABC40_TT#433"]
https://baseurl/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/project/testphase?fields=feed/entry/content/testphase[title="ABC40_TT#433"]
Unfortunately it gets me not only the testphases with the title="ABC40_TT#433". There a lot of testphases with other title names. Can someone help me? :)
Thanks!
Thanks!
3 answers
That URI looks like an ETM reportable rest API. Have you looked at using OSLC Query?
For example, is there a query capability for test phases?
Comments
I've found out that the filter is not working due to the # character.
Does not work:
https://baseurl/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/project/testphase?fields=feed/entry/content/testphase[title="ABC40_TT#433"]
This works:
The query works only for nomal characters. Does someone have an idea how i can make it work for special characters like "#"?
Have you tried URL encoding the query parameter values in the request URI?
In general, all HTTP query parameter values should be URL encoded.
For example, instead of:
https://baseurl/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/project/testphase?fields=feed/entry/content/testphase[title="ABC40_TT#433"]
For example, instead of:
https://baseurl/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/project/testphase?fields=feed/entry/content/testphase[title="ABC40_TT#433"]
Encoding the fields query parameter value would give:
https://baseurl/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/project/testphase?fields=feed%2Fentry%2Fcontent%2Ftestphase%5Btitle%3D%22ABC40_TT%23433%22%5D
https://baseurl/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/project/testphase?fields=feed%2Fentry%2Fcontent%2Ftestphase%5Btitle%3D%22ABC40_TT%23433%22%5D
Comments
Ian Barnard
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Aug 11 '22, 9:58 a.m.Sanj Ratnam
Aug 11 '22, 1:28 p.m.