在jmeter的中,断言没法对两个变量的进行对比后判断,只能使用Bean Shell断言来进行。
然后用BeanShell对两个变量进行对比。
if(!"
u
i
d
m
a
t
c
h
N
r
"
.
e
q
u
a
l
s
(
"
{uid_matchNr}".equals("
uidmatchNr".equals("{res}"))
{
Failure=true;
FailureMessage=“error,check error”;
}
else
{
FailureMessage=“ok,check current”;
}