How to perform load or performance test on FTP Server using Jmeter.

             How to make FTP server in local computer
1. Download and Install GOLDEN FTP Server Software
2. Run 'Golden FTP Server'
3. Select 'Open shares' then Click on 'Add' button

4. Enter your desired Path and Name, Enable full control then click on 'Ok' button.
5. Finally will show the access path to the file

You can connect to this file from another system of your network (if only firewall is disabled) through command prompt (ftp 10.6.0.38).Once it is connected you can check the connections to your server.

N.B: Off FTP Firewall

Configure FTP Server in Jmeter 
1. Start Jmeter
Click on Jmeter_Home/bin/ApacheJMeter.jar or jmeter.sh to open Jmeter window

2. Add 'Thread Group' under 'Test Plan'
Right-click on the Test Plan > Add > Threads (Users) > Thread Group
Number of Threads (users): 1
Ramp-Up Period (in seconds):  1
Loop Count: 1
3. Add 'FTP Request Defaults' under 'Thread Group'
Right-click on the Thread Group > Add > Config Element > FTP Request Defaults

Server Name or IP - 10.6.0.38
4. Add 'FTP Request' Sampler under 'Thread Group' to fetch file.
Right-click on the Thread Group > Add > Sampler > FTP Request
Remote File - /Uploaddownload/importanturl.txt
Local File - importanturl.txt
Select get(RETR)
Username - anonymous
Password - anonymous

5. Add 'FTP Request' Sampler under 'Thread Group' to upload file.
Right-click on the Thread Group > Add > Sampler > FTP Request

Remote File - /Uploaddownload/examplefile.txt
Local File - D:\ftpjmeter\examplefile.txt
Select .Select put (STOR)
Username - anonymous
Password - anonymous
6. Add 'View Results Tree' and 'Summary Report' Listener under 'Thread Group'
Right-click on the Thread Group > Add > Listener > View Results Tree
Right-click on the Thread Group > Add > Listener > Summary Report
View Results Tree:
You can see how many request successfully serve, how many request fail to serve and it reason.
Summary Report:
    Sample - number of requests sent
    Avg - an Arithmetic mean for all responses (sum of all times / count)
    Minimal response time (ms)
    Maximum response time (ms)
    Error rate - percentage of failed tests
    Throughput - how many requests per second does your server handle. Larger is better.
    KB/Sec - self expalanatory
    Avg. Bytes - average response size
   
7. Finally Save Test plan then Press Menu > Run > Start or 'Ctrl'+ 'R' to run Test plan


N.B: You can change all names like as 'Test Plan', 'Thread Group', 'Sampler' and 'Listener' name

2 comments:

  1. Hello,
    The Article on How to perform load or performance test on FTP Server using Jmeter is informative. It gives detailed information about it. Thanks for Sharing the information about the Performance Testing. For More information check the detail on the Performance Testing check, Software Testing Company

    ReplyDelete
  2. Nice Blog, When I was read this blog, I learnt new things & it’s truly have well stuff related to developing technology, Thank you for sharing this blog. If Someone wants to know about Top Big Data Companies this is the Right place for you!

    ReplyDelete