fix(接口测试): 修复循环控制器状态显示错误的缺陷
--bug=1028178 --user=王孝刚 【接口测试】循环控制器下误报显示错误 https://www.tapd.cn/55049933/s/1398510
This commit is contained in:
parent
d6b5b5a5f2
commit
34b661d0e3
|
@ -11,6 +11,7 @@ import org.json.JSONArray;
|
|||
import org.json.JSONObject;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
@ -108,7 +109,7 @@ public class JSONSchemaParser {
|
|||
// 设置mock值
|
||||
if (FormatterUtil.isMockValue(object)) {
|
||||
if (FormatterUtil.isNumber(FormatterUtil.getStrValue(object))) {
|
||||
int value = FormatterUtil.getElementValue(object).getAsInt();
|
||||
long value = FormatterUtil.getElementValue(object).getAsLong();
|
||||
concept.put(propertyName, value);
|
||||
} else {
|
||||
String value = FormatterUtil.getStrValue(object);
|
||||
|
@ -125,7 +126,7 @@ public class JSONSchemaParser {
|
|||
if (FormatterUtil.isNumber(FormatterUtil.getStrValue(object))) {
|
||||
String value = FormatterUtil.getElementValue(object).getAsString();
|
||||
if (value.indexOf(".") == -1) {
|
||||
concept.put(propertyName, Long.valueOf(value));
|
||||
concept.put(propertyName, new BigInteger(value));
|
||||
} else {
|
||||
concept.put(propertyName, new BigDecimal(value));
|
||||
}
|
||||
|
|
|
@ -399,9 +399,6 @@ export default {
|
|||
this.request.requestResult.forEach((item) => {
|
||||
if (!item.success) {
|
||||
this.reqSuccess = item.success;
|
||||
if (this.node && this.node.parent && this.node.parent.data) {
|
||||
this.node.parent.data.code = 'ERROR';
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue