|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
using option step in groovy syntaxhi,
I am playing around with webtest and first impressions are very good. but several pages are making problems with JS-errors so I want to set js-exception detection switched off (see http://webtest.canoo.com/webtest/manual/option.html). I tried following but webtest gives me exception when while executing the option step, what is the correct way to use the option step in groovy: class FirstWebTest extends WebtestCase { void testLogin() { //fails option name: "ThrowExceptionOnScriptError", value: "false" webtest("My first test") { group(description: "login to xxx") { //... test steps } } } } thanks |
|
|
Re: using option step in groovy syntaxI had a look at the test superclass and indeed there is no option() method available (in contrast to config() and webtest()).
never the less following fails also (it does not know the option tag): def ant=createAntBuilder() ant.option(....) I hope I don't need to import the taskdef explicitly with length yucky ant lib loading code... Is there a reason why WebtestCase does not offer an option() method?
|
|
|
Re: using option step in groovy syntaxI was mistaken... the option is a nested tag for option, so I need to include it to the config part:
following works: webtest("My first test") { config { option name: "ThrowExceptionOnScriptError",value: "false" } //further steps ....}
|
| Free embeddable forum powered by Nabble | Forum Help |