New perl automated script.
git-svn-id: svn://10.0.0.236/trunk@51147 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -108,7 +108,7 @@ public class TestLoader
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
System.out.println("could not read Line from file fname...");
|
||||
System.out.println("could not read Line from file " + fname);
|
||||
line=null;
|
||||
}
|
||||
|
||||
@@ -119,6 +119,13 @@ public class TestLoader
|
||||
return null;
|
||||
}
|
||||
|
||||
// check if test have to be run in single Thread mode(S) or
|
||||
// multi Thread mode (M)
|
||||
//
|
||||
String threadMode = propTable.getProperty("BW_THREADMODE");
|
||||
if (threadMode == null)
|
||||
threadMode = "S";
|
||||
|
||||
for (int i=0; i<fileVect.size(); i++)
|
||||
{
|
||||
String s = (String)fileVect.elementAt(i);
|
||||
@@ -140,17 +147,33 @@ public class TestLoader
|
||||
continue;
|
||||
}
|
||||
|
||||
if (((BWBaseTest)classObj).execute(targetObj)) {
|
||||
txtPrint(s, "PASSED");
|
||||
} else {
|
||||
txtPrint(s, "FAILED");
|
||||
}
|
||||
// If single thread execution
|
||||
if (threadMode.compareTo("S") == 0)
|
||||
{
|
||||
if (((BWBaseTest)classObj).execute(targetObj)) {
|
||||
txtPrint(s, "PASSED");
|
||||
} else {
|
||||
txtPrint(s, "FAILED");
|
||||
}
|
||||
|
||||
// if any return type expected, then it is returned.
|
||||
// This is just a provision kept for latter use
|
||||
//
|
||||
//if (returnType == 1)
|
||||
//{
|
||||
// return (((BWBaseTest)classObj).returnObject());
|
||||
//}
|
||||
} else {
|
||||
BWTestThread t = new BWTestThread(s);
|
||||
if (t != null)
|
||||
{
|
||||
t.setTestObject(classObj, targetObj);
|
||||
t.start();
|
||||
}
|
||||
}
|
||||
|
||||
if (returnType == 1)
|
||||
{
|
||||
return (((BWBaseTest)classObj).returnObject());
|
||||
}
|
||||
}
|
||||
txtPrint("Parent Thread Done", "PASSED");
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user