如何从Jmeter中的JSON响应中提取特定值?
我想使用Jmeter中的JSON提取器从这个JSON响应中提取“SessionId”。我尝试了多路径表达式,但没有成功。请帮忙。如何从Jmeter中的JSON响应中提取特定值?,json,jmeter,response,load-testing,Json,Jmeter,Response,Load Testing,我想使用Jmeter中的JSON提取器从这个JSON响应中提取“SessionId”。我尝试了多路径表达式,但没有成功。请帮忙。 谢谢。您可以使用以下配置提取SessionId值: 引用名称:MyVar//保存提取值的变量的名称 正则表达式:\\\“SessionId\\”:\\“(.*?\\” 模板:1美元$ 匹配号:1 默认值:未找到 参考: 也许可以向我们展示您的尝试。请参阅try$.SecureCustomerLoginFPinResult.SessionId使用JSON提取器 {"
谢谢。您可以使用以下配置提取SessionId值:
- 引用名称:MyVar//保存提取值的变量的名称
- 正则表达式:
\\\“SessionId\\”:\\“(.*?\\”
- 模板:1美元$
- 匹配号:1
- 默认值:未找到
也许可以向我们展示您的尝试。请参阅try
$.SecureCustomerLoginFPinResult.SessionId
使用JSON提取器
{"SecureCustomerLoginFPinResult":"{\"Success\":true,\"AccountCode\":\"AC0717000251\",\"AccountId\":\"251\",\"FullName\":\"Asad\",\"LastLoginTime\":\"Jan 18, 2018, 12:16:19 PM\",\"IsFirstLogin\":\"0\",\"WalletAmount\":93982.40,\"SessionId\":\"efa02b314f\",\"ProfileImage\":\"\",\"NickName\":\"\",\"UnreadRequest\":\"1\",\"ProfileLevel\":\"0\",\"IsPinSet\":\"1\",\"LastName\":\"Akram\",\"CashDepositMinAmount\":\"100.00\",\"InviteCode\":\"https:\/\/test.keenu.pk\/keenu\/?Asad7207\",\"InvitePoints\":50,\"SignUpPoints\":40,\"KeenuCode\":\"trfhf\",\"DebitCreditFeeChargeInPercentage\":\"10.00\",\"CustomerState\":\"C\",\"BankCategoryId\":\"1\",\"IsNameVerifed\":\"False\",\"CustomerPoolBalances\":[{\"Amount\":\"83305.00\",\"CustomerPoolId\":\"499\",\"PoolId\":\"1\",\"Priority\":\"1\",\"ExpirationDate\":\"18\/01\/19\",\"AmountToBeExpire\":\"\"},{\"Amount\":\"10677.40\",\"CustomerPoolId\":\"500\",\"PoolId\":\"2\",\"Priority\":\"2\",\"ExpirationDate\":\"31\/01\/18\",\"AmountToBeExpire\":\"200.00\"}]}"}