Merge remote-tracking branch 'origin/master'

This commit is contained in:
Captain.B 2021-03-18 15:02:41 +08:00
commit 9d5d60c99a
29 changed files with 157 additions and 133 deletions

View File

@ -26,6 +26,7 @@ import io.metersphere.dto.ScheduleDao;
import io.metersphere.performance.service.PerformanceTestService;
import io.metersphere.service.CheckPermissionService;
import io.metersphere.service.ScheduleService;
import org.apache.commons.lang3.StringUtils;
import org.apache.jorphan.collections.HashTree;
import org.apache.shiro.authz.annotation.Logical;
import org.apache.shiro.authz.annotation.RequiresRoles;
@ -342,12 +343,16 @@ public class APITestController {
return returnList;
}
@GetMapping("/runningTask/{projectID}")
public List<TaskInfoResult> runningTask(@PathVariable String projectID) {
List<String> typeFilter = Arrays.asList( // 首页显示的运行中定时任务只要这3种不需要 性能测试api_test(旧版)
ScheduleGroup.API_SCENARIO_TEST.name(),
ScheduleGroup.SWAGGER_IMPORT.name(),
ScheduleGroup.TEST_PLAN_TEST.name());
@GetMapping("/runningTask/{projectID}/{callFrom}")
public List<TaskInfoResult> runningTask(@PathVariable String projectID, @PathVariable String callFrom) {
List<String> typeFilter = new ArrayList<>();
if(StringUtils.equals(callFrom, "api_test")) { // 接口测试首页显示的运行中定时任务只要这3种不需要 性能测试api_test(旧版)
typeFilter.add(ScheduleGroup.API_SCENARIO_TEST.name());
typeFilter.add(ScheduleGroup.SWAGGER_IMPORT.name());
typeFilter.add(ScheduleGroup.TEST_PLAN_TEST.name());
} else if(StringUtils.equals(callFrom, "track_home")) { // 测试跟踪首页只显示测试计划的定时任务
typeFilter.add(ScheduleGroup.TEST_PLAN_TEST.name());
}
List<TaskInfoResult> resultList = scheduleService.findRunningTaskInfoByProjectID(projectID, typeFilter);
int dataIndex = 1;
for (TaskInfoResult taskInfo :

View File

@ -22,9 +22,9 @@ public class MsDefinitionParser extends MsAbstractParser<ApiDefinitionImport> {
String testStr = getApiTestStr(source);
JSONObject testObject = JSONObject.parseObject(testStr, Feature.OrderedField);
this.projectId = request.getProjectId();
if (testObject.get("projectName") != null || testObject.get("projectId") != null ) {
if (testObject.get("projectName") != null || testObject.get("projectId") != null ) {// metersphere 格式导入
return parseMsFormat(testStr, request);
} else {
} else { // chrome 插件录制格式导入
request.setPlatform(ApiImportPlatform.Plugin.name());
ApiDefinitionImport apiImport = new ApiDefinitionImport();
apiImport.setProtocol(RequestType.HTTP);

View File

@ -216,6 +216,7 @@ public class ApiDefinitionService {
ApiDefinitionExample example = new ApiDefinitionExample();
if (request.getProtocol().equals(RequestType.HTTP)) {
example.createCriteria().andMethodEqualTo(request.getMethod()).andStatusNotEqualTo("Trash")
.andPathEqualTo(request.getPath())
.andProjectIdEqualTo(request.getProjectId()).andIdNotEqualTo(request.getId());
return apiDefinitionMapper.selectByExample(example);
} else {

View File

@ -69,17 +69,18 @@
sch.id AS taskID,
sch.`value` AS rule,
sch.`enable` AS `taskStatus`,
u.name AS creator,
u.`name` AS creator,
sch.update_time AS updateTime,
sch.type AS taskType,
sch.group AS taskGroup
sch.`group` AS taskGroup,
sch.resource_id AS scenarioId
FROM (
schedule sch left join user u
ON sch.user_id = u.id
)
WHERE sch.`enable` = true
AND sch.project_id = #{projectId,jdbcType=VARCHAR}
and sch.group in
and sch.`group` in
<foreach collection="types" item="item" separator="," open="(" close=")">
#{item}
</foreach>

View File

@ -8,7 +8,7 @@ import java.util.List;
public interface ExtTestPlanLoadCaseMapper {
List<String> selectIdsNotInPlan(@Param("projectId") String projectId, @Param("planId") String planId);
List<String> selectIdsNotInPlan(@Param("request") LoadCaseRequest request);
List<TestPlanLoadCaseDTO> selectTestPlanLoadCaseList(@Param("request") LoadCaseRequest request);
void updateCaseStatus(@Param("reportId") String reportId, @Param("status") String status);
List<String> getStatusByTestPlanId(@Param("planId") String planId);

View File

@ -10,9 +10,12 @@
<select id="selectIdsNotInPlan" resultType="java.lang.String">
select load_test.id
from load_test
where load_test.project_id = #{projectId}
where load_test.project_id = #{request.projectId}
<if test="request.name != null and request.name != ''">
and load_test.name like CONCAT('%', #{request.name},'%')
</if>
and load_test.id not in (
select tplc.load_case_id from test_plan_load_case tplc where tplc.test_plan_id = #{planId}
select tplc.load_case_id from test_plan_load_case tplc where tplc.test_plan_id = #{request.testPlanId}
)
</select>
<select id="selectTestPlanLoadCaseList" resultType="io.metersphere.track.dto.TestPlanLoadCaseDTO">

View File

@ -46,7 +46,7 @@ public class TestPlanLoadCaseService {
private LoadTestMapper loadTestMapper;
public List<LoadTest> relevanceList(LoadCaseRequest request) {
List<String> ids = extTestPlanLoadCaseMapper.selectIdsNotInPlan(request.getProjectId(), request.getTestPlanId());
List<String> ids = extTestPlanLoadCaseMapper.selectIdsNotInPlan(request);
if (CollectionUtils.isEmpty(ids)) {
return new ArrayList<>();
}

View File

@ -194,7 +194,6 @@ public class TestPlanService {
testPlan.setActualEndTime(System.currentTimeMillis());
}
}
extScheduleMapper.updateNameByResourceID(testPlan.getId(), testPlan.getName());// 同步更新该测试的定时任务的name
List<String> userIds = new ArrayList<>();
userIds.add(testPlan.getPrincipal());
@ -204,6 +203,7 @@ public class TestPlanService {
i = testPlanMapper.updateByPrimaryKeySelective(testPlan);
}
else { // 有修改字段的调用为保证将某些时间置null的情况使用updateByPrimaryKey
extScheduleMapper.updateNameByResourceID(testPlan.getId(), testPlan.getName());// 同步更新该测试的定时任务的name
i = testPlanMapper.updateByPrimaryKey(testPlan); // 更新
}
if (!StringUtils.isBlank(testPlan.getStatus())) {

View File

@ -127,11 +127,18 @@ export default {
let param = {};
param.taskID = this.schedule.id;
param.enable = flag;
let that = this;
if(flag == false) {
this.$confirm(this.$t('api_test.home_page.running_task_list.confirm.close_title'), this.$t('commons.prompt'), {
confirmButtonText: this.$t('commons.confirm'),
cancelButtonText: this.$t('commons.cancel'),
type: 'warning'
type: 'warning',
beforeClose(action, instance, done) {
if(action == 'cancel') { // messageBox switch
that.schedule.enable = param.enable = true;
}
done(); // done messageBox
},
}).then(() => {
this.updateTask(param);
}).catch(() => {

View File

@ -240,7 +240,6 @@ import MsTabButton from "@/business/components/common/components/MsTabButton";
}
},
methods: {
changeRedirectParam(redirectIDParam) {
this.redirectID = redirectIDParam;
},
@ -349,7 +348,7 @@ import MsTabButton from "@/business/components/common/components/MsTabButton";
this.showCasePage = true;
},
exportAPI(type) {
if (!this.isApiListEnable) {
if (this.activeDom !== 'left') {
this.$warning('用例列表暂不支持导出,请切换成接口列表');
return;
}

View File

@ -46,7 +46,7 @@
<ms-failure-test-case-list @redirectPage="redirectPage"/>
</el-col>
<el-col :span="12">
<ms-running-task-list @redirectPage="redirectPage"/>
<ms-running-task-list :call-from="'api_test'" @redirectPage="redirectPage"/>
</el-col>
</el-row>

View File

@ -64,7 +64,9 @@ export default {
components: {
MsTag
},
props: {
callFrom: String,
},
data() {
return {
value: '100',
@ -84,7 +86,7 @@ export default {
methods: {
search() {
let projectID = getCurrentProjectID();
this.result = this.$get("/api/runningTask/"+projectID, response => {
this.result = this.$get("/api/runningTask/"+projectID+"/"+this.callFrom, response => {
this.tableData = response.data;
});
},
@ -109,9 +111,9 @@ export default {
});
},
redirect(param){
if(param.taskType === 'testPlan'){
if(param.taskGroup === 'TEST_PLAN_TEST'){
this.$emit('redirectPage','testPlanEdit','', param.scenarioId);
}else{
}else if(param.taskGroup === 'API_SCENARIO_TEST') {
this.$emit('redirectPage','scenario','scenario', 'edit:'+param.scenarioId);
}
}

View File

@ -46,29 +46,10 @@ export default {
},
data() {
return {
importJsonTest: {
"root": {
"data": {
"text": "test111"
},
"children": [
{ "data": { "text": "新闻"}},
{ "data": { "text": "网页"} },
{ "data": { "text": "贴吧"} },
{ "data": { "text": "知道"} },
{ "data": { "text": "音乐" } },
{ "data": { "text": "图片"} },
{ "data": { "text": "视频"} },
{ "data": { "text": "地图" } },
{ "data": { "text": "百科","expandState":"collapse"}}
]
},
"template":"default"
},
importJson: {
root: {
data: {
text: "全部用例",
text: this.$t('test_track.review_view.all_case'),
disable: true,
id: "root",
path: ""

View File

@ -18,10 +18,10 @@
<el-tab-pane name="default" :label="$t('api_test.definition.case_title')">
<ms-tab-button
:active-dom.sync="activeDom"
:left-tip="'用例列表'"
:left-tip="$t('api_test.definition.case_title')"
:left-content="'CASE'"
:right-tip="'脑图'"
:right-content="'脑图'"
:right-tip="$t('test_track.case.minder')"
:right-content="$t('test_track.case.minder')"
:middle-button-enable="false">
<test-case-list
v-if="activeDom === 'left'"

View File

@ -18,7 +18,7 @@ name: "TestCaseMinder",
return{
testCase: [],
dataMap: new Map(),
tags: ['用例', '前置条件', '备注'],
tags: [this.$t('api_test.definition.request.case'), this.$t('test_track.case.prerequisite'), this.$t('commons.remark')],
result: {}
}
},
@ -47,7 +47,6 @@ name: "TestCaseMinder",
}
},
save(data) {
console.log(this.dataMap);
let saveCases = [];
this.buildSaveCase(data.root, saveCases, undefined);
let param = {
@ -60,7 +59,7 @@ name: "TestCaseMinder",
},
buildSaveCase(root, saveCases, parent) {
let data = root.data;
if (data.resource && data.resource.indexOf("用例") > -1) {
if (data.resource && data.resource.indexOf(this.$t('api_test.definition.request.case')) > -1) {
this._buildSaveCase(root, saveCases, parent);
} else {
if (root.children) {
@ -92,9 +91,9 @@ name: "TestCaseMinder",
if (node.children) {
node.children.forEach((childNode) => {
let childData = childNode.data;
if (childData.resource && childData.resource.indexOf('前置条件') > -1) {
if (childData.resource && childData.resource.indexOf(this.$t('test_track.case.prerequisite')) > -1) {
testCase.prerequisite = childData.text;
} else if (childData.resource && childData.resource.indexOf('备注') > -1) {
} else if (childData.resource && childData.resource.indexOf(this.$t('commons.remark')) > -1) {
testCase.remark = childData.text;
} else {
//

View File

@ -4,7 +4,7 @@
:tree-nodes="treeNodes"
:data-map="dataMap"
:tags="tags"
:distinct-tags="[...tags, '未开始']"
:distinct-tags="[...tags, $t('test_track.plan.plan_status_prepare')]"
@save="save"
/>
</template>
@ -19,7 +19,7 @@ name: "TestPlanMinder",
return{
dataMap: new Map(),
result: {},
tags: ['通过', '失败', '阻塞', '跳过'],
tags: [this.$t('test_track.plan_view.pass'), this.$t('test_track.plan_view.failure'), this.$t('test_track.plan_view.blocking'), this.$t('test_track.plan_view.skip')],
}
},
props: {
@ -48,15 +48,15 @@ name: "TestPlanMinder",
this.result = this.$get('/test/plan/case/list/minder/' + this.planId, response => {
this.dataMap = getTestCaseDataMap(response.data, true, (data, item) => {
if (item.stats === 'Pass') {
data.resource.push("通过");
data.resource.push(this.$t('test_track.plan_view.pass'));
} else if (item.reviewStatus === 'Failure') {
data.resource.push("失败");
data.resource.push(this.$t('test_track.plan_view.failure'));
} else if (item.reviewStatus === 'Blocking') {
data.resource.push("阻塞");
data.resource.push(this.$t('test_track.plan_view.blocking'));
} else if (item.reviewStatus === 'Skip') {
data.resource.push("跳过");
data.resource.push(this.$t('test_track.plan_view.skip'));
} else {
data.resource.push("未开始");
data.resource.push(this.$t('test_track.plan.plan_status_prepare'));
}
});
});
@ -71,7 +71,7 @@ name: "TestPlanMinder",
},
buildSaveCase(root, saveCases) {
let data = root.data;
if (data.resource && data.resource.indexOf("用例") > -1) {
if (data.resource && data.resource.indexOf(this.$t('api_test.definition.request.case')) > -1) {
this._buildSaveCase(root, saveCases, parent);
} else {
if (root.children) {
@ -90,13 +90,13 @@ name: "TestPlanMinder",
id: data.id,
};
if (data.resource.length > 1) {
if (data.resource.indexOf('失败') > -1) {
if (data.resource.indexOf(this.$t('test_track.plan_view.failure')) > -1) {
testCase.status = 'Failure';
} else if (data.resource.indexOf('通过') > -1) {
} else if (data.resource.indexOf(this.$t('test_track.plan_view.pass')) > -1) {
testCase.status = 'Pass';
} else if (data.resource.indexOf('阻塞') > -1) {
} else if (data.resource.indexOf(this.$t('test_track.plan_view.blocking')) > -1) {
testCase.status = 'Blocking';
} else if (data.resource.indexOf('跳过') > -1) {
} else if (data.resource.indexOf(this.$t('test_track.plan_view.skip')) > -1) {
testCase.status = 'Skip';
}
}

View File

@ -4,7 +4,7 @@
:tree-nodes="treeNodes"
:data-map="dataMap"
:tags="tags"
:distinct-tags="[...tags, '未开始']"
:distinct-tags="[...tags, $t('test_track.plan.plan_status_prepare')]"
@save="save"
/>
</template>
@ -18,7 +18,7 @@ name: "TestReviewMinder",
data() {
return{
dataMap: new Map(),
tags: ['通过', '不通过'],
tags: [this.$t('test_track.plan_view.pass'), this.$t('test_track.plan_view.not_pass')],
result: {}
}
},
@ -48,11 +48,11 @@ name: "TestReviewMinder",
this.result = this.$post('/test/review/case/list/all', {reviewId: this.reviewId}, response => {
this.dataMap = getTestCaseDataMap(response.data, true, (data, item) => {
if (item.reviewStatus === 'Pass') {
data.resource.push("通过");
data.resource.push(this.$t('test_track.plan_view.pass'));
} else if (item.reviewStatus === 'UnPass') {
data.resource.push("不通过");
data.resource.push(this.$t('test_track.plan_view.not_pass'));
} else {
data.resource.push("未开始");
data.resource.push(this.$t('test_track.plan.plan_status_prepare'));
}
data.caseId = item.caseId;
});
@ -68,7 +68,7 @@ name: "TestReviewMinder",
},
buildSaveCase(root, saveCases) {
let data = root.data;
if (data.resource && data.resource.indexOf("用例") > -1) {
if (data.resource && data.resource.indexOf(this.$t('api_test.definition.request.case')) > -1) {
this._buildSaveCase(root, saveCases);
} else {
if (root.children) {
@ -89,9 +89,9 @@ name: "TestReviewMinder",
// name: data.text,
};
if (data.resource.length > 1) {
if (data.resource.indexOf('不通过') > -1) {
if (data.resource.indexOf(this.$t('test_track.plan_view.not_pass')) > -1) {
testCase.status = 'UnPass';
} else if (data.resource.indexOf('通过') > -1) {
} else if (data.resource.indexOf(this.$t('test_track.plan_view.pass')) > -1) {
testCase.status = 'Pass';
}
}

View File

@ -3,7 +3,7 @@
<ms-tag v-if="value == 'Prepare'" type="info" :content="$t('test_track.plan.plan_status_prepare')"/>
<ms-tag v-if="value == 'Underway'" type="primary" :content="$t('test_track.plan.plan_status_running')"/>
<ms-tag v-if="value == 'Pass'" type="success" :content="$t('test_track.plan_view.pass')"/>
<ms-tag v-if="value == 'UnPass'" type="danger" content="未通过"/>
<ms-tag v-if="value == 'UnPass'" type="danger" content="$t('test_track.plan_view.not_pass')"/>
<ms-tag v-if="value == 'Failure'" type="danger" :content="$t('test_track.plan_view.failure')"/>
<ms-tag v-if="value == 'Blocking'" type="warning" :content="$t('test_track.plan_view.blocking')"/>
<ms-tag v-if="value == 'Skip'" type="info" :content="$t('test_track.plan_view.skip')"/>

View File

@ -58,7 +58,7 @@
<review-list class="track-card"/>
</el-col>
<el-col :span="12">
<ms-running-task-list class="track-card"/>
<ms-running-task-list :call-from="'track_home'" class="track-card" @redirectPage="redirectPage"/>
</el-col>
</el-row>
@ -73,7 +73,7 @@ import MsMainContainer from "@/business/components/common/components/MsMainConta
import MsContainer from "@/business/components/common/components/MsContainer";
import CaseCountCard from "@/business/components/track/home/components/CaseCountCard";
import RelevanceCaseCard from "@/business/components/track/home/components/RelevanceCaseCard";
import {getCurrentProjectID, getUUID} from "@/common/js/utils";
import {getCurrentProjectID,getUUID} from "@/common/js/utils";
import CaseMaintenance from "@/business/components/track/home/components/CaseMaintenance";
import {COUNT_NUMBER, COUNT_NUMBER_SHALLOW} from "@/common/js/constants";
import BugCountCard from "@/business/components/track/home/components/BugCountCard";
@ -187,6 +187,8 @@ export default {
this.caseOption = option;
},
redirectPage(page,dataType,selectType){
//test_plan
this.$router.push('/track/plan/view/'+selectType);
switch (page){
case "case":
this.$router.push({name:'testCase',params:{dataType:dataType,dataSelectRange:selectType, projectId: getCurrentProjectID()}});

View File

@ -2,8 +2,17 @@
<div>
<el-card class="table-card" v-loading="result.loading">
<env-popover :env-map="projectEnvMap" :project-ids="projectIds" @setProjectEnvMap="setProjectEnvMap"
:project-list="projectList" ref="envPopover" class="env-popover"/>
<template v-slot:header>
<el-row>
<el-col :span="8" :offset="11">
<el-input :placeholder="$t('api_test.definition.request.select_case')" @blur="search"
@keyup.enter.native="search" class="search-input" size="small" v-model="condition.name"/>
</el-col>
<env-popover :env-map="projectEnvMap" :project-ids="projectIds" @setProjectEnvMap="setProjectEnvMap"
:project-list="projectList" ref="envPopover" class="env-popover"/>
</el-row>
</template>
<el-table ref="scenarioTable" border :data="tableData" class="adjust-table" @select-all="handleSelectAll" @select="handleSelect">
<el-table-column type="selection"/>

View File

@ -11,10 +11,10 @@
<template v-slot:main>
<ms-tab-button
:active-dom.sync="activeDom"
:left-tip="'用例列表'"
:left-tip="$t('api_test.definition.case_title')"
:left-content="'CASE'"
:right-tip="'脑图'"
:right-content="'脑图'"
:right-tip="$t('test_track.case.minder')"
:right-content="$t('test_track.case.minder')"
:middle-button-enable="false">
<functional-test-case-list
class="table-list"

View File

@ -13,48 +13,59 @@
ref="nodeTree"/>
</template>
<el-card>
<template v-slot:header>
<el-row>
<el-col :span="8" :offset="16">
<el-input :placeholder="$t('api_test.definition.request.select_case')" @blur="getTestCases"
@keyup.enter.native="getTestCases" class="search-input" size="small" v-model="condition.name"/>
</el-col>
</el-row>
</template>
<el-table
v-loading="result.loading"
:data="testCases"
row-key="id"
@select-all="handleSelectAll"
@select="handleSelectionChange"
height="50vh"
ref="table">
<el-table-column
type="selection"/>
<el-table-column
prop="name"
:label="$t('commons.name')"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="status"
column-key="status"
:filters="statusFilters"
:label="$t('commons.status')">
<template v-slot:default="{row}">
<ms-performance-test-status :row="row"/>
</template>
</el-table-column>
<el-table-column
sortable
prop="createTime"
:label="$t('commons.create_time')">
<template v-slot:default="scope">
<span>{{ scope.row.createTime | timestampFormatDate }}</span>
</template>
</el-table-column>
<el-table-column
sortable
prop="updateTime"
:label="$t('commons.update_time')">
<template v-slot:default="scope">
<span>{{ scope.row.updateTime | timestampFormatDate }}</span>
</template>
</el-table-column>
</el-table>
<el-table
v-loading="result.loading"
:data="testCases"
row-key="id"
@select-all="handleSelectAll"
@select="handleSelectionChange"
height="50vh"
ref="table">
<el-table-column
type="selection"/>
<el-table-column
prop="name"
:label="$t('commons.name')"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="status"
column-key="status"
:filters="statusFilters"
:label="$t('commons.status')">
<template v-slot:default="{row}">
<ms-performance-test-status :row="row"/>
</template>
</el-table-column>
<el-table-column
sortable
prop="createTime"
:label="$t('commons.create_time')">
<template v-slot:default="scope">
<span>{{ scope.row.createTime | timestampFormatDate }}</span>
</template>
</el-table-column>
<el-table-column
sortable
prop="updateTime"
:label="$t('commons.update_time')">
<template v-slot:default="scope">
<span>{{ scope.row.updateTime | timestampFormatDate }}</span>
</template>
</el-table-column>
</el-table>
</el-card>
<ms-table-pagination :change="getTestCases" :current-page.sync="currentPage" :page-size.sync="pageSize"
:total="total"/>
</test-case-relevance-base>

View File

@ -13,16 +13,16 @@
class="el-menu-demo header-menu" mode="horizontal" @select="handleSelect"
:default-active="activeIndex">
<el-menu-item index="functional">功能测试用例</el-menu-item>
<el-menu-item index="api">接口测试用例</el-menu-item>
<el-menu-item index="load">性能测试用例</el-menu-item>
<!-- <el-menu-item index="api">接口测试用例</el-menu-item>
<el-menu-item index="load">性能测试用例</el-menu-item>-->
<!-- <el-menu-item index="report">报告统计</el-menu-item>-->
</el-menu>
</template>
</ms-test-plan-header-bar>
<test-review-function v-if="activeIndex === 'functional'" :redirectCharType="redirectCharType"
:clickType="clickType" :review-id="reviewId"></test-review-function>
<test-review-api v-if="activeIndex === 'api'" :review-id="reviewId"></test-review-api>
<test-review-load v-if="activeIndex === 'load'" :review-id="reviewId"></test-review-load>
<!-- <test-review-api v-if="activeIndex === 'api'" :review-id="reviewId"></test-review-api>
<test-review-load v-if="activeIndex === 'load'" :review-id="reviewId"></test-review-load>-->
</div>

View File

@ -12,10 +12,10 @@
<template v-slot:main>
<ms-tab-button
:active-dom.sync="activeDom"
:left-tip="'用例列表'"
:left-tip="$t('api_test.definition.case_title')"
:left-content="'CASE'"
:right-tip="'脑图'"
:right-content="'脑图'"
:right-tip="$t('test_track.case.minder')"
:right-content="$t('test_track.case.minder')"
:middle-button-enable="false">
<test-review-test-case-list
class="table-list"

View File

@ -82,10 +82,6 @@
</el-container>
<template v-slot:footer>
<div style="margin-bottom: 15px">
<el-checkbox v-model="checked">同步添加关联的接口和性能测试</el-checkbox>
</div>
<ms-dialog-footer @cancel="dialogFormVisible = false" @confirm="saveReviewRelevance"/>
</template>
@ -203,7 +199,9 @@ export default {
param.reviewId = this.reviewId;
param.testCaseIds = [...this.selectIds];
param.request = this.condition;
/*
param.checked = this.checked;
*/
//
if (this.testReviews.length === param.testCaseIds.length) {
param.testCaseIds = ['all'];

View File

@ -1,6 +1,6 @@
<template>
<div class="card-container">
<ms-table-header :is-,tester-permission="true" :condition.sync="condition" @search="initTableData"
<ms-table-header :tester-permission="true" :condition.sync="condition" @search="initTableData"
:show-create="false" :tip="$t('commons.search_by_name_or_id')">
<template v-slot:button>
<ms-table-button :is-tester-permission="true" icon="el-icon-video-play"

View File

@ -1104,6 +1104,7 @@ export default {
cancel_relevance_success: "Unlinked successfully",
switch_project: "Switch project",
case: {
minder: "Minder",
check_select: "Please check the case",
export_all_cases: 'Are you sure you want to export all use cases?',
input_test_case: 'Please enter the associated case name',
@ -1312,6 +1313,7 @@ export default {
executor: "Executor",
execute_result: "Result",
pass: "Pass",
not_pass: "UnPass",
failure: "Failure",
blocking: "Blocking",
skip: "Skip",

View File

@ -1108,6 +1108,7 @@ export default {
cancel_relevance_success: "取消关联成功",
switch_project: "切换项目",
case: {
minder: "脑图",
check_select: "请勾选用例",
export_all_cases: '确定要导出全部用例吗?',
input_test_case: '请输入关联用例名称',
@ -1316,6 +1317,7 @@ export default {
executor: "执行人",
execute_result: "执行结果",
pass: "通过",
not_pass: "不通过",
failure: "失败",
blocking: "阻塞",
skip: "跳过",

View File

@ -1106,6 +1106,7 @@ export default {
cancel_relevance_success: "取消關聯成功",
switch_project: "切換項目",
case: {
minder: "腦圖",
check_select: "請勾選用例",
export_all_cases: '確定要導出全部用例嗎?',
input_test_case: '請輸入關聯用例名稱',
@ -1314,6 +1315,7 @@ export default {
executor: "執行人",
execute_result: "執行結果",
pass: "通過",
not_pass: "不通過",
failure: "失敗",
blocking: "阻塞",
skip: "跳過",