51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2146|回复: 1
打印 上一主题 下一主题

Jmeter-Json串中含转义字符,使用JSON Extractor提取失败

[复制链接]
  • TA的每日心情
    奋斗
    2017-4-1 09:18
  • 签到天数: 6 天

    连续签到: 2 天

    [LV.2]测试排长

    跳转到指定楼层
    1#
    发表于 2019-1-2 15:20:54 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    响应如下:

    {"code":0,"msg":"SUCCESS","data":[{"deviceid":"29083","inverterserial":"","commcardserial":"","pcsmodel":"Mario 6.0   ","removed":0,"modified":"2018-07-04T09:08:30.161Z","created":"2018-07-04T09:08:30.161Z","config":"{\"deviceID\":\"29083\",\"cmd_id\":\"Cov7Us2WVe\",\"timestamp\":\"1545639511\",\"inverterSerial\":\"             \",\"commcardSerial\":\"\",\"commcardVersion\":\"1.0.0\",\"network\":{\"type\":\"ethernet\",\"macAddress\":\"00:30:AB:FF8:0E\",\"ipAddress\":\"192.168.3.104\"},\"swLastUpdatedTime\":\"1542008395\",\"pcsModel\":\"Mario 6.0   \",\"inverterHwVer\":\"00.02\",\"inverterSwVer\":\"\",\"time\":{\"timeZone\":\"8\",\"utcTimeCmd\":\"1545369829\"},\"batteryInfo\":[{\"batteryModel\":\"\",\"batterySerial\":\"0\",\"batteryCapacity\":\"9800\"},{\"batteryModel\":\"\",\"batterySerial\":\"0\",\"batteryCapacity\":\"0\"}],\"pcsOutLimit\":\"6000\",\"pcsOpMode\":\"0\",\"TOU\":{\"chargeStart\":\"19\",\"chargeEnd\":\"30\",\"chargePower\":\"40\",\"dischargeStart\":\"50\",\"dischargeEnd\":\"60\",\"dischargePower\":\"300\"},\"backupSOC\":\"30\",\"gridSelector\":{\"gridType\":\"17\",\"utility\":\"3\"},\"gridStatus\":\"0\",\"rule21\":{\"synchronization\":{\"syncTime\":\"500.00\",\"vLow\":\"89.0\",\"vHigh\":\"105.0\",\"freqLow\":\"59.66\",\"freqHigh\":\"61.00\"},\"ramp\":{\"softStartRamp\":\"888.0\",\"normalRamp\":\"888.0\"},\"lhvrt\":{\"ov2Voltage\":\"120\",\"ov2Time\":\"0.16\",\"ov1Voltabe\":\"115\",\"ov1Time\":\"12.00\",\"uv1Voltage\":\"88\",\"uv1Time\":\"50.00\",\"uv2Voltage\":\"80\",\"uv2Time\":\"20.00\",\"uv3Voltage\":\"50\",\"uv3Time\":\"0.16\"},\"lhfrt\":{\"of2Freq\":\"64.50\",\"of2Time\":\"2.00\",\"of1Freq\":\"63.00\",\"of1Time\":\"21.00\",\"uf1Freq\":\"58.88\",\"uf1Time\":\"21.00\",\"uf2Freq\":\"56.00\",\"uf2Time\":\"22.00\"},\"powerPriority\":\"0\",\"activePowerControl\":{\"mode\":\"1\",\"fixP\":{\"maxPower\":\"99.0\"},\"v1\":\"105.0\",\"p1\":\"100.0\",\"v2\":\"109.0\",\"p2\":\"0.0\",\"voltWatt\":{\"timeConst\":\"100\"},\"freqWatt\":{\"hyst\":\"1\",\"startFreq\":\"2.00\",\"endFreq\":\"3.00\",\"gradient\":\"600.0\",\"timeConst\":\"80\"}},\"reactivePowerControl\":{\"mode\":\"1\",\"fixPf\":{\"cosPhi\":\"-0.950\"},\"voltVar\":{\"v1\":\"110.0\",\"q1\":\"100.0\",\"v2\":\"110.0\",\"q2\":\"100.0\",\"v3\":\"110.0\",\"q3\":\"100.0\",\"v4\":\"100.0\",\"q4\":\"-44.0\",\"timeConst\":\"100\"}}}}","online":1}]}


    使用JSON Extractor提取失败:$.data[0].config.cmd_id

    求解

    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-11-7 03:37 , Processed in 0.061494 second(s), 23 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表