feat(接口测试): dubbo 单接口调试

This commit is contained in:
chenjianxing 2020-08-11 10:36:18 +08:00
parent 22950f0893
commit e187d91c76
5 changed files with 15 additions and 10 deletions

View File

@ -102,6 +102,7 @@
</if>
</foreach>
</if>
AND r.status != 'Debug'
</where>
<if test="request.orders != null and request.orders.size() > 0">
order by
@ -131,6 +132,7 @@
LEFT JOIN user ON user.id = r.user_id
<where>
r.id = #{id}
AND r.status != 'Debug'
</where>
ORDER BY r.update_time DESC
</select>

View File

@ -33,7 +33,7 @@
<el-dropdown trigger="click" @command="handleCommand">
<el-button class="el-dropdown-link more" icon="el-icon-more" plain/>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="report" :disabled="test.status !== 'Completed'">
<el-dropdown-item command="report">
{{$t('api_report.title')}}
</el-dropdown-item>
<el-dropdown-item command="performance" :disabled="create || isReadOnly">

View File

@ -11,6 +11,8 @@
</el-select>
</el-form-item>
<el-button class="debug-button" size="small" type="primary" @click="runDebug">{{$t('load_test.save_and_run')}}</el-button>
<el-tabs v-model="activeName">
<el-tab-pane label="Interface" name="interface">
<ms-dubbo-interface :request="request" :is-read-only="isReadOnly"/>
@ -94,6 +96,9 @@
this.request.useEnvironment = false;
}
this.$refs["request"].clearValidate();
},
runDebug() {
this.$emit('runDebug');
}
},

View File

@ -197,12 +197,4 @@
color: #F56C6C;
}
.debug-button {
margin-left: auto;
display: block;
/*margin-bottom: -30px;*/
margin-right: 10px;
z-index: 1999;
}
</style>

View File

@ -1,5 +1,5 @@
<template>
<div>
<div class="request-form">
<component @runDebug="runDebug" :is="component" :is-read-only="isReadOnly" :request="request"/>
<ms-scenario-results v-loading="debugReportLoading" v-if="isCompleted" :scenarios="isCompleted ? request.debugReport.scenarios : []"/>
</div>
@ -97,4 +97,10 @@
margin-top: 20px;
}
.request-form >>> .debug-button {
margin-left: auto;
display: block;
margin-right: 10px;
}
</style>