[webtest][JIRA] Created: (WT-572) Groovy WebtestCase causes memeory leak

"Markus Strickler (JIRA)" <[email protected]>
Newsgroups gmane.comp.web.canoo.webtest
Message-ID <21627776.1298988489167.JavaMail.nobody@dell1>
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
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.