Forum Discussion

sivakumar247's avatar
sivakumar247
Occasional Contributor
7 years ago

How to access the FTP using Groovy

Hello Team,

 

I have  a task of testing File adapter in SOA using SOAPUI.

To test this, the following steps are involved

1) Connect to FTP

2) Place the test file or test data into source location. For Ex:- i am placing a simple txt so called 'test.txt' file in /home/tmp1/

3) go to the destination in FTP and see if the same file has been transfered or not. For Ex:- goto  /home/tmp2/ and check for the test.txt file.

 

Kindly note that transfer of the file will be taken care by File adapter. All that i am looking for is how to execute the above 3 steps using groovy?

 

Any help

 

Thanks

Siva