Download and install
Jmeter is built to run under the environment of JDK8 or JDK9
Jmeter download url : https://jmeter.apache.org/download_jmeter.cgi

After downloading, use the cd command in the terminal to enter the download folder, and enter in the terminal :tar zxvf apache-jmeter-5.5.tgz
Jmeter is in English by default, modify the Chinese configuration:
step1: cd bin
step2: vim jmeter.properties
step3: set language=zh_CN;sampleresult.default.encoding=UTF-8
step4: Press esc and enter :wq to save and exit
Two ways to start jmeter
a: cd ~/apache-jmeter-5.5/bin sh jmeter
b: step1: vim ~/.bash_profile
step2: add and press esc and enter :wq to save and exit
export JMETER_HOME=[your jmeter path]/apache-jmeter-5.5
export PATH=$PATH:$JMETER_HOME/bin
step3: source ~/.bash_profile
step4: Enter jmeter directly in the terminal to start jmeter
. .
Configure and add test cases
Multi-threaded group data transfer
step1: Create a thread group in a test plan and configure


step2:


step3:


step4:

step5:


step6:


step7:



step8:



Reference
Convert the .json file exported by Postman into the .jmx file of Jmeter :
https://blog.youkuaiyun.com/RoninYang/article/details/107997794?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-1-107997794-blog-117999915.pc_relevant_vip_default&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-1-107997794-blog-117999915.pc_relevant_vip_default&utm_relevant_index=2
本文详细介绍了如何下载并安装JMeter,包括在终端中解压文件和修改配置使其显示中文。同时,提供了启动JMeter的两种方式,并指导如何配置多线程组数据传输的测试用例。此外,还提到了将Postman导出的.json文件转换为JMeter的.jmx文件的方法。
782

被折叠的 条评论
为什么被折叠?



