fix(测试跟踪): 修复UI测试计划列表状态问题
--bug=1019512 --user=刘瑶 【UI测试】场景列表-执行结果和指令列表-调试结果与测试报告-状态不一致 https://www.tapd.cn/55049933/s/1292728
This commit is contained in:
parent
4a25c0ec0a
commit
c27c6a8bce
|
@ -282,9 +282,12 @@ export const UI_SCENARIO_RESULT = {
|
|||
options: [OPERATORS.IN, OPERATORS.NOT_IN]
|
||||
},
|
||||
options: [
|
||||
{text: 'Error', value: 'ERROR'},
|
||||
{text: 'Success', value: 'SUCCESS'},
|
||||
{text: 'Pending', value: 'PENDING'},
|
||||
{label: "Running", value: "RUNNING"},
|
||||
{label: "Error", value: "ERROR"},
|
||||
{label: "Success", value: "SUCCESS"},
|
||||
{label: 'Stopped', value: 'STOPPED'},
|
||||
{label: "Pending", value: "PENDING"},
|
||||
{label: "Timeout", value: "TIMEOUT"},
|
||||
],
|
||||
props: { // 尾部控件的props,一般为element ui控件的props
|
||||
multiple: true
|
||||
|
|
|
@ -56,13 +56,16 @@
|
|||
min-width="120px">
|
||||
<template v-slot:default="{row}">
|
||||
<el-link type="success" @click="showReport(row)" v-if="row.lastResult === 'Success' || row.lastResult === 'SUCCESS'">
|
||||
{{ $t('api_test.automation.success') }}
|
||||
{{ $t('Success') }}
|
||||
</el-link>
|
||||
<el-link type="danger" @click="showReport(row)" v-else-if="row.lastResult === 'Fail' || row.lastResult === 'FAIL' || row.lastResult === 'ERROR'">
|
||||
{{ $t('api_test.automation.fail') }}
|
||||
{{ $t('Error') }}
|
||||
</el-link>
|
||||
<el-link type="info" v-else-if="row.lastResult === 'PENDING' || row.lastResult === 'UnExecute' || !row.lastResult">
|
||||
{{ $t('api_test.home_page.detail_card.unexecute') }}
|
||||
<el-link type="info" v-else-if="row.lastResult === 'PENDING' || row.lastResult === 'UnExecute'">
|
||||
{{ $t('Pending') }}
|
||||
</el-link>
|
||||
<el-link type="info" v-else>
|
||||
{{ row.lastResult }}
|
||||
</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
|
Loading…
Reference in New Issue