Forum Discussion
- sanjSuper Contributor
Could you not just send a string and use new liner separators?
- rrameshOccasional Contributor
Passing the character "\n" (for newline) as part of the text for the test data does not work.
So, if I pass the text as, say, -:
Hello \n World
In the response, the text appears the same as -:
Hello \n World
and not as -:
Hello
World
- nmraoChampion Level 3Are you using windows? See if \r\n helps.
- rrameshOccasional Contributor
I also tried using ASCII characters to represent the newline and also CDATA constructs, but nothing seems to work.
Please help.
- sanjSuper Contributor
Try "\\n"
- rrameshOccasional Contributor
\\n also does not work.
- sanjSuper Contributor
the following has some info on how to encode parameters
https://www.soapui.org/testing-dojo/best-practices/understanding-rest-headers-and-parameters.html
- rrameshOccasional Contributor
\r\n too does not work.
- PaulMSSuper Contributor
you can use the percent-encoded value for a new line, it's %0D%0A although %0A(ASCII 10 - line feed) or %0D (ASCII 13 - carriage return) should work alone.
Also disable URL encoding of the parameter value for the REST resource/method when using custom encoding in this case.
For custom encoding handling when setting a parameter value (the “Disable Encoding” setting)
https://www.soapui.org/rest-testing/rest-resources-and-methods.html
- sanjSuper Contributor
\r is another way of doing new line I was not going to expect that to work
Try searching online line man I am sure someone must have solution to this one
Related Content
- 3 years ago
- 5 years ago
- 7 years ago
Recent Discussions
- 3 days ago