My code is now as follows: ResponseObject zipFile = WS.sendRequest(findTestObject(''))įile targetFile = new File(filepath + ".zip") I understand the error says the object “zipFile” is not serializable. Java.io.NotSerializableException: .testobject.ResponseObjectĪt java_io_ObjectOutput$writeObject.call(Unknown Source)Īt TESTCASE - n(TESTCASE - testcase:42)Īt .(ScriptEngine.java:194)Īt .(ScriptEngine.java:119)Īt .(TestCaseExecutor.java:339)Īt .(TestCaseExecutor.java:330)Īt .(TestCaseExecutor.java:309)Īt .(TestCaseExecutor.java:301)Īt .(TestCaseExecutor.java:235)Īt .(TestCaseMain.java:114)Īt .(TestCaseMain.java:105)Īt .main.TestCaseMain$runTestCase$0.call(Unknown Source)Īt n(oovy:25) 16:55:48.191 ERROR c.k. - Test Cases/TESTCASE - testcase FAILED. ("The Object was succesfully written to a file") ObjectOutputStream objectOut = new ObjectOutputStream(fileOut) ![]() Println('Succesfully sent request for zipfile')įileOutputStream fileOut = new FileOutputStream(filepath.zip") My code now looks as follows: def zipFile = WS.sendRequest(findTestObject('')) I would like to save that to file to my local machine. ![]() I perform a GET request to which the response is a zip file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |