diff --git a/client/containers/Project/Interface/InterfaceCol/CaseReport.js b/client/containers/Project/Interface/InterfaceCol/CaseReport.js
index 78986d91..c50816ad 100644
--- a/client/containers/Project/Interface/InterfaceCol/CaseReport.js
+++ b/client/containers/Project/Interface/InterfaceCol/CaseReport.js
@@ -11,9 +11,13 @@ const CaseReport = function (props) {
let headers = json_format(props.headers, null, ' ');
let res_header = json_format(props.res_header, null, ' ');
let res_body = json_format(props.res_body);
- let validRes = props.validRes.map((item, index) => {
- return
{item.message}
- })
+ let validRes ;
+ if(props.validRes && Array.isArray(props.validRes)){
+ validRes = props.validRes.map((item, index) => {
+ return {item.message}
+ })
+ }
+
return
diff --git a/client/containers/Project/Interface/InterfaceCol/InterfaceColContent.js b/client/containers/Project/Interface/InterfaceCol/InterfaceColContent.js
index ad53d2a7..06947482 100755
--- a/client/containers/Project/Interface/InterfaceCol/InterfaceColContent.js
+++ b/client/containers/Project/Interface/InterfaceCol/InterfaceColContent.js
@@ -3,6 +3,7 @@ import { connect } from 'react-redux';
import PropTypes from 'prop-types'
import { withRouter } from 'react-router'
import { Link } from 'react-router-dom'
+import constants from '../../../../constants/variable.js'
import { Tooltip, Icon, Button, Spin, Modal, message ,Select} from 'antd'
import { fetchInterfaceColList, fetchCaseList, setColData } from '../../../../reducer/modules/interfaceCol'
import HTML5Backend from 'react-dnd-html5-backend';
@@ -25,7 +26,7 @@ function json_parse(data) {
return data
}
}
-
+const HTTP_METHOD = constants.HTTP_METHOD;
@connect(
@@ -154,8 +155,25 @@ class InterfaceColContent extends Component {
status = 'error';
result = e;
}
- this.reports[curitem._id] = result;
- this.records[curitem._id] = result.res_body;
+
+ let query = this.arrToObj(curitem.req_query);
+ if(!query || typeof query !== 'object'){
+ query = {};
+ }
+ let body = {};
+ if(HTTP_METHOD[curitem.method].request_body){
+ body = isJson(curitem.req_body_other);
+ if(!body || typeof body !== 'object'){
+ body = {};
+ }
+ }
+
+ let params = Object.assign({}, query, body);
+ this.reports = result;
+ this.records[curitem._id] = {
+ params: params,
+ body: result.res_body
+ };
curitem = Object.assign({}, rows[i], { test_status: status });
newRows = [].concat([], rows);