Forum Discussion

twozedz's avatar
twozedz
Occasional Contributor
9 years ago

setting filename of datasink throwing error

HI

 i have soap ui pro at work

I have the this code that is throwing out an error. here is some partial code:

 

bla bla code.....

def generateStep = testCase.addTestStep("datasink", "test");

generateStep.setDataSink("Excel");

 

String errorCode = "test1";

String severityCode = "test2";

String shortDesc = "test3";

 

generateStep.setPropertyValue('errorCode', errorCode);

generateStep.setPropertyValue('severityCode', severityCode);

generateStep.setPropertyValue('shortDesc', shortDesc);

 

generateStep.setFileName('c:/test')   Throwing error at this line..getting the error below :(

 

 

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

 

how do i set the generateStep so i can use the .setFileName method?

  • twozedz's avatar
    twozedz
    Occasional Contributor

    Is there anyone who can help out?please??????

     

    basically i am trying to use the following methods of the class ExcelDataSink in soapui pro

     

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

     

    but i keep getting the following 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:/test] Possible solutions: setName(java.lang.String), setName(java.lang.String) error at line: 42

     

     

    i need to set the datasinkstep in the test case so i can use the methods above? any suggestions?