fix(接口自动化): 修复测试用例模块匹配问题。
This commit is contained in:
parent
f9db1b51da
commit
e958370006
|
@ -635,6 +635,10 @@ public class MsHTTPSamplerProxy extends MsTestElement {
|
|||
} else {
|
||||
apiDefinition = apiDefinitionService.get(this.getId());
|
||||
if (apiDefinition == null) {
|
||||
ApiTestCaseWithBLOBs apiTestCaseWithBLOBs = apiTestCaseService.get(this.getId());
|
||||
if (apiTestCaseWithBLOBs != null) {
|
||||
apiDefinition = apiDefinitionService.get(apiTestCaseWithBLOBs.getApiDefinitionId());
|
||||
} else {
|
||||
TestPlanApiCaseService testPlanApiCaseService = CommonBeanFactory.getBean(TestPlanApiCaseService.class);
|
||||
TestPlanApiCase testPlanApiCase = testPlanApiCaseService.getById(this.getId());
|
||||
if (testPlanApiCase != null) {
|
||||
|
@ -645,6 +649,7 @@ public class MsHTTPSamplerProxy extends MsTestElement {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (apiDefinition != null) {
|
||||
HttpConfig config = httpConfig.getModuleCondition(apiDefinition.getModuleId(), item);
|
||||
if (config != null) {
|
||||
|
|
Loading…
Reference in New Issue