0
我在的JMeter这种设置如下正则表达式提取不捕获给出的正则表达式
TestPlan
GetToken
HTTP Request
Regular Expression Extractor
ReferenceName : token
Regular Expression: "Token": "(.+?)"
Template : $1$
Match No. : 1
Default Value : NO_TOKEN_VALUE
Debug Sampler
View Results Tree
当我运行我的测试,我可以看到的结果View Results Tree
。当我在RegExp Tester
测试我的正则表达式,它返回:
Match count: 1
Match[1][0]="Token": "1234567890"
Match[1][1]=`1234567890
然而,当我查看Debug Sampler
,我总是得到:
token=NO_TOKEN_VALUE
有谁知道可能会导致什么呢?
有你改变了'适用于:'或'响应现场检查:'领域在正则表达式提取配置?下面 – CharlieS 2014-11-05 23:36:37
检查请: http://stackoverflow.com/questions/2811330/jmeter-is-not-extracting-correctly-the-value-with-the-reg-ex-extractor – 2014-11-06 08:42:00
@CharlieS'适用于:'设置为'主采样和子采样','响应字段检查'设置为'响应消息' – TomSelleck 2014-11-06 10:27:29