refactor(接口测试): 添加断言组件引用
This commit is contained in:
parent
88de5e1776
commit
270a52a422
|
@ -242,6 +242,10 @@
|
||||||
:is-definition="props.isDefinition"
|
:is-definition="props.isDefinition"
|
||||||
@change="handleActiveDebugChange"
|
@change="handleActiveDebugChange"
|
||||||
/>
|
/>
|
||||||
|
<assertion
|
||||||
|
v-else-if="requestVModel.activeTab === RequestComposition.ASSERTION"
|
||||||
|
v-model:params="requestVModel.children[0].assertionConfig.assertions"
|
||||||
|
/>
|
||||||
<auth
|
<auth
|
||||||
v-else-if="requestVModel.activeTab === RequestComposition.AUTH"
|
v-else-if="requestVModel.activeTab === RequestComposition.AUTH"
|
||||||
v-model:params="requestVModel.authConfig"
|
v-model:params="requestVModel.authConfig"
|
||||||
|
@ -488,6 +492,7 @@
|
||||||
import MsSplitBox from '@/components/pure/ms-split-box/index.vue';
|
import MsSplitBox from '@/components/pure/ms-split-box/index.vue';
|
||||||
import MsTab from '@/components/pure/ms-tab/index.vue';
|
import MsTab from '@/components/pure/ms-tab/index.vue';
|
||||||
import MsTagsInput from '@/components/pure/ms-tags-input/index.vue';
|
import MsTagsInput from '@/components/pure/ms-tags-input/index.vue';
|
||||||
|
import assertion from '@/components/business/ms-assertion/index.vue';
|
||||||
import auth from './auth.vue';
|
import auth from './auth.vue';
|
||||||
import postcondition from './postcondition.vue';
|
import postcondition from './postcondition.vue';
|
||||||
import precondition from './precondition.vue';
|
import precondition from './precondition.vue';
|
||||||
|
@ -710,6 +715,8 @@
|
||||||
return `${requestVModel.value.children[0].preProcessorConfig.processors.length || ''}`;
|
return `${requestVModel.value.children[0].preProcessorConfig.processors.length || ''}`;
|
||||||
case RequestComposition.POST_CONDITION:
|
case RequestComposition.POST_CONDITION:
|
||||||
return `${requestVModel.value.children[0].postProcessorConfig.processors.length || ''}`;
|
return `${requestVModel.value.children[0].postProcessorConfig.processors.length || ''}`;
|
||||||
|
case RequestComposition.ASSERTION:
|
||||||
|
return `${requestVModel.value.children[0].assertionConfig.assertions.length || ''}`;
|
||||||
case RequestComposition.AUTH:
|
case RequestComposition.AUTH:
|
||||||
return requestVModel.value.authConfig.authType !== RequestAuthType.NONE ? '1' : '';
|
return requestVModel.value.authConfig.authType !== RequestAuthType.NONE ? '1' : '';
|
||||||
default:
|
default:
|
||||||
|
@ -1147,10 +1154,7 @@
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
polymorphicName: 'MsCommonElement', // 协议多态名称,写死MsCommonElement
|
polymorphicName: 'MsCommonElement', // 协议多态名称,写死MsCommonElement
|
||||||
assertionConfig: {
|
assertionConfig: requestVModel.value.children[0].assertionConfig,
|
||||||
enableGlobal: false,
|
|
||||||
assertions: [],
|
|
||||||
},
|
|
||||||
postProcessorConfig: filterConditionsSqlValidParams(requestVModel.value.children[0].postProcessorConfig),
|
postProcessorConfig: filterConditionsSqlValidParams(requestVModel.value.children[0].postProcessorConfig),
|
||||||
preProcessorConfig: filterConditionsSqlValidParams(requestVModel.value.children[0].preProcessorConfig),
|
preProcessorConfig: filterConditionsSqlValidParams(requestVModel.value.children[0].preProcessorConfig),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue