Jmeter 中JSON Path Extractor高级用法

JSON

{
  "Province": [
    {
      "Name": "Beijing",
      "population": "10000"
    },
    {
      "Name": "Shanghai",
      "population": "800"
    },
    {
      "Name": "Guangzhou",
      "population": "900"
    }
  ],
  "property": "biggest",
  "state": "China"
}

1.匹配所有省份名字:$…Name

将会得到一个省份名的数组,Name=[“Beijing”,“Shanghai”,“Guangzhou”]

这时可以jmeter对应的变量来获取值,如 N a m e 1 、 {Name_1}、

你可能感兴趣的:(自动化测试)