我有以下 JSON 响应。
{ "Customer1": { "details": { "acc": { "number": "91422915166" }, "phone": { "number": "98400915180" } }, "DateofBirth": "1979-04-03", "firstName": "Harry", "lastName": "Potter" } }
Jmeter脚本结构:
Thread group (Get customer details)
+Regular expression extractor
.....name: customer
.....expression:"number":(.+?)"DateofBirth":"(.+?)"
.....MatchNo: -1
我想使用只提取电话“号码”的提取器表达式。我现在的代码是同时提取 acc“号码”和电话“号码”。你能告诉我我需要使用什么表达才能让它工作吗?谢谢