web services - Unable to get RQM Test case by testcase title using REST API -


i using java rqm rest api fetch data rqm tool

i have test case in project clm test (quality management). test case title

pre-paid residential customer post-paid consumer (qatari-national) customer migration.(existing customer having prepaid subscription)

internal id 3271 trying fetch test case details test suite. while fetching test case details testsuite, getting test case href

<testcase href= "https://clm.techmahindra.com:9443/qm/service/com.ibm.rqm.integration.service.iintegrationservice/resources/clm+test+%28quality+management%29/testcase/pre-paid_residential customer_to_post-paid_consumer_(qatari-national)_customer_migration.(existing_customer_having_only_prepaid_subscription).xml" /> 

if observe test case href, contains space after 'paid_residential' when querying server href, getting urisyntaxexception due space in string.

one more strange thing is: when query server using restclient(firefox plugin) query says 400 error - bad request. when click on testcase href recieved in testsuite record, able testcase record.

please me data.

it seems title contains special characters throws urisyntaxexception when try convert href uri percentage encoding format. used uri java class conversion , failed convert string (href= "https://clm.techmahindra.com:9443/qm/service/com.ibm.rqm.integration.service.iintegrationservice/resources/clm+test+%28quality+management%29/testcase/pre-paid_residential customer_to_post-paid_consumer_(qatari-national)_customer_migration.(existing_customer_having_only_prepaid_subscription).xml")

but when tried urlencoder class, worked. able record test cases having special characters in it.

snippet:

string struri = urlencoder.encode(href, "utf-8");  

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -