jmeter正则提取值 同级目录下的值

https://www.v2ex.com/api/nodes/show.json?name=python

接口返回:

{
"avatar_large": "//cdn.v2ex.com/navatar/8613/985e/90_large.png?m=1534882576",
"name": "python",
"avatar_normal": "//cdn.v2ex.com/navatar/8613/985e/90_normal.png?m=1534882576",
"title": "Python",
"url": "https://www.v2ex.com/go/python",
"topics": 9849,
"footer": "",
"header": "这里讨论各种 Python 语言编程话题,也包括 Django,Tornado 等框架的讨论。这里是一个能够帮助你解决实际问题的地方。",
"title_alternative": "Python",
"avatar_mini": "//cdn.v2ex.com/navatar/8613/985e/90_mini.png?m=1534882576",
"stars": 6848,
"root": false,
"id": 90,
"parent_node_name": "programming"
}

我想取当title为Python时,topics的值

 

jmeter正则提取选择:JsonPath Extractor

设置为: $..[?(@.title=='Python')].topics

如图:

 

posted @ 2018-08-23 17:55  彩笔杀手  阅读(208)  评论(0编辑  收藏