diff --git a/frontend/src/business/components/api/automation/scenario/component/ApiResponseComponent.vue b/frontend/src/business/components/api/automation/scenario/component/ApiResponseComponent.vue index 9369b646b5..009b2f6287 100644 --- a/frontend/src/business/components/api/automation/scenario/component/ApiResponseComponent.vue +++ b/frontend/src/business/components/api/automation/scenario/component/ApiResponseComponent.vue @@ -60,7 +60,7 @@ export default { if (this.apiItem && this.apiItem.id) { let url = "/api/definition/report/getReport/" + this.apiItem.id; this.$get(url, response => { - if (response.data) { + if (response.data && response.data.content) { try { let data = JSON.parse(response.data.content); this.response = data; diff --git a/frontend/src/business/components/api/definition/components/Run.vue b/frontend/src/business/components/api/definition/components/Run.vue index c9716c6443..2dfafd873b 100644 --- a/frontend/src/business/components/api/definition/components/Run.vue +++ b/frontend/src/business/components/api/definition/components/Run.vue @@ -23,7 +23,7 @@ export default { return { result: {}, loading: false, - requestResult: {}, + requestResult: {responseResult: {}}, reqNumber: 0, websocket: {} } @@ -123,6 +123,7 @@ export default { threadGroup.hashTree.push(item); }) this.sort(testPlan.hashTree); + this.requestResult.reportId = this.reportId; let reqObj = {id: this.reportId, testElement: testPlan, type: this.type, clazzName: this.clazzName ? this.clazzName : TYPE_TO_C.get(this.type), projectId: projectId, environmentMap: strMapToObj(this.envMap)}; let bodyFiles = getBodyUploadFiles(reqObj, this.runData); if (this.runData[0].url) { diff --git a/frontend/src/business/components/api/definition/components/response/ResponseResult.vue b/frontend/src/business/components/api/definition/components/response/ResponseResult.vue index ac1cff56d1..0eb2e48338 100644 --- a/frontend/src/business/components/api/definition/components/response/ResponseResult.vue +++ b/frontend/src/business/components/api/definition/components/response/ResponseResult.vue @@ -1,6 +1,5 @@