2
重複值I與JSON陣列的JMeter - 檢查在JSON數組
{"message":"SUCCESS","possibilities":
[{"type":"title","value":"Mercedes-Benz FashionWeek New York"},
{"type":"title","value":"Mercedes-Benz FashionWeek New York"},
{"type":"title","value":"Mercedes-Benz FashionWeek New York"},
{"type":"title","value":"Chicago Fire vs. New York City"},
{"type":"title","value":"New York Mets vs. Philadelphia Phillies"},
{"type":"title","value":"New York Knicks vs. Detroit Pistons"},
{"type":"title","value":"Baltimore Orioles vs. New York Yankees"},
{"type":"title","value":"New York Mets vs. Philadelphia Phillies"},
{"type":"title","value":"Tampa Bay Rays vs. New York Yankees"},
{"type":"title","value":"Tampa Bay Rays vs. New York Yankees"},]}
我需要驗證沒有重複的標題(在我的例子中,第一3分的結果是一式兩份)的HTTP響應。
在Jmeter中做這件事的最好方法是什麼?
- 如果它變得更容易,例如第10個結果不能與第一個結果相同,因此可以比較標題和前一個標題(例如,如果第3個標題相同到第二個)