JeremyYao commented on PR #1309:
URL: https://github.com/apache/daffodil-vscode/pull/1309#issuecomment-3001685674

   ### How to test
   
   1. Navigate to your system's temp directory (on Windows, it is 
C:\Users\USERNAME\AppData\Local\Temp>
   2. If generatedTDML.tdml exists in there, remove it
   3. Open up a .dfdl.xsd file (example one: 
https://github.com/DFDLSchemas/JPEG/blob/master/src/main/resources/com/mitre/jpeg/xsd/jpeg.dfdl.xsd)
   4. Click on "Copy TDML file" on the top right
   5. Error message should appear
    
   
![image](https://github.com/user-attachments/assets/8bc848cf-aa5c-469a-9c89-c0714e852f79)
   
   6. Open a .tdml file 
   
   Example 
   ```XML
   <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
   <ns1:testSuite xmlns:ns1="http://www.ibm.com/xmlns/dfdl/testData"; 
suiteName="Default Test Case" defaultRoundTrip="onePass">
       <ns1:parserTestCase name="Default Teasdfasdfst Case" root="file" 
model="src\main\resources\com\mitre\jpeg\xsd\jpeg.dfdl.xsd" roundTrip="onePass" 
description="Generated by DFDL VSCode Extension">
           <ns1:document>
               <ns1:documentPart type="file">
                   test_images\curious-cat-thumb.jpg
               </ns1:documentPart>
           </ns1:document>
           <ns1:infoset>
               <ns1:dfdlInfoset type="file">
                   target\infoset.xml
               </ns1:dfdlInfoset>
           </ns1:infoset>
       </ns1:parserTestCase>
       <ns1:parserTestCase name="Default Test Cadse" root="file" 
model="src\main\resources\com\mitre\jpeg\xsd\jpeg.dfdl.xsd" roundTrip="onePass" 
description="Generated by DFDL VSCode Extension">
           <ns1:document>
               <ns1:documentPart type="file">
                   test_images\curious-cat-thumb.jpg
               </ns1:documentPart>
           </ns1:document>
           <ns1:infoset>
               <ns1:dfdlInfoset type="file">
                   target\infoset.xml
               </ns1:dfdlInfoset>
           </ns1:infoset>
       </ns1:parserTestCase>
       <ns1:parserTestCase name="Default Test Case" root="file" 
model="src\main\resources\com\mitre\jpeg\xsd\jpeg.dfdl.xsd" roundTrip="onePass" 
description="Generated by DFDL VSCode Extension">
           <ns1:document>
               <ns1:documentPart type="file">
                   test_images\curious-cat-thumb.jpg
               </ns1:documentPart>
           </ns1:document>
           <ns1:infoset>
               <ns1:dfdlInfoset type="file">
                   target\infoset.xml
               </ns1:dfdlInfoset>
           </ns1:infoset>
       </ns1:parserTestCase>
   </ns1:testSuite>
   ```
   
   7. Click on append TDML
   8. Error should show up (you can expand this too)
   
   
![image](https://github.com/user-attachments/assets/6fa61120-5e97-4d35-8be1-25f8cf1ca11e)
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to