Controlling FTPTestStep from groovy
Hello there I am currently stuck trying to transfer files with the FTP-Step provided in SoapUI Pro. The files are generated before sending, and there may be a large amount of files to send. The amount of files to send are determined after generation, I currently use a loop to iterate through all the files and add their information to the FTP-Step and then run it. Basically boiled down it's the following code: new File(path).listFiles().each{ ftpStep.setLocalPath(it.getPath()) ftpStep.setFileName(it.getName()) ftpStep.run(testRunner, context) } Sadly the transfer seems to fail every time, providing the following error: Unable to upload the file: null Looks to me like the testRunner gets confused and is unable to apply the filePath properly. testRunner and context are passed down from the invoked variables. If I execute the FTP-Step without any modifications afterwards, it sends the previously configured file to the server without problems, so I can only assume that something with the run() function is not working properly. I would appreciate any sort of help or workaround - but just confirming my problem would be sufficient for me to create a bug ticketSolved2.2KViews0likes10CommentsFTP - support?
Is there any way to transfera file by FTP in TestComplete? As it is possible to open a TCP/IP- socket, there should be a way to connect to the data-transfer port 20, but I've had no luck doing this. I am able to sendFTP-commands through the command port 21, but this is useless if I have no way of retrieving the data I am requesting. (The TCP/IP- socket is handled as the example found in this community). Is there any way to accomplish this? Thank you for any answers.1.5KViews0likes3Comments