Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-1333

TDML Runner RoundTrip: unparse -> parse, errors from parse aren't propagated.

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.0.0
    • 1.1.0
    • TDML Runner
    • None

      If you have an unparserTestCase that works, and you specify roundTrip="true", if for some reason there is an error in the parse step of the roundTrip, a blank TDMLException is thrown:

      error] Test edu.illinois.ncsa.daffodil.section16.array_optional_elem.TestUnparseArrayOptionalElem.test_parsedOptArrayThenScalar02 failed: edu.illinois.ncsa.daffodil.tdml.TDMLException: 
      [error]     at edu.illinois.ncsa.daffodil.tdml.UnparserTestCase.runUnparserExpectSuccess(TDMLRunner.scala:771)
      [error]     at edu.illinois.ncsa.daffodil.tdml.UnparserTestCase.runProcessor(TDMLRunner.scala:719)
      [error]     at edu.illinois.ncsa.daffodil.tdml.TestCase.run(TDMLRunner.scala:513)
      [error]     at edu.illinois.ncsa.daffodil.tdml.DFDLTestSuite.runOneTestWithDataVolumes(TDMLRunner.scala:292)
      [error]     at edu.illinois.ncsa.daffodil.tdml.DFDLTestSuite.runOneTest(TDMLRunner.scala:283)
      [error]     at edu.illinois.ncsa.daffodil.section16.array_optional_elem.TestUnparseArrayOptionalElem.test_parsedOptArrayThenScalar02(TestUnparseArrayOptionalElem.scala:125)
      [error]     ...

      Since it's hard to find a case where unparse works and parse does not, this error can currently be seen by modifying parsedOptArrayThenScalar02 to be a roundTrip test. However, this relies on the bug seen in DFDL-1302.

              jchab Jessie Chab
              jchab Jessie Chab
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 15 minutes
                  15m