1. 程式人生 > >jmeter獲取響應資料中引數值的常用方式(JSON提取器 、正則表示式提取器 、XPath提取器 、Bean Shell PostProcessor)

jmeter獲取響應資料中引數值的常用方式(JSON提取器 、正則表示式提取器 、XPath提取器 、Bean Shell PostProcessor)

 JSON提取器:

 

XPath提取器:

返回資料格式是HTML的時候,選擇使用此種方式。

 

 

正則表示式提取器:

圖中Field to check勾選的是Response Headers,獲取的是請求頭裡的引數值。

 

Bean Shell PostProcessor指令碼獲取方式: