jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Gouchtchine <guserl...@gmail.com>
Subject How to keep a json path post-processor result in the original format
Date Thu, 10 Nov 2016 14:51:43 GMT
Hi All,
Is there an option for the json path post-process to keep original format
for the extracted values?

A JSON response is:
{
  "recordId" : "844ecda0-a213-40b6-ad70-2cf60f9242e8",
  "purchaseOrderNumber" : 24734,
  "orderLineNumber" : 1,
  "productNumber" : 871411,
  "productDescription" : "HOODED QUILT LINED X",
  "dealerPerUnitCostAmount" : 35.46,
  "pendingQuantity" : 1,
  "onOrderQuantity" : 0,
  "standingOrderQuantity" : 0,
  "pendingCancellationQuantity" : 0,
  "corporateDueDate" : "20160908",
  "storeDueDate" : "20160907",
  "orderTransmissionDate" : "99991231",
  "storeUsageCode" : "",
  "orderHoldCode" : "",
  "allowStandingOrder" : "Y",
  "promoPriceOnly" : "N"
}

The json path is $. My goal to reuse this object in the next request.
Unfortunately the json path post-process removes all quotes:

{recordId=844ecda0-a213-40b6-ad70-2cf60f9242e8, purchaseOrderNumber=24734,
orderLineNumber=1, productNumber=871411, productDescription=HOODED QUILT
LINED X, dealerPerUnitCostAmount=35.46, pendingQuantity=1,
onOrderQuantity=0, standingOrderQuantity=0, pendingCancellationQuantity=0,
corporateDueDate=20160908, storeDueDate=20160907,
orderTransmissionDate=99991231, storeUsageCode=, orderHoldCode=,
allowStandingOrder=Y, promoPriceOnly=N}

Thank you very much.
Pavel Gouchtchine

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message