【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 }

 

posted @ 2017-05-16 10:41  xiongjiawei  阅读(1842)  评论(0编辑  收藏  举报