Home > Software engineering >  Jmeter Key Extraction value in the response
Jmeter Key Extraction value in the response

Time:11-16

I want to extract the key value generated from response, is there's a way to simulate using JSON Path extractor? Your response is highly appreciated. Thank you so much in advance.

Sample Response:

{ "data": { "1637042070532561": { "symbol": "BAUa", "side": "buy", "quantity": "1", "limitPrice": "2145", "instrumentId": 4, "created": "1637042070533", "orderStatus": "rejected", "type": "limit", "executions": { }, "decimals": 2, "commission": "0", "currency": "EUR", "averagePrice": "0", "id": "1637042070532561", "filledStatus": "unfilled", "filledPercent": "0.00", "filledQty": "0" } }, "action": "set-orders", "type": "orders", "status": "OK", "timestamp": "2021-11-16T05:54:30.536Z" }

Screenshot:

enter image description here

Expected Result: 1637042070532561

CodePudding user response:

Go for enter image description here

More information: The JMeter JSON JMESPath Extractor and Assertion: A Guide

  • Related