Service Virtualization

  • 1.  How to convert XML to CSV file

    Posted Apr 23, 2018 02:35 AM

    Hi All,

     

    Greeting for the day.!

     

    Could you please provide me any utility/script for converting XML to CSV file.

     

    Thank you in advance!

     

    Regards,

    Girija K.



  • 2.  Re: How to convert XML to CSV file
    Best Answer

    Broadcom Employee
    Posted Jun 07, 2018 02:33 AM

    Hi,

     

    Do you mean the feature like this URL:
    https://codebeautify.org/xml-to-csv-converter#
    for converting XML format to CSV format?

     

    Basically, DevTest does not include this kind of feature.
    However, if you have code(or logic) about this type of converting (like http://developprojects.com/code-snippets/how-to-convert-a-xml-file-into-a-csv-file/), you can realize same feature in DevTest by using the Execute Script (JSR-223) Step.

     

    The Execute Script (JSR-223) Step supports scripts below:
    •Applescript (for OS X)
    •Beanshell
    •Freemarker
    •Groovy
    •JavaScript
    •Velocity
    But you need to debug after write script in this step.


    Cheers,