1.測(cè)試計(jì)劃增加用戶自定義變量,并設(shè)置默認(rèn)值

image.png
2.參數(shù)正常情況下使用

image.png
3.調(diào)試success

image.png
4.cmd下運(yùn)行(本人jmeter.bat運(yùn)行失敗。但是有g(shù)itBrash,所以使用 jmeter.sh)
運(yùn)行命令:具體 “-”的含義 ,自行百度
D:\chenliucai\jmeter\apache-jmeter-4.0\bin\jmeter.sh -n -id=3 -t C:\Users\admin\Desktop\1jemter\察看結(jié)果樹.jmx -l C:\Users\admin\Desktop\1jemter\result\201804101332481951.jtl
D:/chenliucai/jmeter/apache-jmeter-4.0/bin/jmeter.sh -n -id=3 -t C:/Users/admin/Desktop/1jemter/察看結(jié)果樹.jmx -l C:/Users/admin/Desktop/1jemter/result/201804101332481951.jtl
5.運(yùn)行報(bào)告(粗糙,需要挖掘)

image.png