【JMeter】if语句中不能Failure=false解决办法

错误写法:

1 if(roomId.matches("regEx"))
2         Failure=false;    
3 else{
4         Failure=true;
5         FailureMessage="logs……";
6 }

正确写法:

1 if(!roomId.matches("regEx")){
2         Failure=true;
3         FailureMessage="logs……";
4 }
原文地址:https://www.cnblogs.com/xiongjiawei/p/6860170.html