Hello,

I needed the ability to send the LIST FTP command from the FTPSampler for a
test scenario at work. So I forked the project on GitHub and gave it a go.
The result can be seen here:
https://github.com/proudier/jmeter/commit/ff103720ee0d5f9b43dc54f56eb5778757bed936

Key aspects:
- As the original FTPSampler used a boolean "Upload" flag , I had to
refactor some code to allow for a "switch compliant" architecture.
Consequently, the FTPSampler.upload property had to be replaced with a
FTPSampler.command.
- The sampler understands both properties, so that unmodified .jmx can be
ran as before.
- The conversion from the legacy property to the new one is performed upon
loading in the GUI. Thus, after saving, the .jmx file hold the proper
property.

I ran the following tests:
- ant checkstyle => OK
- ant test  => OK
- and I've been using the whole thing at my work place for 3 weeks

I'd be happy to hear your comments and make the necessary adjustments
before making the pull-request.

Best regards
Pierre

Reply via email to