Re: Memory Leaks with Groovy Webtests
Beat Koch <[email protected]>
| Newsgroups | gmane.comp.web.canoo.webtest |
|---|---|
| Message-ID | <[email protected]> |
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
>
>
--
View this message in context: http://old.nabble.com/Memory-Leaks-with-Groovy-Webtests-tp30922871p30936607.html
Sent from the WebTest mailing list archive at Nabble.com.