Sorry, I found the attached screenshot could not be displayed.
---response
{"moduleId":25,"dimensionInfoList":[{"dimensionId":"vip","dimensionName":"äŒåä»·","adjustPrice":0.00},{"dimensionId":"net_sale","dimensionName":"çœå®ä»·","adjustPrice":6.55},{"dimensionId":"student","dimensionName":"åŠçä»·","adjustPrice":-1.00},{"dimensionId":"adult","dimensionName":"æ人价","adjustPrice":5.50}]}
---jsonpath
$.dimensionInfoList..adjustPrice
--result
Result[0]=0.0
Result[1]=6.55
Result[2]=-1.0
Result[3]=5.5
I don't know why theâ0â at the end is missing, then my assertion will failed.
å件人: 莟åœåš <***@sireninformation.com>
çå€: JMeter Users List <***@jmeter.apache.org>
æ¥æ: 2018幎12æ6æ¥ ææå 17:18
æ¶ä»¶äºº: <***@jmeter.apache.org>
äž»é¢: Jsonpath loses its last zero
I'm trying to get the data using jsonpath from the http response, but it doesn't seem to work very well, does anybody know why.
my JMeter: Apache JMeter Version 4.0 r1823414
Thanks a lot~
--------------------------------------------------------------------- To unsubscribe, e-mail: user-***@jmeter.apache.org For additional commands, e-mail: user-***@jmeter.apache.org