Hi Ole I am not seeing SoapUIPro forum under forums list. I see eviware general and soapui. I do have valid soapuipro professional license. Could you please let me know how do i subscribe to pro forum.
Hi Ole I am trying to load SOAPUI project and execute testsuite and testcases in a groovy script.
My requirement is to run certain testsuites or testcases from the SOAPUI project and do some backup of log files on a remote endpoint server. I cant modify the existing SOAPUI projects and want to execute testcases as it is.
When I create wsdlproject Like below to extract testsuite names and testcase names and use it in SoapUIProTestCaseRunner api, I see that datasource test steps are not created while creating WsdlProject class.
Is there any other way to get list of testsuites and testcases from a SOAPUI project file?
WsdlProject project = new WsdlProject("C:/soapuiE2Eprojects/soapui-project.xml");
Log show::
18:44:27,430 INFO [WsdlProject] Load project from [file:/C:/soapuiE2Eprojects/soapui-project.xml] 18:44:27,664 ERROR [WsdlTestCase] Failed to create test step for [DataSource] 18:44:27,711 ERROR [WsdlTestCase] Failed to create test step for [DataSource Loop] 18:44:27,711 ERROR [WsdlTestCase] Failed to create test step for [DataSource] 18:44:27,711 ERROR [WsdlTestCase] Failed to create test step for [DataSource Loop] 18:44:27,727 ERROR [WsdlTestCase] Failed to create test step for [DataSource] 18:44:27,727 ERROR [WsdlTestCase] Failed to create test step for [DataSource Loop] 18:44:27,727 ERROR [WsdlTestCase] Failed to create test step for [DataSource] 18:44:27,727 ERROR [WsdlTestCase] Failed to create test step for [DataSource Loop] 18:44:27,727 ERROR [WsdlTestCase] Failed to create test step for [DataSource] 18:44:27,789 ERROR [WsdlTestCase] Failed to create test step for [DataSource] 18:44:27,789 ERROR [WsdlTestCase] Failed to create test step for [DataSource Loop] 18:44:27,789 ERROR [WsdlTestCase] Failed to create test step for [DataSource] 18:44:27,789 ERROR [WsdlTestCase] Failed to create test step for [DataSource Loop] 18:44:27,789 ERROR [WsdlTestCase] Failed to create test step for [DataSource] 18:44:27,789 ERROR [WsdlTestCase] Failed to create test step for [DataSource Loop] 18:44:27,789 ERROR [WsdlTestCase] Failed to create test step for [2.DataSource] 18:44:27,789 ERROR [WsdlTestCase] Failed to create test step for [2.DataSource Loop]
I am trying to load a SOAP Project and execute tests from a Groovy Script.
I am using WsdlTestCaseRunner and it does not seem to recognize datasources and loops. I know only SoapUiProTestCaseRunner recognizes. I am not sure how to get the reference of it. 1. Is there a documentation on how to use it? 2. Also I need to know the testcase status if its passed or failed. Could you please let me know if there is a way to get the status too?
Here is the code snippet that I have written to execute tests.
WsdlProject project = new WsdlProject(soapTestProj);
Yep the project file is very large around 80 test cases and the size of file is 30 MB. Well its end to end integration test project to verify the system. I can split it into multiple projects and consolidate the output reports but its pain and needs more effort.
I will check if Eclipse has any fix to take more than 1024M else I will split the project.
I am trying to create wsdl project in groovy. I am using eclipse ide and I get out of memory: java heap space. I changed my VM args in eclispe.ini file to 512MB. Is there a way to set heap size for loading wsdl project?
WsdlProject project = new WsdlProject("C:/End2End-soapui-project.xml");
Exception is
Configuring log4j from [jar:file:/C:/P4_WS/mft/dev/3.6L2/java-common/tools/soapuipro/lib/soapui-2.0.2.jar!/soapui-log4j.xml] 17:06:34,976 WARN [DefaultSoapUICore] Missing folder [C:\P4_WS\GroovyJava\ext] for external libraries 17:06:34,976 INFO [DefaultSoapUICore] Creating new settings at [C:\P4_WS\GroovyJava\soapui-settings.xml] Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at org.apache.xmlbeans.impl.store.CharUtil.allocate(CharUtil.java:397) at org.apache.xmlbeans.impl.store.CharUtil.saveChars(CharUtil.java:506) at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.text(Cur.java:2911) at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.stripText(Cur.java:3125) at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.text(Cur.java:3138) at org.apache.xmlbeans.impl.store.Locale$SaxHandler.characters(Locale.java:3283) at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportCdata(Piccolo.java:992) at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.parseXMLNS(PiccoloLexer.java:1290) at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.parseXML(PiccoloLexer.java:1261) at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yylex(PiccoloLexer.java:4808) at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.yylex(Piccolo.java:1290) at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.yyparse(Piccolo.java:1400) at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:714) at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3444) at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1275) at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1262) at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345) at com.eviware.soapui.config.SoapuiProjectDocumentConfig$Factory.parse(Unknown Source) at com.eviware.soapui.impl.wsdl.WsdlProject.loadProject(WsdlProject.java:221) at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:159) at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:126) at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:121) at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:111) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.codehaus.groovy.runtime.MetaClassHelper.doConstructorInvoke(MetaClassHelper.java:526) at groovy.lang.MetaClassImpl.doConstructorInvoke(MetaClassImpl.java:2331) at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1227) at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1157) at org.codehaus.groovy.runtime.InvokerHelper.invokeConstructorOf(InvokerHelper.java:801)
What is the context variable in this line def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
I have a requirement to write a groovy script outside of SOAPUI tool which loads SOAPUI projects from a specific directory and executes tests in each of those projects. Is there a sample that I can refer to?
Execution of Testcases in UI and command line are similar i.e., After the response of TestCase subsequent test cases are executed.
I guess commandline execution is little faster than UI. In my application there is asynchronous layer and I introduced a delay step to accommodate it and now everything works.
Hi, I have some test cases which are to be run in commandline. When I run in the tool UI they work fine but when I execute in commandline I see errors related to my application.
For ex. I have below test case order.
TestCase 1 :adds some things into db TestCase 2 : gets data from db TestCase 3: deletes data from db
Could you clarify me if I execute above tests in commandline will the SoapProTestCaseRunner wait for TestCase 1 response before executing TestCase 2?
When I execute in UI it waits for the TestCase 1 response before firing 2.
Hi Ole, I have a SOAP Project consisting of around 32 interfaces/Bindings. Each of these interface/bindings are defined in seperate WSDL. These bindings are spread accross multiple WSDLS and all are imported to one root WSDL. I create my project based on this root WSDL which imports all other WSDL's.
Now I have multiple test cases in the project. Steps in each of these test cases might refer to one or more bindings/interface.
When I import project and open one test case it downloads all WSDL's and XSD's fair enough. If I open one more testcase in the same project then again I see its downloading all the WSDLS and XSDs again. This happens in both UI and in commandline.
Hi Ole, How do I reduce time to load WSDL's and XSD's in SOAPUI pro 2.0.2. What I observered is, SOAPUI loads WSDLs' and XSD's for every soap testcase. If it loads the documents for 1 testcase and it should not load same set again for different test case even though the WSDL's and XSD's are same.
Its not caching the WSDL's and XSD's for a project thats why its taking more time to load all the Testcases in a project.
Can this be fixed in our WSDL's or in SOAPUI tool by any settings?
I am executing tests using com.eviware.soapui.SoapUIProTestCaseRunner in commandline. Some of the tests are failing because of HTTP Socket time out. Could you please let me know how to set socket param while executing tests in commandline