Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

JMeter Test FTP

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Background:

FTP is mainly used for file upload and download.

There are still many opportunities for FTP to display its talents in surveillance video collection and playback. In the mainstream video storage scheme of HD video surveillance industry, 720p, 1080p is the mainstream, and 4k or more is the rookie. HD will certainly make the video stream larger and larger and store longer. Ftp service to store video is a good choice.

Example demonstration

First of all, you have to prepare your own FTP server, which is a must. FTP server construction is not complicated. There will be many articles under Baidu.

Create thread group

Thread Group-add-configure components-FTP Request Defaults

Configure FTP Sampler (FTP request)

1) obtain the file from the server, and first change the name to get

Server name or IP: FTP server name or ip address

Port number: the FTP server port number defaults to 21

Remote File: remote file path address

For example, / home/manisha/sample_ftp/a.mp4 a.mp4 remote file must exist

Local File: save the file pulled by FTP in the local path and add a remote file name.

For example, d:/home/a.mp4 a.mp4 local home file should not exist at present.

Local File Contents: empty by default

RadioButton:

Get (RETR): download and use

Put (STOR): upload usage

CheckBox:

Use Binary mode: whether to use binary mode or not. Relatively large files are recommended.

Save File in Response: whether to save the server reply

Remarks:

If the transmission mode is not selected, jmeter will match automatically.

Take a look at the FTP server-side files:

It is more convenient and intuitive to use the FileZilla tool to view.

2) send files locally to the server

Add another FTP Sampler

Change the name to post, and the use case sends a file from the ftp server

Remote File: a specific directory uploaded to a remote FTP server.

For example, / home/sample/test.txt test.txt is not stored remotely.

Local File: local file address, such as D:/home/sample/test.txt test.txt must exist

Take a look at our local files:

3) add view result tree

View the result tree in listener-> and run to view the results.

View the local directory:

FTP server, Jmeter sampling results and local directory file size is about 14 m, the test is successful.

Story:

Rule of twenty-eight: usually 80% of the work we do is futile, and only 20% can be effective. How to prevent this from happening? The 2008 rule tells us to focus on 20% of the work and make it 80% effective.

References:

Http://jmeter.apache.org/usermanual/build-ftp-test-plan.html

Original address: https://mp.weixin.qq.com/s/cjZ18NOWp0O5NUNFpZGtww

Today's recommended reading articles are recommended

Why do interface testing?

JMeter database operation

Jmeter Interface Test-regular expression

JMeter returns garbled code in Chinese

Jmeter interface testing-parameterization

JMeter Interface testing-Basics

Test-impression

Add Wechat to the consulting work

scan a QR code

Welcome self-recommendation and recommendation, need Wechat to push resume!

Please poke the QR code below to learn more.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report