kamahade
15 years agoRegular Contributor
Groovy script outside SOAPUIPRO project
Team,
I want to run a groovy script outside soapui and in that script I want to create a project, add testsuite,add testcases.
For running a groovy within SOAPUI tool, I could run either as
script assertion
script step
both these should be within a testcase. Also, I could add a script function and place it in particular folder and refer it.
However, if I want to run a groovy outside SOAPUI project, how do I do it ?
Which jar files, I should place in path to do it from Groovy console??
if I run a single line program in groovy console, I get below error
D:\\groovy\cmd_line_soapui>groovy -cp "D:\Program Files\eviware\soapUI-Pro-3.5.1\bin\soapui-pro-3.5.1.jar" trial.gy
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
D:\\groovy\cmd_line_soapui\trial.gy: 1: unable to resolve class com.eviware.soapui.impl.wsdl.WsdlProject @ line 1, column 1.
import com.eviware.soapui.impl.wsdl.WsdlProject;
^
1 error
trial.gy has only one line import com.eviware.soapui.impl.wsdl.WsdlProject;
I tried modifying groovy-starter.conf file as well
I want to automatically
create a project,
add WSDL,
add testsuite for each operation
add several test steps to each of my testcase
I want to do all this through a groovy script. Groovy script may be run only inside a SOAPUI project ?
I want to run a groovy script outside soapui and in that script I want to create a project, add testsuite,add testcases.
For running a groovy within SOAPUI tool, I could run either as
script assertion
script step
both these should be within a testcase. Also, I could add a script function and place it in particular folder and refer it.
However, if I want to run a groovy outside SOAPUI project, how do I do it ?
Which jar files, I should place in path to do it from Groovy console??
if I run a single line program in groovy console, I get below error
D:\\groovy\cmd_line_soapui>groovy -cp "D:\Program Files\eviware\soapUI-Pro-3.5.1\bin\soapui-pro-3.5.1.jar" trial.gy
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
D:\\groovy\cmd_line_soapui\trial.gy: 1: unable to resolve class com.eviware.soapui.impl.wsdl.WsdlProject @ line 1, column 1.
import com.eviware.soapui.impl.wsdl.WsdlProject;
^
1 error
trial.gy has only one line import com.eviware.soapui.impl.wsdl.WsdlProject;
I tried modifying groovy-starter.conf file as well
I want to automatically
create a project,
add WSDL,
add testsuite for each operation
add several test steps to each of my testcase
I want to do all this through a groovy script. Groovy script may be run only inside a SOAPUI project ?