fix(接口定义): 修复场景执行结果显示错误的缺陷

--bug=1026492 --user=王孝刚 【接口测试】场景中,事物控制器、条件控制器、引用场景,执行结果显示错误
https://www.tapd.cn/55049933/s/1375344
This commit is contained in:
wxg0103 2023-05-24 18:10:49 +08:00 committed by fit2-zhao
parent e11fecdc30
commit 78bafb772c
3 changed files with 42 additions and 3 deletions

View File

@ -59,10 +59,19 @@
<i class="el-icon-loading" style="font-size: 16px" /> <i class="el-icon-loading" style="font-size: 16px" />
{{ $t('commons.testing') }} {{ $t('commons.testing') }}
</span> </span>
<span
class="ms-step-debug-code"
:class="'ms-req-error-report'"
v-if="
!loading && !node.data.testing && node.data.debug &&
node.data.code === 'FAKE_ERROR'
">
FakeError
</span>
<span <span
class="ms-step-debug-code" class="ms-step-debug-code"
:class="node.data.code === 'ERROR' ? 'ms-req-error' : 'ms-req-success'" :class="node.data.code === 'ERROR' ? 'ms-req-error' : 'ms-req-success'"
v-if="!loading && node.data.debug && !node.data.testing"> v-if="!loading && node.data.debug && !node.data.testing && node.data.code !== 'FAKE_ERROR'">
{{ getCode() }} {{ getCode() }}
</span> </span>
</template> </template>
@ -447,4 +456,8 @@ export default {
font-size: 15px; font-size: 15px;
color: #de9d1c; color: #de9d1c;
} }
.ms-req-error-report {
color: #f6972a;
}
</style> </style>

View File

@ -51,10 +51,19 @@
<i class="el-icon-loading" style="font-size: 16px" /> <i class="el-icon-loading" style="font-size: 16px" />
{{ $t('commons.testing') }} {{ $t('commons.testing') }}
</span> </span>
<span
class="ms-step-debug-code"
:class="'ms-req-error-report'"
v-if="
!loading && !node.data.testing && node.data.debug &&
node.data.code === 'FAKE_ERROR'
">
FakeError
</span>
<span <span
class="ms-step-debug-code" class="ms-step-debug-code"
:class="node.data.code === 'ERROR' ? 'ms-req-error' : 'ms-req-success'" :class="node.data.code === 'ERROR' ? 'ms-req-error' : 'ms-req-success'"
v-if="!loading && !node.data.testing && node.data.debug && node.data.code"> v-if="!loading && !node.data.testing && node.data.debug && node.data.code && node.data.code !== 'FAKE_ERROR'">
{{ getCode() }} {{ getCode() }}
</span> </span>
</template> </template>
@ -202,4 +211,8 @@ export default {
.ms-test-running { .ms-test-running {
color: #783887; color: #783887;
} }
.ms-req-error-report {
color: #f6972a;
}
</style> </style>

View File

@ -17,10 +17,19 @@
<i class="el-icon-loading" style="font-size: 16px" /> <i class="el-icon-loading" style="font-size: 16px" />
{{ $t('commons.testing') }} {{ $t('commons.testing') }}
</span> </span>
<span
class="ms-step-debug-code"
:class="'ms-req-error-report'"
v-if="
!loading && !node.data.testing && node.data.debug &&
node.data.code === 'FAKE_ERROR'
">
FakeError
</span>
<span <span
class="ms-step-debug-code" class="ms-step-debug-code"
:class="node.data.code === 'ERROR' ? 'ms-req-error' : 'ms-req-success'" :class="node.data.code === 'ERROR' ? 'ms-req-error' : 'ms-req-success'"
v-if="!loading && !node.data.testing && node.data.debug"> v-if="!loading && !node.data.testing && node.data.debug && node.data.code !== 'FAKE_ERROR'">
{{ getCode() }} {{ getCode() }}
</span> </span>
</template> </template>
@ -200,4 +209,8 @@ export default {
.ms-test-running { .ms-test-running {
color: #783887; color: #783887;
} }
.ms-req-error-report {
color: #f6972a;
}
</style> </style>