fix(接口测试): 修复接口测试覆盖率跳转时的统计问题
This commit is contained in:
parent
d73b28f0cd
commit
a8765a2ef6
|
@ -189,7 +189,11 @@ public class ApiDefinitionService extends MoveNodeService {
|
||||||
private List<String> selectApiIdInCaseAndScenarioStep(String projectId, List<String> protocols) {
|
private List<String> selectApiIdInCaseAndScenarioStep(String projectId, List<String> protocols) {
|
||||||
List<String> apiInCase = this.selectApiIdInCase(projectId, protocols);
|
List<String> apiInCase = this.selectApiIdInCase(projectId, protocols);
|
||||||
List<String> apiInScenarioStep = this.selectApiIdInScenarioStep(projectId, protocols, apiInCase);
|
List<String> apiInScenarioStep = this.selectApiIdInScenarioStep(projectId, protocols, apiInCase);
|
||||||
return ListUtils.union(apiInCase, apiInScenarioStep);
|
List<String> returnList = ListUtils.union(apiInCase, apiInScenarioStep);
|
||||||
|
if (returnList.isEmpty()) {
|
||||||
|
returnList.add("nonePrepared");
|
||||||
|
}
|
||||||
|
return returnList;
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<String> selectApiIdInCase(String projectId, List<String> protocols) {
|
private List<String> selectApiIdInCase(String projectId, List<String> protocols) {
|
||||||
|
|
Loading…
Reference in New Issue