fix(接口测试): 修复dubbo场景转性能测试时testClass和GuiClass元素丢失的问题

修复dubbo场景转性能测试时testClass和GuiClass元素丢失的问题
This commit is contained in:
song-tianyang 2022-02-08 18:37:31 +08:00 committed by CountryBuilder
parent f0a2937552
commit 0623ae54cc
1 changed files with 2 additions and 3 deletions

View File

@ -161,10 +161,9 @@ public class MsDubboSampler extends MsTestElement {
String testName = testNameArr[0];
sampler.setName(testName);
}
} else {
sampler.setProperty(TestElement.TEST_CLASS, DubboSample.class.getName());
sampler.setProperty(TestElement.GUI_CLASS, SaveService.aliasToClass("DubboSampleGui"));
}
sampler.setProperty(TestElement.TEST_CLASS, DubboSample.class.getName());
sampler.setProperty(TestElement.GUI_CLASS, SaveService.aliasToClass("DubboSampleGui"));
ElementUtil.setBaseParams(sampler, this.getParent(), config, this.getId(), this.getIndex());
sampler.addTestElement(configCenter(this.getConfigCenter()));
sampler.addTestElement(registryCenter(this.getRegistryCenter()));