We have ftp server with few directories and files under it, I am able to connect through browser and access directories successfully. However when used the same server:port with credentials not able to connect. Tried using JSR233 sampler also to list the files, but no success.
please guide.
TestPlan: FTP request defaults (Server IP and port:21)>get(RETR) --Thread Group ---FTP request (nothing added as remote file since just want to get list of files/directories) ---JSR233 sampler with below script
import org.apache.commons.net.ftp.FTPClient
def ftpClient = new FTPClient()
ftpClient.connect("xx.xx.xx.xx", 21)
ftpClient.login("'abc", "tesst")
ftpClient.listFiles().each {
log.info(it.getName())
}
log.info("---")
for FTP request getting an error as below:
Response message: java.io.FileNotFoundException: (The system cannot find the path specified)
Request is going as:
ftp://xx.xx.xx.xx:21/ (Ascii) ->
for JSR233 sampler: shows success without any response, files are list listed even in jmeter log also.
Please suggest how to achieve this.
Added screen shot of jmeter.log and .jmx file.
[![FTP req defaults[![FTP req![JSR233 sampler[![res msg: The system cannot find the path specified) []2]3]4]5