fix(接口测试): 修复条件控制器变量值中有换行导致判断失败问题 (#6116)
Co-authored-by: BugKing <wangzhen@fit2cloud.com>
This commit is contained in:
parent
2a71b9bfcb
commit
cac4b483b2
|
@ -112,7 +112,7 @@ public class MsIfController extends MsTestElement {
|
|||
value = "\"" + this.value + "\"";
|
||||
}
|
||||
if (StringUtils.contains(operator, "~")) {
|
||||
value = "\".*" + this.value + ".*\"";
|
||||
value = "\"(\\n|.)*" + this.value + "(\\n|.)*\"";
|
||||
}
|
||||
|
||||
if (StringUtils.equals(operator, "is empty")) {
|
||||
|
|
|
@ -126,7 +126,7 @@ public class MsLoopController extends MsTestElement {
|
|||
}
|
||||
|
||||
if (StringUtils.contains(operator, "~")) {
|
||||
value = "\".*" + this.whileController.getValue() + ".*\"";
|
||||
value = "\"(\\n|.)*" + this.whileController.getValue() + "(\\n|.)*\"";
|
||||
}
|
||||
|
||||
if (StringUtils.equals(operator, "is empty")) {
|
||||
|
|
Loading…
Reference in New Issue