Re: Troubles with Grails plugin

mascis <[email protected]>
Newsgroups gmane.comp.web.canoo.webtest
Message-ID <[email protected]>
Neither of them seems to be working. This:
ant.config(ThrowExceptionOnScriptError: 'false') causes that tests won't run
and option(name:'ThrowExceptionOnScriptError', value:'false') does not work
because WebTest assumes that this is a command and there is no command
called "option". I also tried ant.option(name:'ThrowExceptionOnScriptError',
value:'false') and several other combinations of commands mentioned earlier
but I just can't get it work.


Jonathan Rosenberg-2 wrote:
> 
> Try this
> 
> 	   config {
> 		   option(name:'ThrowExceptionOnScriptError', value:'false')
> 	   }
> 
> --
> Jonathan Rosenberg
> Founder & Executive Director
> Tabby's Place, a Cat Sanctuary
> http://www.tabbysplace.org/
> 
> 
> On Tue, Nov 1, 2011 at 5:36 AM, Murat <murat.knecht-gM/[email protected]> wrote:
>> Hey,
>>
>> 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 = new Properties()
>>                        props.load(new FileInputStream(f.path))
>>
>>
>> Regards
>> murat
>>
>>
>> 2011/11/1 mascis <[email protected]>:
>>>
>>> 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="ThrowExceptionOnScriptError" value="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 = false
>>> or
>>> wt.config.throwexceptiononscripterror = false
>>>
>>> but those did not help. I made a separete config function also like
>>>
>>>  void config()
>>>                 {
>>>                     ant.config(browser: 'FF3.6')
>>>                     ant.config(protocol: 'https' )
>>>                     ant.option(throwexceptiononscripterror: 'false' )
>>> (or
>>> ant.config(...))
>>>                     ant.config(autorefresh: 'true')
>>>                 }
>>>
>>> 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-plugin-tp32751470p32757474.html
>>> Sent from the WebTest mailing list archive at Nabble.com.
>>>
>>> _______________________________________________
>>> WebTest mailing list
>>> [email protected]
>>> http://lists.canoo.com/mailman/listinfo/webtest
>>>
>> _______________________________________________
>> WebTest mailing list
>> [email protected]
>> http://lists.canoo.com/mailman/listinfo/webtest
>>
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
> 
> 

-- 
View this message in context: http://old.nabble.com/Troubles-with-Grails-plugin-tp32751470p32758902.html
Sent from the WebTest mailing list archive at Nabble.com.
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.