fix (接口自动化): 导入jmx tcp协议处理问题修复

This commit is contained in:
fit2-zhao 2021-08-19 16:44:15 +08:00 committed by fit2-zhao
parent 8ea0f731dd
commit 7c1d9338b7
2 changed files with 2 additions and 1 deletions

View File

@ -333,6 +333,7 @@ public class MsJmeterParser extends ApiImportAbstractParser<ScenarioImport> {
msTCPSampler.setRequest(tcpSampler.getRequestData());
msTCPSampler.setUsername(tcpSampler.getProperty(ConfigTestElement.USERNAME).getStringValue());
msTCPSampler.setPassword(tcpSampler.getProperty(ConfigTestElement.PASSWORD).getStringValue());
msTCPSampler.setClassname(tcpSampler.getClassname());
}
private void convertDubboSample(MsDubboSampler elementNode, DubboSample sampler) {

View File

@ -44,7 +44,7 @@ export default {
},
watch: {
result() {
if (this.result.responseResult) {
if (this.result && this.result.responseResult) {
this.response = this.result;
} else {
this.getExecResult();