fix(接口测试): 修复任务中心全部停止报错及场景报告跳转问题
--bug=1018297 --user=赵勇 【测试跟踪】测试计划-接口测试-批量执行后任务中心点击全部停止提示异常 https://www.tapd.cn/55049933/s/1266110
This commit is contained in:
parent
f0fc806904
commit
e71ae9a0e7
|
@ -67,6 +67,6 @@ public class KeyValue {
|
|||
}
|
||||
|
||||
public boolean isFile() {
|
||||
return (CollectionUtils.isNotEmpty(files)) && StringUtils.equalsIgnoreCase(type, "file");
|
||||
return (CollectionUtils.isNotEmpty(files)) && (StringUtils.isEmpty(type) || StringUtils.equalsIgnoreCase(type, "file"));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -188,8 +188,7 @@ public class JMeterService {
|
|||
|
||||
|
||||
public void run(JmeterRunRequestDTO request) {
|
||||
//UI 测试只走本地 ms,资源池交给 selenium-grid 本身实现
|
||||
if (request.getPool().isPool() && StringUtils.isNotBlank(request.getRunMode()) && !request.getRunMode().startsWith("UI")) {
|
||||
if (request.getPool().isPool() && StringUtils.isNotBlank(request.getRunMode())) {
|
||||
this.runNode(request);
|
||||
} else {
|
||||
//解析hashTree,是否含有文件库文件
|
||||
|
|
|
@ -445,7 +445,7 @@
|
|||
</if>
|
||||
<if test="request.redirectFilter == 'unexecuteCount' ">
|
||||
and (t3.status IS NULL or t3.status = '' or t3.status = 'Prepare' or t3.status = 'Underway' or t3.status =
|
||||
'stop')
|
||||
'STOPPED')
|
||||
</if>
|
||||
<if test="request.redirectFilter == 'executionPassCount' ">
|
||||
and t3.status = 'success'
|
||||
|
|
|
@ -121,7 +121,7 @@ export default {
|
|||
},
|
||||
watch: {
|
||||
message() {
|
||||
if (this.message === 'stop') {
|
||||
if (this.message === 'STOPPED') {
|
||||
this.scenario.run = false;
|
||||
}
|
||||
this.reload();
|
||||
|
|
|
@ -17,24 +17,26 @@
|
|||
<ms-table-column
|
||||
prop="name"
|
||||
show-overflow-tooltip
|
||||
:width="100"
|
||||
:min-width="150"
|
||||
:label="$t('load_test.file_name')">
|
||||
</ms-table-column>
|
||||
<ms-table-column
|
||||
sortable
|
||||
prop="type"
|
||||
:min-width="150"
|
||||
:filters="typeFilters"
|
||||
:label="$t('load_test.file_type')">
|
||||
</ms-table-column>
|
||||
|
||||
<ms-table-column
|
||||
prop="description"
|
||||
:min-width="100"
|
||||
:label="$t('group.description')">
|
||||
</ms-table-column>
|
||||
|
||||
<ms-table-column
|
||||
prop="tags"
|
||||
min-width="60px"
|
||||
width="100px"
|
||||
:show-overflow-tooltip=false
|
||||
:label="$t('commons.tag')">
|
||||
<template v-slot:default="scope">
|
||||
|
@ -56,17 +58,21 @@
|
|||
<ms-table-column
|
||||
sortable
|
||||
prop="createUser"
|
||||
:min-width="100"
|
||||
:label="$t('commons.create_user')">
|
||||
</ms-table-column>
|
||||
<ms-table-column
|
||||
sortable
|
||||
prop="updateUser"
|
||||
:min-width="100"
|
||||
:label="$t('ui.update_user')">
|
||||
</ms-table-column>
|
||||
|
||||
<ms-table-column
|
||||
sortable
|
||||
:label="$t('commons.update_time')"
|
||||
:min-width="150"
|
||||
fixed="right"
|
||||
prop="updateTime">
|
||||
<template v-slot="scope">
|
||||
<span>{{ scope.row.updateTime | datetimeFormat }}</span>
|
||||
|
@ -89,7 +95,7 @@ import {getFileMetadataList, getMetadataTypes} from "metersphere-frontend/src/ap
|
|||
import MsTablePagination from "metersphere-frontend/src/components/pagination/TablePagination";
|
||||
import MsTableButton from "metersphere-frontend/src/components/MsTableButton";
|
||||
import MsDialogFooter from "metersphere-frontend/src/components/MsDialogFooter";
|
||||
import {getCurrentProjectID, getCurrentUserId} from "metersphere-frontend/src/utils/token";
|
||||
import {getCurrentProjectID} from "metersphere-frontend/src/utils/token";
|
||||
import MsTableOperatorButton from "metersphere-frontend/src/components/MsTableOperatorButton";
|
||||
import MsTableHeader from "./FileHeader";
|
||||
import MsTableSearchBar from "metersphere-frontend/src/components/MsTableSearchBar";
|
||||
|
|
|
@ -218,7 +218,7 @@
|
|||
</select>
|
||||
|
||||
<update id="stopScenario">
|
||||
UPDATE api_scenario_report SET status ='STOP' WHERE status IN ("running","starting","waiting") AND
|
||||
UPDATE api_scenario_report SET status ='STOPPED' WHERE status IN ("running","starting","waiting") AND
|
||||
project_id IN
|
||||
<foreach collection="request.projects" item="id" separator="," open="(" close=")">
|
||||
#{id}
|
||||
|
@ -227,7 +227,7 @@
|
|||
|
||||
|
||||
<update id="stopApi">
|
||||
UPDATE api_definition_exec_result SET status ='STOP' WHERE status IN ("running","starting","waiting") AND
|
||||
UPDATE api_definition_exec_result SET status ='STOPPED' WHERE status IN ("running","starting","waiting") AND
|
||||
project_id IN
|
||||
<foreach collection="request.projects" item="id" separator="," open="(" close=")">
|
||||
#{id}
|
||||
|
|
Loading…
Reference in New Issue