So where should I put <option name="ThrowExceptionOnScriptError" value="false"/>
I tried put it in webtest.xml in <target name="wt.testInWork"... But that didn't work... under which tag should I put it? ________________________________ From: Soula, William [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2008 11:14 PM To: [email protected]; Lisa Crispin; Noam Aigerman Subject: RE: [Webtest] Setting ThrowExceptionOnScriptError globally We put the config info in webtest.xml. I believe in the default webtest.xml there are the below properties set: <property name="wt.config.resultpath" location="results"/> <property name="wt.config.saveresponse" value="true"/> <property name="wt.config.summary" value="true"/> <property name="wt.config.haltonerror" value="false"/> <property name="wt.config.haltonfailure" value="false"/> And you can probably just add <property name="wt.config.host" value="value of your host"/> to that list. We have some extra targets where we define this and some other properties based on if we are using ssl or not which is why I can't be 100% certain this will work. We also store the value of the host in an external properties file and just call it as ${host} so we can change the machine it is run against easily without opening any webtest files. ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lisa Crispin Sent: Friday, June 06, 2008 3:02 PM To: [email protected]; Noam Aigerman Subject: Re: [Webtest] Setting ThrowExceptionOnScriptError globally We put our config stuff in a separate file, and use !ENTITY to include it, but we are really old school WebTest, I haven't tried that macro thing that is available now. <!DOCTYPE project SYSTEM "file:../dtd/WebTest.dtd" [ <!ENTITY config SYSTEM "file:../modules/config.xml"> ... <project ... <target... <testSpec ... &config; I'd actually like to be able to turn that option off only for certain tests, but not sure how to do that other than doing what you are doing. -- Lisa On Fri, Jun 6, 2008 at 1:19 PM, Noam Aigerman <[EMAIL PROTECTED]> wrote: Hi, How can I set a config setting for an entire project, instead for one wbtest at a time? At the moment I'm doing something like: <target name="wt.testInWork"> <webtest name="test1"> <config> <option name="ThrowExceptionOnScriptError" value="false"/> </config> ....the test itself </webtest> <webtest name="test2"> <config> <option name="ThrowExceptionOnScriptError" value="false"/> </config> ....the test itself </webtest> Etc... </target> How can I define the config only once? -- Lisa Crispin Co-author with Janet Gregory, Agile Testing http://www.agiletester.ca http://lisa.crispin.home.att.net http://lisacrispin.blogspot.com

