fix(测试跟踪): 修复重试tab页文案和console页面不一致的缺陷

--bug=1025754 --user=王孝刚 【测试跟踪】执行测试计划选择失败重跑2次-All
Tab页面和Console页面显示重试次数不一致 https://www.tapd.cn/55049933/s/1366297
This commit is contained in:
wxg0103 2023-04-25 10:43:41 +08:00 committed by fit2-zhao
parent cfc2a704ba
commit 5a1748d8b3
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ public class MsRetryLoopController extends MsTestElement {
"\n" + "\t\tvars.put(\"" + ms_current_timer + "_num\", \"0\");" + "\n" + "\t\tvars.put(\"" + ms_current_timer + "_num\", \"0\");" +
"\n" + "\t}else{" + "\n" + "\t}else{" +
"\n" + "\t\tint retryNum= Integer.parseInt(vars.get(\"" + ms_current_timer + "_num\"));" + "\n" + "\t\tint retryNum= Integer.parseInt(vars.get(\"" + ms_current_timer + "_num\"));" +
"\n" + "\t\tlog.info(\"重试:\"+ retryNum);" + "\n" + "\t\tlog.info(\"重试:\"+ (retryNum + 1));" +
"\n" + " \tprev.setSampleLabel(\"MsRetry_\"+ (retryNum + 1) + \"_\" + prev.getSampleLabel());" + "\n" + " \tprev.setSampleLabel(\"MsRetry_\"+ (retryNum + 1) + \"_\" + prev.getSampleLabel());" +
"\n" + "\t\tretryNum =retryNum +1;\n" + "\t\tvars.put(\"" + ms_current_timer + "_num\",retryNum + \"\");\n" + "\t}" + "\n" + "\t\tretryNum =retryNum +1;\n" + "\t\tvars.put(\"" + ms_current_timer + "_num\",retryNum + \"\");\n" + "\t}" +
"\n" + "\tif(vars.get(\"" + ms_current_timer + "_num\").equals( \"" + retryNum + "\")){" + "\n" + "\tif(vars.get(\"" + ms_current_timer + "_num\").equals( \"" + retryNum + "\")){" +