API does not allow to enter angle braces and line breaks

Discussion and information for XML-RPC interface.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
nlahoti
TestLink user
Posts: 2
Joined: Wed May 16, 2012 5:22 pm

API does not allow to enter angle braces and line breaks

Post by nlahoti »

Hi ,

I am trying to create test cases in test link1.9 using the java calls with call to tl.createTestCase.

XmlRpcClient rpcClient = rpcClient = new XmlRpcClient();
rpcClient.setConfig(config);
rpcClient.execute("tl.createTestCase",paramsToCreateTestCase);

with all the required parameter and other details.
I am able to create the test cases but I hit upon two issues
1. For each step/Summary and other field I have the line breaks which gets removed. while creating the test cases using the api.
I already tried HTML encoding the text and also replacing the line breaks with </br> but it did not helped

2. Most of my test cases have some kind of xml code but when I create test cases using API these all are removed.
so my code line
<name>Test</name> become just the Test

is there any workaround to these?

Thanks,
-Narendra
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: API does not allow to enter angle braces and line breaks

Post by fman »

no workaround

please open issue on mantis with VERY detailed steps to reproduce (you can upload a zip file with your java source)
nlahoti
TestLink user
Posts: 2
Joined: Wed May 16, 2012 5:22 pm

Re: API does not allow to enter angle braces and line breaks

Post by nlahoti »

Thanks for quick response
I have raised issue
http://mantis.testlink.org/view.php?id=5033
Post Reply