Populate string inside Excel Data Sink fields from groovy script
Context : Let's say that I have appended a DataSink Teststep manually which I have named "DataSink", feature which is provide naturally in the UI of ReadyAPI.
Now, I would like to get this object instance and feed it regarding my environment execution. I have already known how to get the environment settings so the issue is only how /what are the statements to set DataSink parameters from a groovy script Teststep.
First, I would like to be able to use these metods setFileName(path), setOutFileName(path), setWorksheet(worksheet), setStartCell(startCell) in order to provide the parameters to the DataSink instance.
I also would like loading properties from my first row of the ExcelFile and keep only those I want but in the class
documentation, I do not see any metod to add properties to the DataSink.
Does anyone have an idea of how to achieve both purposes?