1:修复批量执行用例时,多创建一个线程的BUG

2:更新用例实体
This commit is contained in:
seagull 2017-10-25 16:09:48 +08:00
parent 3b1f42ca9d
commit dff899878d
2 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ public class BatchTestCaseExecution {
}
}else{ //批量执行用例
String temp[]=batchcase.split("\\#",-1);
for(int i=0;i<temp.length;i++){
for(int i=0;i<temp.length-1;i++){
String testCaseExternalId = temp[i].substring(0, temp[i].indexOf("%"));
int version = Integer.parseInt(temp[i].substring(temp[i].indexOf("%")+1,temp[i].length()));
TestControl.Debugcount++; //多线程计数++用于检测线程是否全部执行完

View File

@ -10,7 +10,7 @@ public class ProjectCase implements java.io.Serializable{
private String name;
private int projectid;
private int moduleid;
private Integer[] moduleidarr;
private String[] moduleidarr;
private String modulename;
private String projectname;
private String remark;
@ -33,10 +33,10 @@ public class ProjectCase implements java.io.Serializable{
public void setModuleid(int moduleid) {
this.moduleid = moduleid;
}
public Integer[] getModuleidarr() {
public String[] getModuleidarr() {
return moduleidarr;
}
public void setModuleidarr(Integer[] moduleidarr) {
public void setModuleidarr(String[] moduleidarr) {
this.moduleidarr = moduleidarr;
}
public int getChecktype() {