data Driven webtest with groovy and out of memory permgenspace

"Christ, Denis" <Denis.Christ-UPY0+Y04XXlSq5J3+rkI/[email protected]>
Newsgroups gmane.comp.web.canoo.webtest
Message-ID <[email protected]>
Hello together,

I really hope this list is still active.

We have a grails-project in our company and I try to establish webtest for autmated tests.
I have downloaded and installed the grails webtest plugin (webtest-coverage isnt working).
After that I created a webtest.groovy file and wrote some tests.

Unfortunally there are two issues:


1)      How can i use the data Driven step in my groovy code?? I searched a lot of forums and this list, but nothing is working correct. My Code:

void testSomething() {
                 getAnt().dataDriven(tableContainer: "login.xls"){
                                  webtest("Teste Loginseite mit"){
                                                              login(${Username},${Password},${Succeed})
                                  }
                  }

The test itself is successful, but only the dataDriven-Step itself (it finds the xls-file). The webtest isnt executed. As XML-Test everything is working fine.


2)      Another Problem is the following simple Test (login just does the login-step):

webtest("Prüfe Constraints Objekt hinzufuegen")   {
                                  login("username", "password")
                                  clickLink "Userverwaltung"
                                  clickLink "Lagerfinanzierung"
                               [... other teststeps...]
                  }
    }

If I run this test I get the following error:

Tests Completed in 21475ms ...
-------------------------------------------------------
Tests passed: 1
Tests failed: 0
-------------------------------------------------------

~wt.defineTasks.defineClasspath:
     [xslt] Processing C:\development\workspaces\R2011_HRK2\DealerPortal\target\test-reports\webtest\001_DealerportalDealerPortalWebtestWebTe\WebTestReport.xml to C:\development\workspaces\R2011_HRK2\DealerPortal\target\test-reports\webtest\001_DealerportalDealerPortalWebtestWebTe\WebTestReport.html
     [xslt] Loading stylesheet C:\Users\200000107\.grails\1.3.7\projects\DealerPortal\webtest-jar\com\canoo\webtest\resources\resources\WebTestReport.xsl

wt.htmlReports:
     [echo] Waiting for completion of background generation of single reports
     [echo] Generating WebTestOverview
WebTests failed: java.lang.OutOfMemoryError: PermGen space
Error executing script TestApp: PermGen space
java.lang.OutOfMemoryError: PermGen space
Error executing script TestApp: PermGen space
Application context shutting down...
Application context shutdown.


The test itself runs well, but the creating of the results fails. If I comment "clickLink "Lagerfinanzierung" out, everything works fine. And: the same test runs perfectly, when I start it with my standalone webtest installation via console.
Any help is appreciated

Best regards,

Denis Christ
Anwendungsentwickler
IT Entwicklung

Santander Consumer Bank GmbH
Donau-City Straße 6
1220 Wien

Tel: +43 (0)5 0203 9441
Fax: +43 (0)5 0203 9230
E-Mail: denis.christ-UPY0+Y04XXlSq5J3+rkI/[email protected]<mailto:[email protected]>

www.santanderconsumer.at<http://www.santanderconsumer.at/>
FN 62610 z, Handelsgericht Wien

Diese Mitteilung enthält vertrauliche Informationen, die nur für den im Text genannten Empfänger bestimmt sind. Wir ersuchen um Benachrichtigung, falls Sie nicht der beabsichtigte Adressat sind. In diesem Fall dürfen die in dieser Mitteilung enthaltenen Informationen weder verwendet, noch vervielfältigt, noch an Dritte weitergegeben werden. Sofern Sie nicht der angegebene Empfänger sind, ersuchen wir Sie, sich mit Santander Consumer Bank GmbH in Verbindung zu setzen.

This communication is proprietary to Santander Consumer Bank GmbH. It contains information which is confidential and/or privileged and is intended for the use of the individual(s) or entity named above. If you are not the intended recipient(s), any unauthorised disclosure, copying, distribution or use of the contents of this communication is prohibited. If you have received this email/fax in error, please notify Santander Consumer Bank GmbH by telephone or by email immediately.
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.