Contributions
Re: How to resolve class loader issue? I am getting GroovyCastException : Cannot cast object.
This is a groovy script. I am trying to set property and execute the test case. Code: //FilePath to .csv file provided in the Test Suite Property def inputPath = testRunner.testCase.testSuite.getPropertyValue("FilePath") File file = new File (inputPath.toString()).eachLine{ testRunner.testCase.testSuite.setPropertyValue("inGUID",it.split(",")[0]) def tc =testRunner.testCase.testSuite.testCases["TestCase 1"] def runner = tc.run(null,false) } Note: This code worked fine before my computer abruptly restarted. So all the changes were lost and I had to rewrite the same code again, since thenI am getting this error. Code is typed manually in the response, kindly ignore the typos. I hope the snippet will give an overview.1.4KViews0likes1CommentHow to resolve class loader issue? I am getting GroovyCastException : Cannot cast object.
Error message: org.codehaus.groovy.runtime.typehandeling.GroovyCastException:Cannot cast object 'com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase@378b3ab0' with class 'com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase' to class 'java.io.File' error at line: 31.5KViews0likes3Comments