mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-03 04:28:51 +08:00
fix(UI 自动化): 测试计划表头字段运行环境
--bug=1016288 --user=张大海 【测试跟踪】测试计划-UI测试用例-表头字段运行环境没用-去掉 https://www.tapd.cn/55049933/s/1235003
This commit is contained in:
parent
d4ff01161a
commit
f228f5d2a8
@ -182,18 +182,6 @@
|
|||||||
<!-- 批量编辑 -->
|
<!-- 批量编辑 -->
|
||||||
<batch-edit :dialog-title="$t('test_track.case.batch_edit_case')" :type-arr="typeArr" :value-arr="valueArr"
|
<batch-edit :dialog-title="$t('test_track.case.batch_edit_case')" :type-arr="typeArr" :value-arr="valueArr"
|
||||||
:select-row="this.$refs.table ? this.$refs.table.selectRows : new Set()" ref="batchEdit" @batchEdit="batchEdit"/>
|
:select-row="this.$refs.table ? this.$refs.table.selectRows : new Set()" ref="batchEdit" @batchEdit="batchEdit"/>
|
||||||
<!-- <ui-run-mode-->
|
|
||||||
<!-- :type="'apiScenario'"-->
|
|
||||||
<!-- :plan-case-ids="planCaseIds"-->
|
|
||||||
<!-- @close="search"-->
|
|
||||||
<!-- @handleRunBatch="handleRunBatch"-->
|
|
||||||
<!-- ref="runMode"/>-->
|
|
||||||
<!-- <ms-plan-run-mode-->
|
|
||||||
<!-- :type="'apiScenario'"-->
|
|
||||||
<!-- :plan-case-ids="planCaseIds"-->
|
|
||||||
<!-- @close="search"-->
|
|
||||||
<!-- @handleRunBatch="handleRunBatch"-->
|
|
||||||
<!-- ref="runMode"/>-->
|
|
||||||
|
|
||||||
<ui-run-mode @handleRunBatch="handleRunBatch" ref="runMode" :custom-run-mode="true" :custom-serial-on-sample-error="true"/>
|
<ui-run-mode @handleRunBatch="handleRunBatch" ref="runMode" :custom-run-mode="true" :custom-serial-on-sample-error="true"/>
|
||||||
|
|
||||||
@ -216,7 +204,7 @@ import {
|
|||||||
initCondition,
|
initCondition,
|
||||||
buildBatchParam, getCustomTableHeader, getCustomTableWidth
|
buildBatchParam, getCustomTableHeader, getCustomTableWidth
|
||||||
} from "../../../../../../../common/js/tableUtils";
|
} from "../../../../../../../common/js/tableUtils";
|
||||||
import {ENV_TYPE, TEST_PLAN_SCENARIO_CASE} from "@/common/js/constants";
|
import {ENV_TYPE, TEST_PLAN_UI_SCENARIO_CASE} from "@/common/js/constants";
|
||||||
import HeaderLabelOperate from "@/business/components/common/head/HeaderLabelOperate";
|
import HeaderLabelOperate from "@/business/components/common/head/HeaderLabelOperate";
|
||||||
import BatchEdit from "@/business/components/track/case/components/BatchEdit";
|
import BatchEdit from "@/business/components/track/case/components/BatchEdit";
|
||||||
import PriorityTableItem from "@/business/components/track/common/tableItems/planview/PriorityTableItem";
|
import PriorityTableItem from "@/business/components/track/common/tableItems/planview/PriorityTableItem";
|
||||||
@ -267,10 +255,10 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
type: TEST_PLAN_SCENARIO_CASE,
|
type: TEST_PLAN_UI_SCENARIO_CASE,
|
||||||
tableHeaderKey:"TEST_PLAN_SCENARIO_CASE",
|
tableHeaderKey:"TEST_PLAN_SCENARIO_CASE",
|
||||||
fields: getCustomTableHeader('TEST_PLAN_SCENARIO_CASE'),
|
fields: getCustomTableHeader('TEST_PLAN_UI_SCENARIO_CASE'),
|
||||||
fieldsWidth: getCustomTableWidth('TEST_PLAN_SCENARIO_CASE'),
|
fieldsWidth: getCustomTableWidth('TEST_PLAN_UI_SCENARIO_CASE'),
|
||||||
screenHeight: 'calc(100vh - 250px)',//屏幕高度
|
screenHeight: 'calc(100vh - 250px)',//屏幕高度
|
||||||
tableLabel: [],
|
tableLabel: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
|
@ -11,6 +11,7 @@ export const TEST_PLAN_FUNCTION_TEST_CASE = 'test_plan_function_test_case'
|
|||||||
export const TEST_PLAN_API_CASE = 'test_plan_api_case'
|
export const TEST_PLAN_API_CASE = 'test_plan_api_case'
|
||||||
export const TEST_PLAN_LOAD_CASE = 'test_plan_load_case'
|
export const TEST_PLAN_LOAD_CASE = 'test_plan_load_case'
|
||||||
export const TEST_PLAN_SCENARIO_CASE = 'test_plan_scenario_case'
|
export const TEST_PLAN_SCENARIO_CASE = 'test_plan_scenario_case'
|
||||||
|
export const TEST_PLAN_UI_SCENARIO_CASE = 'test_plan_ui_scenario_case'
|
||||||
|
|
||||||
export const TokenKey = 'Admin-Token';
|
export const TokenKey = 'Admin-Token';
|
||||||
export const LicenseKey = 'License';
|
export const LicenseKey = 'License';
|
||||||
|
@ -200,6 +200,21 @@ export let CUSTOM_TABLE_HEADER = {
|
|||||||
{id: 'createTime', key: 'b', label: 'commons.create_time'},
|
{id: 'createTime', key: 'b', label: 'commons.create_time'},
|
||||||
{id: 'lastResult', key: 'c', label: 'api_test.automation.last_result'},
|
{id: 'lastResult', key: 'c', label: 'api_test.automation.last_result'},
|
||||||
],
|
],
|
||||||
|
//测试计划-UI用例
|
||||||
|
TEST_PLAN_UI_SCENARIO_CASE: [
|
||||||
|
{id: 'num', key: '1', label: 'commons.id'},
|
||||||
|
{id: 'name', key: '2', label: 'api_test.automation.scenario_name'},
|
||||||
|
{id: 'versionId', key: 'd', label: 'commons.version'},
|
||||||
|
{id: 'level', key: '3', label: 'api_test.automation.case_level'},
|
||||||
|
{id: 'tagNames', key: '4', label: 'api_test.automation.tag'},
|
||||||
|
{id: 'stepTotal', key: '7', label: 'api_test.automation.step'},
|
||||||
|
{id: 'passRate', key: '9', label: 'api_test.automation.passing_rate'},
|
||||||
|
{id: 'maintainer', key: 'a', label: 'api_test.definition.request.responsible'},
|
||||||
|
{id: 'createUser', key: '5', label: 'api_test.automation.creator'},
|
||||||
|
{id: 'updateTime', key: '6', label: 'api_test.automation.update_time'},
|
||||||
|
{id: 'createTime', key: 'b', label: 'commons.create_time'},
|
||||||
|
{id: 'lastResult', key: 'c', label: 'api_test.automation.last_result'},
|
||||||
|
],
|
||||||
//测试用例
|
//测试用例
|
||||||
TRACK_TEST_CASE: [
|
TRACK_TEST_CASE: [
|
||||||
{id: 'num', key: '1', label: 'commons.id'},
|
{id: 'num', key: '1', label: 'commons.id'},
|
||||||
|
Loading…
Reference in New Issue
Block a user