[Webtest] Troubles with Grails plugin

Murat Murat <murat.knecht@googlemail.com>
Tue, 1 Nov 2011 10:36:27 +0100


did you try matching the case of your Groovy configuration to that of
your XML configuration, i.e.

ant.config(ThrowExceptionOnScriptError: 'false' )


In Groovy, we re-use the XML config, so the properties will be exactly
the same. Like so:

			def props =3D new Properties()
			props.load(new FileInputStream(f.path))


2011/11/1 mascis <juho.piirto@gmail.com>:
> Hi,
> A new problem. I have to run tests so that WebTest ignores JS-errors. In
> xml-tests it can be done putting in config
> <option name=3D"ThrowExceptionOnScriptError" value=3D"false" />
> but I can't make it work with groovy. There is config file
> webtest.properties and I tried putting there lines like
> wt.option.throwexceptiononscripterror =3D false
> or
> wt.config.throwexceptiononscripterror =3D false
> but those did not help. I made a separete config function also like
> =A0void config()
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ant.config(browser: 'FF3.6')
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ant.config(protocol: 'https' )
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ant.option(throwexceptiononscript=
error: 'false' ) (or
> ant.config(...))
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ant.config(autorefresh: 'true')
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 }
> this did not help either though this changed browser to FF3.6 so the
> function works. Any ideas about this one?
> --
> View this message in context: http://old.nabble.com/Troubles-with-Grails-=
> Sent from the WebTest mailing list archive at Nabble.com.
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest