fix(接口测试): 修复CASE集成报告重命名不生效问题
--bug=1014449 --user=赵勇 【接口测试】测试报告用例集合case,修改测试用例报告名称,修改后名称未改变 https://www.tapd.cn/55049933/s/1192069
This commit is contained in:
parent
0f79c15c2f
commit
9e675d6e10
|
@ -952,7 +952,7 @@ public class ApiScenarioReportService {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void reName(ApiScenarioReport reportRequest) {
|
public void reName(ApiScenarioReport reportRequest) {
|
||||||
if (StringUtils.equalsIgnoreCase(reportRequest.getReportType(), ReportTypeConstants.API_INDEPENDENT.name())) {
|
if (StringUtils.equalsAnyIgnoreCase(reportRequest.getReportType(), ReportTypeConstants.API_INDEPENDENT.name(), ReportTypeConstants.API_INTEGRATED.name())) {
|
||||||
ApiDefinitionExecResult result = definitionExecResultMapper.selectByPrimaryKey(reportRequest.getId());
|
ApiDefinitionExecResult result = definitionExecResultMapper.selectByPrimaryKey(reportRequest.getId());
|
||||||
if (result != null) {
|
if (result != null) {
|
||||||
result.setName(reportRequest.getName());
|
result.setName(reportRequest.getName());
|
||||||
|
|
Loading…
Reference in New Issue