fix (接口自动化): 插件报告展示问题修复 (#5916)

Co-authored-by: fit2-zhao <yong.zhao@fit2cloud.com>
This commit is contained in:
metersphere-bot 2021-09-02 18:39:24 +08:00 committed by GitHub
parent 2eec0d7f48
commit 95e0e1921c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -341,7 +341,7 @@ export default {
if (item && item.requestResults) {
item.requestResults.forEach(req => {
req.responseResult.console = res.console;
if (req.method === 'Request') {
if (req.method === 'Request' && req.subRequestResults && req.subRequestResults.length > 0) {
this.getTransaction(req.subRequestResults, resMap);
} else {
this.reqTotal++;

View File

@ -20,7 +20,7 @@ export const ELEMENTS = new Map([
['JmeterElement', []],
['CustomizeReq', ["ConstantTimer", "JSR223PreProcessor", "JSR223PostProcessor", "JDBCPostProcessor", "JDBCPreProcessor", "Assertions", "Extract"]],
['MaxSamplerProxy', ["JSR223PreProcessor", "JSR223PostProcessor", "JDBCPreProcessor", "JDBCPostProcessor", "Assertions", "Extract"]],
['AllSamplerProxy', ["HTTPSamplerProxy", "DubboSampler", "JDBCSampler", "TCPSampler"]],
['AllSamplerProxy', ["HTTPSamplerProxy", "DubboSampler", "JDBCSampler", "TCPSampler","Sampler"]],
['AllCanExecType', ["HTTPSamplerProxy", "DubboSampler", "JDBCSampler", "TCPSampler", "JSR223Processor"]]
])

View File

@ -129,6 +129,7 @@ export default {
this.request.requestResult = [];
}
this.data = this.request;
this.request.type = 'Sampler';
},
watch: {
message() {