13 years ago
Issue in execution of Maven soapui plugin
hi,
I am using the maven soap ui plugin 4.5.0 to execute some functional tests. But randomly i get errors related to property not been set while execution and the execution fails the soapui execution . I am executing this on a Hudson job. I had earlier tried withversion 4.0.1 and used to get the same random issue. I have created the SOapui test case using SOAPUI 4.0.1.
I have printed the log on the console
11:43:13,432 ERROR [log] Project not saved properly
11:43:13,432 ERROR [log] Project not saved properly IBOE2ESanityTest
11:43:13,432 ERROR [log] Project not saved properly IBOE2ESanityTestCAS
11:43:13,433 ERROR [log] Project not saved properly IBOE2ESanityTestICSVIS
11:43:13,433 ERROR [log] Project not saved properly IBOE2ESanityTestITP
11:43:13,433 ERROR [log] Project not saved properly IBOE2ESanityTestCMS
11:43:13,434 ERROR [log] Project not saved properly IBOE2ESanityTestCUS
11:43:13,434 ERROR [log] Project not saved properly IBOE2ESanityTestICSMCI
11:43:13,434 ERROR [log] Project not saved properly IBOE2ESanityTestIDM
11:43:13,435 ERROR [log] Project not saved properly IBOE2ESanityTestIFM
11:43:13,435 ERROR [log] Project not saved properly IBOE2ESanityTestOPC
ANd the code used by me to save the property on a project is as below. The save() method does not work properly soemtimes and i am not sure what is the issue since nothing is printed in stacktrace.
List<TestSuite> myTestSuites = myProject.getTestSuiteList();
for (int y = 0; y < myTestSuites.size(); y++) {
TestSuite myTestSuite = myTestSuites.get(y);
myTestSuite.setPropertyValue(key, value);
}
//myProject.save();
isSaved = false;
try{
isSaved = myProject.save();
}catch(IOException e){
log.error("ERROR while Saving project "+e.getMessage()+" "+e.getCause().getLocalizedMessage());
StackTraceElement stack[] = e.getStackTrace();
// stack[0] contains the method that created the exception.
// stack[stack.length-1] contains the oldest method call.
// Enumerate each stack element.
for (int i=0; i<stack.length; i++) {
String className = stack.getClassName();
String methodName = stack.getMethodName();
boolean isNativeMethod = stack.isNativeMethod();
int line = stack.getLineNumber();
log.error("className "+className+" methodName "+methodName+ " line "+line);
}
throw e;
}catch(Exception ex){
log.error("ERROR Exception while Saving project "+ex.getMessage()+" "+ex.getCause().getLocalizedMessage());
StackTraceElement stack[] = ex.getStackTrace();
// stack[0] contains the method that created the exception.
// stack[stack.length-1] contains the oldest method call.
// Enumerate each stack element.
for (int i=0; i<stack.length; i++) {
String className = stack.getClassName();
String methodName = stack.getMethodName();
boolean isNativeMethod = stack.isNativeMethod();
int line = stack.getLineNumber();
log.error("className "+className+" methodName "+methodName+ " line "+line);
}
}
if(!isSaved){
log.error("Project not saved properly "+myProject.getName());
}
regards,
Felix T
I am using the maven soap ui plugin 4.5.0 to execute some functional tests. But randomly i get errors related to property not been set while execution and the execution fails the soapui execution . I am executing this on a Hudson job. I had earlier tried withversion 4.0.1 and used to get the same random issue. I have created the SOapui test case using SOAPUI 4.0.1.
I have printed the log on the console
11:43:13,432 ERROR [log] Project not saved properly
11:43:13,432 ERROR [log] Project not saved properly IBOE2ESanityTest
11:43:13,432 ERROR [log] Project not saved properly IBOE2ESanityTestCAS
11:43:13,433 ERROR [log] Project not saved properly IBOE2ESanityTestICSVIS
11:43:13,433 ERROR [log] Project not saved properly IBOE2ESanityTestITP
11:43:13,433 ERROR [log] Project not saved properly IBOE2ESanityTestCMS
11:43:13,434 ERROR [log] Project not saved properly IBOE2ESanityTestCUS
11:43:13,434 ERROR [log] Project not saved properly IBOE2ESanityTestICSMCI
11:43:13,434 ERROR [log] Project not saved properly IBOE2ESanityTestIDM
11:43:13,435 ERROR [log] Project not saved properly IBOE2ESanityTestIFM
11:43:13,435 ERROR [log] Project not saved properly IBOE2ESanityTestOPC
ANd the code used by me to save the property on a project is as below. The save() method does not work properly soemtimes and i am not sure what is the issue since nothing is printed in stacktrace.
List<TestSuite> myTestSuites = myProject.getTestSuiteList();
for (int y = 0; y < myTestSuites.size(); y++) {
TestSuite myTestSuite = myTestSuites.get(y);
myTestSuite.setPropertyValue(key, value);
}
//myProject.save();
isSaved = false;
try{
isSaved = myProject.save();
}catch(IOException e){
log.error("ERROR while Saving project "+e.getMessage()+" "+e.getCause().getLocalizedMessage());
StackTraceElement stack[] = e.getStackTrace();
// stack[0] contains the method that created the exception.
// stack[stack.length-1] contains the oldest method call.
// Enumerate each stack element.
for (int i=0; i<stack.length; i++) {
String className = stack.getClassName();
String methodName = stack.getMethodName();
boolean isNativeMethod = stack.isNativeMethod();
int line = stack.getLineNumber();
log.error("className "+className+" methodName "+methodName+ " line "+line);
}
throw e;
}catch(Exception ex){
log.error("ERROR Exception while Saving project "+ex.getMessage()+" "+ex.getCause().getLocalizedMessage());
StackTraceElement stack[] = ex.getStackTrace();
// stack[0] contains the method that created the exception.
// stack[stack.length-1] contains the oldest method call.
// Enumerate each stack element.
for (int i=0; i<stack.length; i++) {
String className = stack.getClassName();
String methodName = stack.getMethodName();
boolean isNativeMethod = stack.isNativeMethod();
int line = stack.getLineNumber();
log.error("className "+className+" methodName "+methodName+ " line "+line);
}
}
if(!isSaved){
log.error("Project not saved properly "+myProject.getName());
}
regards,
Felix T
