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

Reply via email to