调整用例执行过程状态的变化
This commit is contained in:
parent
767cd9b3cf
commit
7dbb9bf405
|
@ -39,6 +39,7 @@ public class AndroidCaseExecution extends TestCaseExecution{
|
|||
|
||||
public static void caseExcution(ProjectCase testcase, List<ProjectCaseSteps> steps,String taskid, AndroidDriver<AndroidElement> appium,LogOperation caselog,List<ProjectCaseParams> pcplist)
|
||||
throws InterruptedException, IOException {
|
||||
caselog.updateTaskCaseExecuteStatus(taskid, testcase.getCaseId(), 3);
|
||||
// 把公共参数加入到MAP中
|
||||
for (ProjectCaseParams pcp : pcplist) {
|
||||
variable.put(pcp.getParamsName(), pcp.getParamsValue());
|
||||
|
|
|
@ -39,6 +39,7 @@ public class IosCaseExecution extends TestCaseExecution{
|
|||
|
||||
public static void caseExcution(ProjectCase testcase, List<ProjectCaseSteps> steps,String taskid, IOSDriver<IOSElement> appium,LogOperation caselog,List<ProjectCaseParams> pcplist)
|
||||
throws InterruptedException, IOException {
|
||||
caselog.updateTaskCaseExecuteStatus(taskid, testcase.getCaseId(), 3);
|
||||
// 把公共参数加入到MAP中
|
||||
for (ProjectCaseParams pcp : pcplist) {
|
||||
variable.put(pcp.getParamsName(), pcp.getParamsValue());
|
||||
|
|
|
@ -136,6 +136,7 @@ public class TestControl {
|
|||
casepriority = projectcase.getPriority();
|
||||
THREAD_COUNT++; // 多线程计数++,用于检测线程是否全部执行完
|
||||
threadExecute.execute(new ThreadForExecuteCase(projectcase, steps, taskid, pcplist, caselog));
|
||||
luckyclient.publicclass.LogUtil.APP.info("threadExecute测试:" + projectcase.getCaseSign());
|
||||
}
|
||||
// 多线程计数,用于检测线程是否全部执行完
|
||||
int i = 0;
|
||||
|
|
|
@ -72,7 +72,7 @@ public class ThreadForExecuteCase extends Thread {
|
|||
int k = 0;
|
||||
// 进入循环,解析单个用例所有步骤
|
||||
// 插入开始执行的用例
|
||||
caselog.insertTaskCaseExecute(taskid, projectId, caseId, caseSign, testcase.getCaseName(), 4);
|
||||
caselog.insertTaskCaseExecute(taskid, projectId, caseId, caseSign, testcase.getCaseName(), 3);
|
||||
for (int i = 0; i < steps.size(); i++) {
|
||||
// 解析单个步骤中的脚本
|
||||
Map<String, String> casescript = InterfaceAnalyticCase.analyticCaseStep(testcase, steps.get(i), taskid, caselog);
|
||||
|
|
|
@ -40,7 +40,8 @@ public class WebCaseExecution extends TestCaseExecution {
|
|||
private static String imagname = "";
|
||||
|
||||
public static void caseExcution(ProjectCase testcase, List<ProjectCaseSteps> steps, String taskid, WebDriver wd, LogOperation caselog, List<ProjectCaseParams> pcplist) throws InterruptedException {
|
||||
// 把公共参数加入到MAP中
|
||||
caselog.updateTaskCaseExecuteStatus(taskid, testcase.getCaseId(), 3);
|
||||
// 把公共参数加入到MAP中
|
||||
for (ProjectCaseParams pcp : pcplist) {
|
||||
variable.put(pcp.getParamsName(), pcp.getParamsValue());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue