From 0cb1adf1944bcf5ecbd86e074ff50afe7d282a05 Mon Sep 17 00:00:00 2001
From: Nathan Mo <54135657+QizhengMo@users.noreply.github.com>
Date: Mon, 26 Aug 2024 13:22:56 +0800
Subject: [PATCH] Fix/empty local plan (#350)
* fix: redundant report init
---
.../arextest/schedule/service/PlanConsumePrepareService.java | 2 +-
pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arex-schedule-web-api/src/main/java/com/arextest/schedule/service/PlanConsumePrepareService.java b/arex-schedule-web-api/src/main/java/com/arextest/schedule/service/PlanConsumePrepareService.java
index 7c4e6418..58f60282 100644
--- a/arex-schedule-web-api/src/main/java/com/arextest/schedule/service/PlanConsumePrepareService.java
+++ b/arex-schedule-web-api/src/main/java/com/arextest/schedule/service/PlanConsumePrepareService.java
@@ -93,7 +93,7 @@ public int preparePlan(ReplayPlan replayPlan) {
}
replayStorageService.clearReplayScenes(replayPlan.getAppId());
int planSavedCaseSize = prepareAllActions(replayPlan.getReplayActionItemList());
- if (!replayPlan.isReRun()) {
+ if (!replayPlan.isReRun() && planSavedCaseSize != 0) {
replayPlan.setCaseTotalCount(planSavedCaseSize);
replayPlanRepository.updateCaseTotal(replayPlan.getId(), planSavedCaseSize);
replayPlan.setInitReportItem(true);
diff --git a/pom.xml b/pom.xml
index 4bb99a04..c6106995 100644
--- a/pom.xml
+++ b/pom.xml
@@ -320,5 +320,5 @@
https://github.com/arextest/arex-replay-schedule
https://github.com/arextest/arex-replay-schedule
- 1.2.15
+ 1.2.16
\ No newline at end of file