Illegal character in query at index 47: /testcase?fields=feed/entry/content/testcase/(*|testplan[@href="-"]) error in rpe
Hi,
Am trying to configure RQM - RPE integration and i used the script for RQM testcase datasource,
var testPlanURL= _sessionInfo.getDatasourceProperty( "Test Plan", "URI", "-");
_sessionLogger.info( "XXX: " + testPlanURL);
var pos = testPlanURL.indexOf( "/testplan/");
var baseURL = testPlanURL.substr( 0, pos);
baseURL + "/testcase?fields=feed/entry/content/testcase/(*|testplan[@href=\"" + testPlanURL + "\"])";
_sessionLogger.info( "XXX: " + testPlanURL);
var pos = testPlanURL.indexOf( "/testplan/");
var baseURL = testPlanURL.substr( 0, pos);
baseURL + "/testcase?fields=feed/entry/content/testcase/(*|testplan[@href=\"" + testPlanURL + "\"])";
but it is showing aborting engine: Illegal character in query at index 47: /testcase?fields=feed/entry/content/testcase/(*|testplan[@href="-"])
Accepted answer
That is because the value of var testPlanURL is "-" and hence the same is used for filtering in the request URL.
...?fields=feed/entry/content/testcase/(*|testplan[@href="-"])
Make sure that data_source_name is correct and if correct, confirm if URI is set for "Test Plan" data source.
var testPlanURL = _sessionInfo.getDatasourceProperty("data_source_name","property", "default_value");