1:修复引用变量的时候BUG

2:修复web测试中项目类型错误
This commit is contained in:
seagull 2017-08-02 19:03:49 +08:00
parent a5825c22f4
commit ac10b7f1ab
7 changed files with 19 additions and 19 deletions

View File

@ -104,7 +104,7 @@ public class TestCaseDebug{
String key = null;
while(keys.hasNext()){
key = (String)keys.next();
if(uservariable.equals(key)){
if(uservariable.indexOf(key)>-1){
keyexistidentity = 1;
uservariable = key;
break;
@ -115,7 +115,7 @@ public class TestCaseDebug{
while(keys.hasNext()){
keyexistidentity = 0;
key = (String)keys.next();
if(uservariable1.equals(key)){
if(uservariable.indexOf(key)>-1){
keyexistidentity = 1;
uservariable1 = key;
break;
@ -127,7 +127,7 @@ public class TestCaseDebug{
while(keys.hasNext()){
keyexistidentity = 0;
key = (String)keys.next();
if(uservariable2.equals(key)){
if(uservariable.indexOf(key)>-1){
keyexistidentity = 1;
uservariable2 = key;
break;

View File

@ -100,7 +100,7 @@ public class TestCaseExecution {
String key = null;
while (keys.hasNext()) {
key = (String) keys.next();
if (uservariable.equals(key)) {
if (uservariable.indexOf(key)>-1) {
keyexistidentity = 1;
uservariable = key;
break;
@ -111,7 +111,7 @@ public class TestCaseExecution {
while (keys.hasNext()) {
keyexistidentity = 0;
key = (String) keys.next();
if (uservariable1.equals(key)) {
if (uservariable.indexOf(key)>-1) {
keyexistidentity = 1;
uservariable1 = key;
break;
@ -123,7 +123,7 @@ public class TestCaseExecution {
while (keys.hasNext()) {
keyexistidentity = 0;
key = (String) keys.next();
if (uservariable2.equals(key)) {
if (uservariable.indexOf(key)>-1) {
keyexistidentity = 1;
uservariable2 = key;
break;

View File

@ -114,7 +114,7 @@ public class ThreadForExecuteCase extends Thread{
String key = null;
while(keys.hasNext()){
key = (String)keys.next();
if(uservariable.equals(key)){
if(uservariable.indexOf(key)>-1){ //去判断是否字符串里面包含变量键值
keyexistidentity = 1;
uservariable = key;
break;
@ -125,7 +125,7 @@ public class ThreadForExecuteCase extends Thread{
while(keys.hasNext()){
keyexistidentity = 0;
key = (String)keys.next();
if(uservariable1.equals(key)){
if(uservariable1.indexOf(key)>-1){
keyexistidentity = 1;
uservariable1 = key;
break;
@ -137,7 +137,7 @@ public class ThreadForExecuteCase extends Thread{
while(keys.hasNext()){
keyexistidentity = 0;
key = (String)keys.next();
if(uservariable2.equals(key)){
if(uservariable2.indexOf(key)>-1){
keyexistidentity = 1;
uservariable2 = key;
break;

View File

@ -99,7 +99,7 @@ public class TestLinkCaseDebug{
String key = null;
while(keys.hasNext()){
key = (String)keys.next();
if(uservariable.equals(key)){
if(uservariable.indexOf(key)>-1){
keyexistidentity = 1;
uservariable = key;
break;
@ -110,7 +110,7 @@ public class TestLinkCaseDebug{
while(keys.hasNext()){
keyexistidentity = 0;
key = (String)keys.next();
if(uservariable1.equals(key)){
if(uservariable.indexOf(key)>-1){
keyexistidentity = 1;
uservariable1 = key;
break;
@ -122,7 +122,7 @@ public class TestLinkCaseDebug{
while(keys.hasNext()){
keyexistidentity = 0;
key = (String)keys.next();
if(uservariable2.equals(key)){
if(uservariable.indexOf(key)>-1){
keyexistidentity = 1;
uservariable2 = key;
break;

View File

@ -94,7 +94,7 @@ public class TestLinkCaseExecution{
String key = null;
while(keys.hasNext()){
key = (String)keys.next();
if(uservariable.equals(key)){
if(uservariable.indexOf(key)>-1){
keyexistidentity = 1;
uservariable = key;
break;
@ -105,7 +105,7 @@ public class TestLinkCaseExecution{
while(keys.hasNext()){
keyexistidentity = 0;
key = (String)keys.next();
if(uservariable1.equals(key)){
if(uservariable.indexOf(key)>-1){
keyexistidentity = 1;
uservariable1 = key;
break;
@ -117,7 +117,7 @@ public class TestLinkCaseExecution{
while(keys.hasNext()){
keyexistidentity = 0;
key = (String)keys.next();
if(uservariable2.equals(key)){
if(uservariable.indexOf(key)>-1){
keyexistidentity = 1;
uservariable2 = key;
break;

View File

@ -112,7 +112,7 @@ public class ThreadForTestLinkExecuteCase extends Thread{
String key = null;
while(keys.hasNext()){
key = (String)keys.next();
if(uservariable.equals(key)){
if(uservariable.indexOf(key)>-1){
keyexistidentity = 1;
uservariable = key;
break;
@ -123,7 +123,7 @@ public class ThreadForTestLinkExecuteCase extends Thread{
while(keys.hasNext()){
keyexistidentity = 0;
key = (String)keys.next();
if(uservariable1.equals(key)){
if(uservariable.indexOf(key)>-1){
keyexistidentity = 1;
uservariable1 = key;
break;
@ -135,7 +135,7 @@ public class ThreadForTestLinkExecuteCase extends Thread{
while(keys.hasNext()){
keyexistidentity = 0;
key = (String)keys.next();
if(uservariable2.equals(key)){
if(uservariable.indexOf(key)>-1){
keyexistidentity = 1;
uservariable2 = key;
break;

View File

@ -109,7 +109,7 @@ public class WebTestControl{
luckyclient.publicclass.LogUtil.APP.info("当前用例:【" + testcase.getFullExternalId() + "】执行完成......进入下一条");
}
tastcount = LogOperation.UpdateTastdetail(taskid, testCases.length);
}else if(task.getTestJob().getProjecttype()==1){
}else if(task.getTestJob().getProjecttype()==0){
List<ProjectCase> cases=GetServerAPI.getCasesbyplanid(task.getTestJob().getPlanid());
luckyclient.publicclass.LogUtil.APP.info("当前计划中读取到用例共 " + cases.size() + "");
LogOperation.UpdateTastStatus(taskid,cases.size());