Forum Discussion
asseldonk01
12 years agoContributor
Hi, thanks for your suggestions. I also got hold to this code which seems to work by getting the property from another project.
import com.eviware.soapui.impl.wsdl.WsdlProject;
//get project
def project = null
def workspace = testRunner.testCase.testSuite.project.getWorkspace();
//if running Soapui
if(workspace != null){
project = workspace.getProjectByName("DataSinkTest 2")
}
//if running in Jenkins or hudson
else{
project = new WsdlProject("DataSinkTest-2-soapui-project.xml");
}
import com.eviware.soapui.impl.wsdl.WsdlProject;
//get project
def project = null
def workspace = testRunner.testCase.testSuite.project.getWorkspace();
//if running Soapui
if(workspace != null){
project = workspace.getProjectByName("DataSinkTest 2")
}
//if running in Jenkins or hudson
else{
project = new WsdlProject("DataSinkTest-2-soapui-project.xml");
}