SKoneru
12 years agoContributor
test fails via tool, works via maven soapui-pro plugin
Hi,
I had created some maven based java projects and set dependency on some jar files hosted in the local nexus repo that is maintained by my company.
These dependencies pull in lots of other jar files.
I noticed lots of jars in .m2/repository folder.
Now I did refer to a java class in groovy script test step.
The question is how to run the tests. There are two ways via command line and with tool.
1- when I invoke the SOAPUI test project via maven soapui-pro plugin then the script works fine. It could identify the java class. So no issues executing command line.
2- But the groovy script fails when I execute the tests in SOAPUI-PRO tool as I didn't include the jars in bin\ext. The main reason I didn't set the jars in bin\ext is I don't know what all jars are required. In #1 case Maven did retrieve all the jars.
Is there a way in SOAPUI-PRO to extend the classpath and fetch all the jars in maven repo(.m2/repository)? can we do that? Is this a good idea? What is the best approach?
I had created some maven based java projects and set dependency on some jar files hosted in the local nexus repo that is maintained by my company.
These dependencies pull in lots of other jar files.
I noticed lots of jars in .m2/repository folder.
Now I did refer to a java class in groovy script test step.
The question is how to run the tests. There are two ways via command line and with tool.
1- when I invoke the SOAPUI test project via maven soapui-pro plugin then the script works fine. It could identify the java class. So no issues executing command line.
2- But the groovy script fails when I execute the tests in SOAPUI-PRO tool as I didn't include the jars in bin\ext. The main reason I didn't set the jars in bin\ext is I don't know what all jars are required. In #1 case Maven did retrieve all the jars.
Is there a way in SOAPUI-PRO to extend the classpath and fetch all the jars in maven repo(.m2/repository)? can we do that? Is this a good idea? What is the best approach?