fix(接口测试): 修复jexl3表达式错误问题

Signed-off-by: fit2-zhao <yong.zhao@fit2cloud.com>
This commit is contained in:
fit2-zhao 2024-11-01 16:20:07 +08:00 committed by Craftsman
parent ba42c1712a
commit 6477892630
2 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ public class MsLoopController extends MsTestElement {
value = "";
}
ms_current_timer = UUID.randomUUID().toString();
return "${__jexl3(" + variable + operator + value + ")}";
return variable + operator + value;
}
private IfController ifController(String condition) {

View File

@ -110,7 +110,7 @@ public class DocumentUtils {
} else if (!(subj instanceof Double) && !(subj instanceof Float)) {
str = subj.toString();
} else {
str = ((DecimalFormat) decimalFormatter.get()).format(subj);
str = decimalFormatter.get().format(subj);
}
return str;
}