Forum Discussion

twozedz's avatar
twozedz
Occasional Contributor
8 years ago

using exceldatasink class methods

Hi Can someone please help? I have soap UI pro

 

I posted this elsewhere and no one has responded.

 

I am trying to use the following methods of the class excelDataSink but get an error when i do that in groovy script

 

voidsetFileName(String fileName) 
voidsetOutFileName(String outFileName) 
voidsetStartCell(String startCell) 
voidsetWorksheet(String worksheet) 

 

 

the error i get is:

 

groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSinkTestStep.setFileName() is applicable for argument types: (java.lang.String) values: [c:/test] Possible solutions: setName(java.lang.String), setName(java.lang.String) error at line: 42

5 Replies

    • twozedz's avatar
      twozedz
      Occasional Contributor

      Hi Thanks for your reply

       

      could you please try the following two lines of code and see if they work?

       

       

      def te = context.getTestCase().getTestStepByName("dataSinkToSpreadSheet");

      te.setFileName("C://tes");

       

      I get the error:

      groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSinkTestStep.setFileName() is applicable for argument types: (java.lang.String) values: [C://tes] Possible solutions: setName(java.lang.String), setName(java.lang.String) error at line: 22