调用__V函数两种方法:
第一种:
{
"phone": "${phone}",
"xxId": "${__V(xxId_${counter})}"
}
第二种:使用${__BeanShell(vars.get("xxId_${counter}")}
{
"phone":"${phone}",
"xxId":"${__BeanShell(vars.get("xxId_${counter}"))}"
}
重点:
${__V(xxId_${counter})}拼接中xxId后只能加“_”**${__V(token_${counter})}或不加任何东西**${__V(token${counter})}拼接,不可加“.”**${__V(token.${counter})}拼接,
故需要用“.”拼接时,可放在外面:token.${__V(userId1)}