mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-04 21:19:52 +08:00
fix(测试跟踪): 缺陷平台接口调用失败,功能用例编辑会报错
--bug=1021867 --user=陈建星 【测试跟踪】功能用例-编辑-保存失败 https://www.tapd.cn/55049933/s/1325962
This commit is contained in:
parent
06397d581d
commit
18c984c8bd
@ -384,11 +384,15 @@ public class TestCaseService {
|
|||||||
checkTestCustomNum(testCase);
|
checkTestCustomNum(testCase);
|
||||||
testCase.setUpdateTime(System.currentTimeMillis());
|
testCase.setUpdateTime(System.currentTimeMillis());
|
||||||
|
|
||||||
// 同步缺陷与需求的关联关系
|
try {
|
||||||
updateThirdPartyIssuesLink(testCase);
|
// 同步缺陷与需求的关联关系
|
||||||
|
updateThirdPartyIssuesLink(testCase);
|
||||||
|
|
||||||
// 同步用例与需求的关联关系
|
// 同步用例与需求的关联关系
|
||||||
addDemandHyperLink(testCase, "edit");
|
addDemandHyperLink(testCase, "edit");
|
||||||
|
} catch (Exception e) {
|
||||||
|
LogUtil.error(e);
|
||||||
|
}
|
||||||
|
|
||||||
if (StringUtils.isEmpty(testCase.getDemandId())) {
|
if (StringUtils.isEmpty(testCase.getDemandId())) {
|
||||||
testCase.setDemandId(StringUtils.EMPTY);
|
testCase.setDemandId(StringUtils.EMPTY);
|
||||||
@ -425,6 +429,9 @@ public class TestCaseService {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Project project = baseProjectService.getProjectById(testCase.getProjectId());
|
Project project = baseProjectService.getProjectById(testCase.getProjectId());
|
||||||
|
if (!StringUtils.equals(project.getPlatform(), IssuesManagePlatform.AzureDevops.name())) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
IssuesRequest issuesRequest = new IssuesRequest();
|
IssuesRequest issuesRequest = new IssuesRequest();
|
||||||
if (!issuesService.isThirdPartTemplate(project)) {
|
if (!issuesService.isThirdPartTemplate(project)) {
|
||||||
issuesRequest.setDefaultCustomFields(issuesService.getDefaultCustomFields(testCase.getProjectId()));
|
issuesRequest.setDefaultCustomFields(issuesService.getDefaultCustomFields(testCase.getProjectId()));
|
||||||
|
Loading…
Reference in New Issue
Block a user