opengeospatial / teamengine

TEAM Engine (Test, Evaluation, And Measurement Engine) is an engine for testing web services and other resources written in JAVA. It executes test scripts written in Compliance Test Language (CTL), TestNG and other languages. It is lightweight and easy to run as a command line or to setup as a service. It can be used to test any type of service or encoding. It is also the official tool used by the Open Geospatial Consortium (OGC) for compliance testing.
Apache License 2.0
45 stars 41 forks source link

Fail to generate report because of invalid character #465

Closed keshavnangare closed 2 years ago

keshavnangare commented 3 years ago

Reference: https://github.com/opengeospatial/ets-wcs10/issues/54#issue-813846027

As per the screenshot, the report generation failed because of an invalid character present in the file.

keshavnangare commented 3 years ago

If the exception is thrown while transforming like "An invalid XML char", then each line from that file will be read and send to stripped the invalid characters. If the line contains invalid characters and <content> element, the text in <content> element is placed within <![CDATA]]> block. Finally, it will return as a string by removing </log> from it and the file will be rewritten with a valid string. It will able to generate the old test report.

Please find all the changes in #466 PR.