Groovy WebtestCase causes memeory leak
--------------------------------------

         Key: WT-572
         URL: http://webtest-community.canoo.com/jira/browse/WT-572
     Project: WebTest
        Type: Bug

    Versions: 3.0, Future work    
    Reporter: Markus Strickler


Running a simple WebtestCase with many test methods causes an OutOfMemory 
Exception.

E.G.
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.
    void testDemo20() {
        webtest("My Test") {
            invoke 'http://www.spiegel.de/'
            verifyText text: 'Spiegel'
        }
    }
}

The problem seems to be that WebTestCase keeps a JS executor thread open for 
every test method, eventually causing the out of memory.
I've tried with several versions of Webtest (3.0, R_1811) and all seem to show 
this behavior.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to