要构造出该请求体:
{ "actId": "2020", "buyNum": 0, "perActLim": 0, "perSkuLim": 0, "skuId": "cpu", "userId": "随机字符串", "wmSkuNum": 20 }
使用jmeter中的随机字符串函数,没法加上双引号,所以可以写三个
${__RandomString(1,"",)}${__RandomString(3,abcdefghijk,)}${__RandomString(1,"",)}
效果如下:
标签:__,请求,双引号,RandomString,字符串,post,jmeter From: https://www.cnblogs.com/hu-kang/p/17031257.html