Escape chars/unprintable chars breaks JUnit report
Posted: Mon Mar 26, 2018 5:22 pm
1. Enable "Create a JUnit compatible copy of the Report" in test suite
2. Add a test case or recording that calls a user code module
3. Enter this code in the default user code method:
4. Run test
5. Open the XML report
Result: Bad XML format. Closing tags "</system-out></testcase></testsuite>", etc., omitted. Logging elsewhere succeeded but to XML file logging ceased once this entry made.
2. Add a test case or recording that calls a user code module
3. Enter this code in the default user code method:
Code: Select all
Report.Log(ReportLevel.Info, "N^´ûÈZ÷~¸‰a\u001c?Â/\u0005");
5. Open the XML report
Result: Bad XML format. Closing tags "</system-out></testcase></testsuite>", etc., omitted. Logging elsewhere succeeded but to XML file logging ceased once this entry made.