Ask a Question

Manipulating existing .xlsx data

BMCIM
Occasional Contributor

Manipulating existing .xlsx data

Hi

 

I have a .xlsx file stored in my local directory.  I need to manipulate the cells in the spreadsheet and save.

 

I have been reviewing Groovy scripts but so far I have had no joy.

 

Can anyone help?

 

Thanks

 

3 REPLIES 3
groovyguy
Champion Level 0

Groovy is going to be your best bet so you have full control over what you need to do. Outside of that, you could try using a datasource to read from the spreadsheet, groovy test step to manipulate the data however you desire, and then a data sink to write it back but at that point you might as well just write an entire groovy script to do what you want.

 

 




---

Click the Accept as Solution button if my answer has helped, and remember to give kudos where appropriate too!

It also looks like you received the same answer yesterday here: https://community.smartbear.com/t5/SoapUI-Pro/How-to-manipulate-excel-data/m-p/148188#M33762

 

 

This is going to require you to do some groovy scripting.

 




---

Click the Accept as Solution button if my answer has helped, and remember to give kudos where appropriate too!
sanj
Super Contributor

I was going to suggest using apache POI

I have done  excel manipulation  in java using that.

You can do the same thing in groovy.

One of @groovyguy link has info on how it was solved using POI

cancel
Showing results for 
Search instead for 
Did you mean: