Service Virtualization

  • 1.  How to write the data to an excel

    Posted Apr 26, 2018 01:22 PM

    Hi Everyone,

    Can you guide me how to write the actual response to a particular row/column to an excel sheet.

     

    Can you send me code to id: mailtojai2004@yahoo.co.in

     

    Thanks



  • 2.  Re: How to write the data to an excel
    Best Answer

    Posted Apr 30, 2018 06:59 AM

    Hi Jai,

     

    I too encountered same issue and came across Apache POI Jars. Scripts are easily available on internet you just need to mount your input file and required excel file index (Row,column) within script . Please refer below threads .

     

    Writing Response to Excel File - LOG Utility 

     

    Read Write From Excel File 

     

    Don't forget to include the libs. 

     

    Cheers !



  • 3.  Re: How to write the data to an excel

    Broadcom Employee
    Posted Jun 21, 2018 01:26 PM

    Hi folks,

     

    While implementing something for a customer, I came across this relatively new free library:

     

    https://codoid.com/fillo/

     

    It's a wrapper around Apache POI that allows you to execute Select, Insert, Update, and Delete against an Excel workbook using SQL notation.  It hides all the complexity that comes with the raw POI API.  Does this help?

     

    --Mike



  • 4.  Re: How to write the data to an excel

    Broadcom Employee
    Posted Jun 21, 2018 01:35 PM

    This makes me very happy. I've been waiting for someone to make a usable free Excel-as-SQL jar utility forever!



  • 5.  Re: How to write the data to an excel

    Broadcom Employee
    Posted Jun 21, 2018 03:04 PM

    JOIN is not yet supported but, yeah, this question comes up a lot - especially the ability to write to Excel.

     

    --Mike