header
header
Main Menu
Home
Eviware Store
Downloads
Products
News
Forum
Eviware Blog
Search
FAQs
Customer Area
Support
Documentation
Tutorials
CookBook
Downloads
Forum
Login Form
Welcome, Guest. Please login or register.
November 23, 2008, 02:57:13 pm
Username: Password:
Login with username, password and session length

Forgot your password?
 
Latest posts of: shiva kakarla
Welcome, Guest. Please login or register.
November 23, 2008, 02:57:13 pm
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

  Show Posts
Pages: [1] 2
1  soapUI / soapUI / Re: Unable to create Datasource step in WsdlTestCase class on: April 03, 2008, 04:14:57 pm
Hi Ole,

I did see professional forum now. I already created the topic there.

Thanks
Shiva
2  soapUI / soapUI / Re: Unable to create Datasource step in WsdlTestCase class on: April 03, 2008, 03:25:17 pm
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.

Thanks
Shiva Kakarla
3  soapUI / soapUI / Unable to create Datasource step in WsdlTestCase class on: April 03, 2008, 03:03:59 am
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]

wsdlprojct created



4  soapUI / soapUI / Executing SOAP tests using Groovy script on: March 28, 2008, 12:29:19 am
Hi Ole,

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);
    
println("wsdlprojct created")

Map testSuiteMap = project.getTestSuites();
Iterator x = testSuiteMap.keySet().iterator();
while( x.hasNext())
{
   
   String testsuiteName = (String) x.next()
   println("testsuite is::"+testsuiteName)
      
         
   WsdlTestSuite wsdlTestSuite= project.getTestSuiteByName(testsuiteName);
      
   Map testCaseMap=wsdlTestSuite.getTestCases();
   Iterator tcase = testCaseMap.keySet().iterator();
         
   while(tcase.hasNext())
   {
       String testCase=(String) tcase.next()
         
       println("Executing:"+testCase);
       WsdlTestCaseRunner testcaseRunner=project.getTestSuiteByName(testsuiteName).getTestCaseByName(testCase).run(new StringToObjectMap() ,false)
            println("Finished Executing:"+testCase);
    List stepResult=testcaseRunner.getResults()
    Iterator j=stepResult.iterator();
    while (j.hasNext())
   {
      TestStepResult result=(TestStepResult)j.next();
      println("result:"+result.getStatus())
   
   }
         
     }

}
5  soapUI / soapUI / Re: log.info() and println statements logging on: March 26, 2008, 06:22:07 pm
Hi Ole,

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.

Thanks
Shiva



6  soapUI / soapUI / Re: log.info() and println statements logging on: March 26, 2008, 02:44:30 am
Hi Ole
For SOAPUI I set Xms1536m -Xmx1536m.  Guess this size is huge. Eclipse support max 1024. If I give more than that eclipse does not start.

Thanks
Shiva
7  soapUI / soapUI / Re: log.info() and println statements logging on: March 26, 2008, 01:39:10 am
Hi Ole

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?


Here is th code snippet that I have in my groovy.


import com.eviware.soapui.*;
import com.eviware.soapui.support.*;
import com.eviware.soapui.model.propertyexpansion.*;
import com.eviware.soapui.impl.wsdl.WsdlProject;
import com.eviware.soapui.impl.wsdl.*;
import com.eviware.soapui.model.iface.*;


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)

8  soapUI / soapUI / Re: log.info() and println statements logging on: March 21, 2008, 02:07:18 am
Hi Ole

Wanted to get output as in below format controlling in a loop. I can generate this in other IDE's but was trying in SOAPUI groovy.

<test>
   <case> 1<case>
</test>
<test>
   <case> 2<case>
</test>
<test>
   <case> 3<case>
</test>
.....


Different question:

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?

Thanks
Shiva





9  soapUI / soapUI / log.info() and println statements logging on: March 20, 2008, 11:51:17 pm
Hi,

I want to capture the output from groovy context and use it in my test case


Below script writes onto dos console and I cant copy everything due to buffer limitation.
 
for(i in 0.. 10000)
{
println '<ns2:test>'
println i*330
println '</ns2:test>'
}

Could you let me know if there is a way in SOAPUI groovy to capture the output.

Also log.info('<ns2:test>') appends time stamp on every line. Is there a way to not to print timestamp.

Thanks
Shiva
10  soapUI / soapUI / Re: Execution of Testcases in UI and in commandline result varies on: March 18, 2008, 12:04:26 am
Hi Ole,

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.

Thanks
Shiva
11  soapUI / soapUI / Execution of Testcases in UI and in commandline result varies on: March 17, 2008, 10:29:17 pm
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.

Thanks

Shiva

 

12  soapUI / soapUI / Re: SOAPUI pro 2.0.2 fails to load a wsdl with multiple wsdl imports in it. on: March 06, 2008, 12:23:42 am
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.

Thanks
Shiva


13  soapUI / soapUI / Re: SOAPUI pro 2.0.2 fails to load a wsdl with multiple wsdl imports in it. on: March 05, 2008, 10:04:14 pm
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?

Thanks
Shiva
14  soapUI / soapUI / Re: How to specify HTTP socket Time out param in commandline on: March 05, 2008, 09:39:39 pm
Thank you Ole.
15  soapUI / soapUI / How to specify HTTP socket Time out param in commandline on: February 28, 2008, 07:22:23 pm
Hi

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

Thanks
Pages: [1] 2


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
header header
header
header