I want to know If I can create a new project using Groovy script. What is have tried so far is :
Created a sample project manually in Soap UI, added a Test suite, test case and a groovy test step with the following script
import com.eviware.soapui.impl.wsdl.* import com.eviware.soapui.impl.WsdlInterfaceFactory WsdlProject project = new WsdlProject() project.setName("Test") WsdlInterface iface = WsdlInterfaceFactory.importWsdl(project, "path pointing to some wsdl", true )[0] WsdlOperation operation = iface.getOperationByName( "MyOperation" ) WsdlRequest request = operation.addNewRequest( "My request" ) request.setRequestContent( operation.createRequest( true ) )Run the step
But I am not able to create a project out of it. Can someone help me with what I am missing or going wrong?