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.csdn.net/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