常见问题记录

接口测试入参要进行md5加密,怎么处理(待完善)

方法一:用jmeter的自带函数

{

"sign": "${__digest(MD5,YG00001random"[\"${protection_id}\"]"VG,,true,)}",
"randomStr": "random",
"protectionIDList": [ ${protection_id}]
}

加密前的串是:YG00001random"[\"${protection_id}\"]"VG

其中id是参数化了: ${protection_id}

posted @ 2022-09-19 17:49  幸福在今天  阅读(19)  评论(0编辑  收藏  举报