mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-02 03:58:33 +08:00
fix(测试跟踪): 修复7天失败用例未统计场景列表执行时的失败次数的问题
--bug=1023470 --user=宋天阳 【测试跟踪】首页- 过去7天测试计划失败用例TOP 10,没有统计接口场景失败的次数 https://www.tapd.cn/55049933/s/1338954
This commit is contained in:
parent
edbcbd544d
commit
b77d70e163
@ -223,6 +223,10 @@ public class TestResultService {
|
||||
|
||||
if (planRunModes.contains(dto.getRunMode())) {
|
||||
TestPlanApiScenario testPlanApiScenario = testPlanApiScenarioMapper.selectByPrimaryKey(scenarioReport.getScenarioId());
|
||||
if (testPlanApiScenario == null) {
|
||||
//测试计划-场景列表中,批量/单独执行场景时,关联ID记录在testID中
|
||||
testPlanApiScenario = testPlanApiScenarioMapper.selectByPrimaryKey(dto.getTestId());
|
||||
}
|
||||
if (testPlanApiScenario != null) {
|
||||
ApiScenarioWithBLOBs apiScenario = apiScenarioMapper.selectByPrimaryKey(testPlanApiScenario.getApiScenarioId());
|
||||
if (apiScenario != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user