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

jmeter獲取響應數據中參數值的常用方式(JSON提取器 、正則表達式提取器 、XPath提取器 、Bean Shell PostProcessor)

選擇 正則表達 pos alt 正則表達式 格式 processor info 表達

JSON提取器:

技術分享圖片

XPath提取器:

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

技術分享圖片

正則表達式提取器:

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

技術分享圖片

Bean Shell PostProcessor腳本獲取方式:

技術分享圖片

jmeter獲取響應數據中參數值的常用方式(JSON提取器 、正則表達式提取器 、XPath提取器 、Bean Shell PostProcessor)