Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

Importing a Suite from XML - line breaks chars


#1

Hello,

I wish to import a test into Testrail, from an xml file.
what character should I use in order for a line breaks to be imported correctly (as an actual line break in the html view)?
I don’t want to just press “return” and instead looking for a character - since I’m generating the XML automatically.

thanks,
Keshet.


#2

Hello Keshet,

Thanks for your posting. You can actually just use a line break character to add enters/line breaks to the imported text. Please note that you need two enter characters (e.g. \n\n) to start a new paragraph in TestRail due to it’s Markdown formatting. How are you generating the XML file? Which programming language/tool are you using?

Thanks,
Dennis