From 3897efc15ffb48245ea9d33f1921160b076bdb63 Mon Sep 17 00:00:00 2001 From: seagull <24163551@qq.com> Date: Thu, 13 Jun 2019 10:54:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=93=E5=8D=B0=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E8=AE=A1=E5=88=92=E4=B8=AD=E7=94=A8=E4=BE=8B=E6=95=B0?= =?UTF-8?q?=E7=9A=84=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/luckyclient/caserun/exappium/AppTestControl.java | 2 +- .../luckyclient/caserun/exinterface/BatchTestCaseExecution.java | 2 ++ src/main/java/luckyclient/caserun/exinterface/TestControl.java | 1 + .../java/luckyclient/caserun/exwebdriver/WebTestControl.java | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/luckyclient/caserun/exappium/AppTestControl.java b/src/main/java/luckyclient/caserun/exappium/AppTestControl.java index 71d6ebc..f0557ad 100644 --- a/src/main/java/luckyclient/caserun/exappium/AppTestControl.java +++ b/src/main/java/luckyclient/caserun/exappium/AppTestControl.java @@ -144,7 +144,7 @@ public class AppTestControl { } LogOperation caselog = new LogOperation(); List cases = GetServerAPI.getCasesbyplanId(taskScheduling.getPlanId()); - LogUtil.APP.info("当前计划中读取到用例共{}个",cases.size()); + LogUtil.APP.info("当前计划【{}】中共有【{}】条待测试用例...",task.getTaskName(),cases.size()); LogOperation.updateTaskExecuteStatus(taskId, cases.size()); for (ProjectCase testcase : cases) { diff --git a/src/main/java/luckyclient/caserun/exinterface/BatchTestCaseExecution.java b/src/main/java/luckyclient/caserun/exinterface/BatchTestCaseExecution.java index dd400e9..0e6d7da 100644 --- a/src/main/java/luckyclient/caserun/exinterface/BatchTestCaseExecution.java +++ b/src/main/java/luckyclient/caserun/exinterface/BatchTestCaseExecution.java @@ -6,6 +6,7 @@ import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; import luckyclient.dblog.LogOperation; +import luckyclient.publicclass.LogUtil; import luckyclient.serverapi.api.GetServerAPI; import luckyclient.serverapi.entity.ProjectCase; @@ -45,6 +46,7 @@ public class BatchTestCaseExecution { } }else{ //批量执行用例 String[] temp=batchcase.split("\\#"); + LogUtil.APP.info("当前批量执行任务中共有【{}】条待测试用例...",temp.length); for(int i=0;i(1000), new ThreadPoolExecutor.CallerRunsPolicy()); List cases = GetServerAPI.getCasesbyplanId(taskScheduling.getPlanId()); + LogUtil.APP.info("当前计划【{}】中共有【{}】条待测试用例...",task.getTaskName(),cases.size()); LogOperation.updateTaskExecuteStatus(taskid, cases.size()); int casepriority = 0; for (int j = 0; j < cases.size(); j++) { diff --git a/src/main/java/luckyclient/caserun/exwebdriver/WebTestControl.java b/src/main/java/luckyclient/caserun/exwebdriver/WebTestControl.java index 716321f..7a3273e 100644 --- a/src/main/java/luckyclient/caserun/exwebdriver/WebTestControl.java +++ b/src/main/java/luckyclient/caserun/exwebdriver/WebTestControl.java @@ -110,7 +110,7 @@ public class WebTestControl { LogOperation caselog = new LogOperation(); List cases = GetServerAPI.getCasesbyplanId(taskScheduling.getPlanId()); - LogUtil.APP.info("当前计划中读取到用例共【{}】个",cases.size()); + LogUtil.APP.info("当前计划【{}】中共有【{}】条待测试用例...",task.getTaskName(),cases.size()); LogOperation.updateTaskExecuteStatus(taskid, cases.size()); for (ProjectCase testcase : cases) {