When I write test results from TestNG/Maven to a given test in TestRail via the api, I’ve had to go to some lengths to try and sanitize the text before sending it to TestRail. Special characters of various types seem to break the application in such a way that no test results show up at all in some cases. In my setup, this sanitization is taking place in the PHP script that runs the tests and sends back the results.
I’m wondering if the devs have encountered this and if there might be any advice you can offer. Also wondering if there might be any changes on the horizon that might make this easier to deal with in the future. I’d love to be able to format the output more nicely using html or whatever, but again it’s been very hit or miss, largely due to my lack of proper understanding of how text, special characters, UTF this or that and such is handled in PHP as well as TestRail.
Thanks in advance for any tips or advice anyone can offer!