參數(shù)化(用戶變量、環(huán)境變量)
??對被測系統(tǒng)的用戶名和密碼進(jìn)行參數(shù)化,來模擬多個用戶同時登錄系統(tǒng)。
jmeter的test plan中,支持如下4種參數(shù)化方式:
函數(shù)助手:_CSVRead
CSV Data Set Config:CSV數(shù)據(jù)控件
User Defined Variables:用戶定義的變量
User Variables:用戶參數(shù)
具體可參考 https://www.cnblogs.com/imyalost/p/6229355.html
傳參
JMeter處理responses 的json
對于請求1返回的結(jié)果,處理以后作為請求2的參數(shù),JMeter提供了正則表達(dá)式提取器
1、正則表達(dá)式提取器
http://www.cnblogs.com/VashGu927/p/7640447.html
2、后置處理器JSON Extractor?
https://blog.csdn.net/fu_tester/article/details/77838546
PS:跨線程組傳參
https://www.cnblogs.com/superbears/p/7041723.html
https://blog.csdn.net/qq_35885203/article/details/77562644
http://www.mamicode.com/info-detail-1990380.html