ContributionsMost RecentMost LikesSolutionsRe: How to create Delay Test Step and set time using Groovy Script Thanks a Lot How to create Delay Test Step and set time using Groovy Script Hi, Would you please let me know how to add delay test step and set the the time using Groovy. Anyone help Please Thanks Sakthi Not able to generate Report in Test Runner on SOAP UI Hi All, I am trying to create report in SOAP UI while I do the Test Runner. I am getting error and report is not generating in the particular folder. Looks access denied. Please find attached screenshot for error and also included in the log4J file. Could some one help me on this. Configuring log4j from [C:\Program Files\SmartBear\SoapUI-5.3.0\bin\soapui-log4j.xml] log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: global-groovy.log (Access is denied) Thanks Sakthi Re: Test Steps Creation in Eclipse and invoke SOAP UI Any help is appreciated!!!!!!!!!!!!! Test Steps Creation in Eclipse and invoke SOAP UI Hi , I am new to Groovy and SOAP UI. I need to create Project->TestSuite->TestCases->Test Steps in Eclipse using Groovy and invoke from Eclipse to SOAP UI. Please let me know approach and how to do this? Below is my running code in SOAP UI and I would like to run same in Eclipse. Would you please let know how to proceed? import com.eviware.soapui.impl.wsdl.* import com.eviware.soapui.impl.WsdlInterfaceFactory import com.eviware.soapui.impl.wsdl.teststeps.registry.WsdlTestRequestStepFactory import com.eviware.soapui.impl.wsdl.teststeps.registry.GroovyScriptStepFactory import com.eviware.soapui.impl.wsdl.teststeps.registry.WsdlTestRequestStepFactory import com.eviware.soapui.impl.wsdl.teststeps.registry.GroovyScriptStepFactory import com.eviware.soapui.impl.wsdl.* import com.eviware.soapui.impl.WsdlInterfaceFactory String projectName = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" def workspace = testRunner.testCase.testSuite.project.workspace def project = workspace.createProject('jjjjjjjjjjjjjjjjjjjjjj',new File("C:\\Temp\\" + projectName + ".xml")); WsdlInterfaceFactory.importWsdl(project, 'https://svn.apache.org/repos/asf/airavata/sandbox/xbaya-web/test/Calculator.wsdl', true) def suite = project.addNewTestSuite("CustomerSuite") tc = suite.addNewTestCase("CustomerTestCases") testStep = tc.addTestStep( GroovyScriptStepFactory.GROOVY_TYPE, "getTestCasesToExecute" ) testStep.properties["script"].value = 'log.info "Sakthi"' ts = tc.addTestStep( 'properties', 'Excel-Values' ) ts.setPropertyValue( 'PropertyName', 'value' ) def operation = project.getInterfaceAt(0).getOperationList()[0] def factory = new WsdlTestRequestStepFactory() def arr = ["PEO","USC"] for(def x : arr){ log.info "For each Loop" + operation; config = factory.createConfig(operation,x) //log.info "Config:::" + config; testStep = tc.addTestStep(config) testStep.properties['Request'].value = '<request>someData</request>' } context.testCase.testSuite.project.save() Thanks Sakthi Re: SOAP Request not able create using Groovy Awesome!!!! Thanks a Lot It is working and Many thanks again SOAP Request not able create using Groovy Hi All, I am getting error while I am creating SOAP Request using below code. Could someone assist on this. 1. Create a Project->Test Suite->Test Case->Properties Files-> I am able to create till this level but I am getting error when I create SOAP request. import com.eviware.soapui.impl.wsdl.* import com.eviware.soapui.impl.WsdlInterfaceFactory import com.eviware.soapui.impl.wsdl.teststeps.registry.WsdlTestRequestStepFactory import com.eviware.soapui.impl.wsdl.teststeps.registry.GroovyScriptStepFactory import com.eviware.soapui.impl.wsdl.teststeps.registry.WsdlTestRequestStepFactory import com.eviware.soapui.impl.wsdl.teststeps.registry.GroovyScriptStepFactory import com.eviware.soapui.impl.wsdl.* import com.eviware.soapui.impl.WsdlInterfaceFactory String projectName = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" def workspace = testRunner.testCase.testSuite.project.workspace def project = workspace.createProject('Project33333',new File("C:\\Temp\\" + projectName + ".xml")); WsdlInterfaceFactory.importWsdl(project, 'http://www.webservicex.com/globalweather.asmx?WSDL', true) def suite = project.addNewTestSuite("CustomerSuite") tc = suite.addNewTestCase("CustomerTestCases") ts = tc.addTestStep( 'properties', 'Excel-Values' ) ts.setPropertyValue( 'PropertyName', 'value' ) def operation = testRunner.testCase.testSuite.project.getInterfaceAt(0).getOperationList()[0] def factory = new WsdlTestRequestStepFactory() def arr = ["PEO","USC","USCS","ASC"] for(def x : arr){ log.info "For each Loop" + operation; config = factory.createConfig(operation,x) //log.info "Config:::" + config; testStep = ts.addTestStep(config) testStep.properties['Request'].value = '<request>someData</request>' } context.testCase.testSuite.project.save() SolvedRe: Groovy Script to Create Multiple SOAP Request Could someone assist on this. Re: Create SOAP UI Project using Groovy Script Thank you for your reply. I am using below script to create a Project and adding WSDL.But Project got created and I am getting some error. Error: Failed to Save Project [ShoppingServiceProject]:java.io.IOException: Access is denied. Could you please let me know why i am getting error. I have attached the error message for your reference. I need to add suite and test cases with this request. Please let me know how to add import com.eviware.soapui.impl.wsdl.* import com.eviware.soapui.impl.WsdlInterfaceFactory String projectName = "ShoppingServiceProject" def currentProject = testRunner.testCase.testSuite.project WsdlProject project = currentProject.getWorkspace().createProject(projectName, new File(projectName + ".xml")); def iface=WsdlInterfaceFactory.importWsdl(project,"http://www.webservicex.com/globalweather.asmx?WSDL",true)[0] context.testCase.testSuite.project.save() SOAP Request issue in Groovy Script Hi, I really need a help from someone. I am trying to create single or multiple SOAP request inside test steps. But I am getting error : I have attached error message with this request. Would you please let me know what will be issue? Thanks in advance. import com.eviware.soapui.impl.wsdl.* import com.eviware.soapui.impl.WsdlInterfaceFactory import com.eviware.soapui.impl.wsdl.teststeps.registry.WsdlTestRequestStepFactory import com.eviware.soapui.impl.wsdl.teststeps.registry.GroovyScriptStepFactory import com.eviware.soapui.impl.wsdl.teststeps.registry.WsdlTestRequestStepFactory import com.eviware.soapui.impl.wsdl.teststeps.registry.GroovyScriptStepFactory String projectName = "Customer111" def currentProject = testRunner.testCase.testSuite.project WsdlProject project = currentProject.getWorkspace().createProject(projectName, new File("C:\\Temp\\" + projectName + ".xml")); def iface=WsdlInterfaceFactory.importWsdl(project,"http://www.webservicex.com/globalweather.asmx?WSDL",true)[0] def suite = project.addNewTestSuite("CustomerSuite") tc = suite.addNewTestCase("CustomerTestCases") def operation = testRunner.testCase.testSuite.project.getInterfaceAt(0).getOperationList()[0] def factory = new WsdlTestRequestStepFactory() def arr = ["PEO","COA","USCS","ASP"] for(def x : arr){ log.info "For each Loop" + x.toString(); config = factory.createConfig(operation,x) log.info "Config:::" + config; testStep = tc.addTestStep(config) } context.testCase.testSuite.project.save() Thanks Sakthi