Re: Memory Leaks with Groovy Webtests

Markus Strickler <[email protected]>
Newsgroups gmane.comp.web.canoo.webtest
Message-ID <[email protected]>
Hi-

thanks for your reply. Did you already file a bug report on JIRA for this?
I would have done so, but the JIRA at
http://webtest-community.canoo.com/jira/ seems broken atm.

Regards,

-markus

On Wed, 16 Feb 2011 00:29:28 -0800 (PST), Beat Koch <[email protected]>
wrote:
> Hi
> 
> I and at least one other person got the same memory leak problems; see
> http://lists.canoo.com/pipermail/webtest/2010q4/013544.html and
> http://lists.canoo.com/pipermail/webtest/2011q1/013662.html.
> 
> As far as I can tell, the problem lies in the HTMLUnit library that is
used
> by Webtest but I don't know how to fix it.
> 
> Regards, Beat
> 
> 
> Markus Strickler-2 wrote:
>> 
>> 
>> Hi-
>> 
>> I'm using a pure groovy setup as described here:
>>
http://mguillem.wordpress.com/2009/04/30/webtest-with-groovy-maven-and-eclipse/
>> 
>> This worked very well for two or three tests, but if I run several
tests
>> I
>> eventually get an OutOfMemeory Exception.
>> 
>> here is a sample test:
>> 
>> import com.canoo.webtest.WebtestCase;
>> 
>> class MyTest extends WebtestCase {
>>     void testDemo1() {
>>         webtest("My Test") {
>>             invoke 'http://www.spiegel.de/'
>>             verifyText text: 'Spiegel'
>>         }
>>     }
>>     void testDemo2() {
>>         webtest("My Test") {
>>             invoke 'http://www.spiegel.de/'
>>             verifyText text: 'Spiegel'
>>         }
>>     }
>>    // etc. after around 18 testDemoX() tests OutOfMemory is thrown.
>> }
>> 
>> Is anybody else experiencing similar errors? Or is the it just the test
>> that is wrong? Or is the pure Groovy testing approach no longer
>> supported?
>> Documentation on it is really sparse, at is seems...
>> 
>> Thanks for any help,
>> 
>> -markus
>> 
>>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.