fix(接口测试): 修复jexl3表达式错误问题
Signed-off-by: fit2-zhao <yong.zhao@fit2cloud.com>
This commit is contained in:
parent
ba42c1712a
commit
6477892630
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue