Closed mjj4791 closed 3 years ago
A CCL defect is causing the problem.
The unit test is calling cnvtrectojson(rec, 0, 1, 1) and calling cnvtrectojson with an odd value for the fourth parameter causes all subsequent calls to echojson and echoxml to truncate the result to 2000 characters. The result is that invalid xml is being returned to the ccl-maven-plugin because echoxml is used to generate the test result and coverage data.
Making any call to cnvtrectojson or cnvtrectoxml without a fourth value or with an even fourth value makes the problem stop,
You could add a cnvtrectojson call in a teardownOnce subroutine in your test case as a workaround till the CCL issue is fixed,
This issue is related to https://github.com/cerner/ccl-testing/issues/42 This time the unit test case fail, not on the null-character as mentioned in issue 42, but on a simple double quote in the source code (");
I have sent you a DM with the the project/code used to reproduce this issue. The files generated on the backend are in the folder ./ccl/output/.
The Error/test failure I get with this testcase is:
“Expected a ',' or '}' at character 899 of {"CCLUTREPLY": …“
On position 899 I find:
<![CDATA[declare ut_logtext = vc with protect, noconstant("")]]>
(position 899 is the second ")In the output.log I can see that the test case succeeded/was executed. When I have other test cases run under the same conditions, they do not fail on these quotes even though the very same include file is included in those test cases as well… In those cases I can see that the quotes have been escaped correctly in the json.
mvn -version:
Maven command to test:
I have sent you a DM/email with all relevant files & a code project that I used to reproduce this single test case.
Other details: