Forum Discussion
kamahade
15 years agoRegular Contributor
I did the following
I'm doing this inside the project D:\\soapui-release-B\\ReleB-auto-soapui-project.xml
However,I can not able to see new testsuite in the "Navigator" window left side.
Also, I got another doubt, How do I run any groovy script outside a project?
import com.eviware.soapui.impl.wsdl.WsdlProject;
WsdlProject project = new WsdlProject("D:\\soapui-release-B\\ReleB-auto-soapui-project.xml");
log.info project.path;
log.info project.getTestSuiteCount();
project.addNewTestSuite("kamahade");
log.info project.getTestSuiteCount();
project.save();
for ( TestSuite in project.getTestSuiteList() )
log.info TestSuite.getLabel();
I'm doing this inside the project D:\\soapui-release-B\\ReleB-auto-soapui-project.xml
However,I can not able to see new testsuite in the "Navigator" window left side.
Also, I got another doubt, How do I run any groovy script outside a project?