From 5399dde89822e4a25e1dc019d1fd9b6d945b14f7 Mon Sep 17 00:00:00 2001 From: Killua <270793499@qq.com> Date: Wed, 14 Mar 2018 11:45:55 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E5=A2=9E=E5=8A=A0gotoparentframe=E3=80=81?= =?UTF-8?q?scrollto=E3=80=81scrollintoview=E5=85=B3=E9=94=AE=E5=AD=97=202.?= =?UTF-8?q?=20=E4=BC=98=E5=8C=96=E9=9C=80=E8=A6=81=E5=9D=90=E6=A0=87?= =?UTF-8?q?=E4=BC=A0=E5=8F=82=E7=9A=84mouse=E6=93=8D=E4=BD=9C=203.=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=88=E5=B9=B6=E4=BB=A3=E7=A0=81=E5=BC=95?= =?UTF-8?q?=E8=B5=B7=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LuckyFrameClient.iml | 92 +++++++++++++++++++ .../exwebdriver/ex/WebCaseExecution.java | 8 +- 2 files changed, 96 insertions(+), 4 deletions(-) create mode 100644 LuckyFrameClient.iml diff --git a/LuckyFrameClient.iml b/LuckyFrameClient.iml new file mode 100644 index 0000000..83df7f7 --- /dev/null +++ b/LuckyFrameClient.iml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/java/luckyclient/caserun/exwebdriver/ex/WebCaseExecution.java b/src/main/java/luckyclient/caserun/exwebdriver/ex/WebCaseExecution.java index 023128f..cbdb6d6 100644 --- a/src/main/java/luckyclient/caserun/exwebdriver/ex/WebCaseExecution.java +++ b/src/main/java/luckyclient/caserun/exwebdriver/ex/WebCaseExecution.java @@ -69,7 +69,7 @@ public class WebCaseExecution extends TestCaseExecution { if (1 == step.getSteptype()){ result = runWebStep(params, variable, wd, taskid, testcase.getSign(), step.getStepnum(), caselog); }else{ - result = runStep(params, variable, taskid, testcase.getSign(), step, caselog); + result = runStep(params, variable, taskid, testcase.getSign(), step, caselog); } String expectedResults = params.get("ExpectedResults"); @@ -222,8 +222,8 @@ public class WebCaseExecution extends TestCaseExecution { LogUtil.APP.error("调用方法过程出错,方法名:" + functionname + ",请重新检查脚本方法名称以及参数!"); result = "步骤执行失败:接口调用出错!"; } - if (result.contains("步骤执行失败:")) caselog.caseLogDetail(taskid, casenum, result, "error", String.valueOf(stepno), ""); - else caselog.caseLogDetail(taskid, casenum, result, "info", String.valueOf(stepno), ""); + if (result.contains("步骤执行失败:")) caselog.caseLogDetail(taskid, casenum, result, "error", String.valueOf(step.getStepnum()), ""); + else caselog.caseLogDetail(taskid, casenum, result, "info", String.valueOf(step.getStepnum()), ""); return result; } @@ -359,7 +359,7 @@ public class WebCaseExecution extends TestCaseExecution { java.text.DateFormat timeformat = new java.text.SimpleDateFormat("MMdd-hhmmss"); imagname = timeformat.format(new Date()); BaseWebDrive.webScreenShot(driver, imagname); - luckyclient.publicclass.LogUtil.APP.error("用例:" + testcase.getSign() + " 第" + step.getStepnum() + "步,执行结果:" + casenote); + LogUtil.APP.error("用例:" + testcase.getSign() + " 第" + step.getStepnum() + "步,执行结果:" + casenote); caselog.caseLogDetail(taskid, testcase.getSign(), "当前步骤在执行过程中解析|定位元素|操作对象失败!" + casenote, "error", String.valueOf(step.getStepnum()), imagname); }