Forum Discussion

UAL's avatar
UAL
Frequent Visitor
3 years ago

Execute Data Sink step using groovy script testRunner.runTestStepByName("DataSink")

I'm trying to execute data sink step using groovy script by testRunner.runTestStepByName("DataSink") to write results in excel sheet. im getting data sink step passed in transaction logs, but its not writing into my excel sheet.

Any suggestion over this?

Note: I'm using ReadyAPI 3.3.0 version.

  • ChrisAdams's avatar
    ChrisAdams
    Champion Level 3

    Hi,

     

    Any reason why you are using Groovy to invoke the datasink step?

     

    That aside, I've had issues writing to Excel.  Try writing to xlsx and xls to see if you can make it work.  I personally gave up writing to Excel and instead write to text file and load that text file into Excel for analysis.