4 messages in com.canoo.lists.webtestRE: [Webtest] Setting ThrowExceptionO...| From | Sent On | Attachments |
|---|---|---|
| Noam Aigerman | 06 Jun 2008 12:18 | |
| Lisa Crispin | 06 Jun 2008 13:01 | |
| Soula, William | 06 Jun 2008 13:13 | |
| Noam Aigerman | 06 Jun 2008 15:03 |
| Subject: | RE: [Webtest] Setting ThrowExceptionOnScriptError globally![]() |
|---|---|
| From: | Soula, William (wso...@pointserve.com) |
| Date: | 06/06/2008 01:13:15 PM |
| List: | com.canoo.lists.webtest |
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: webt...@lists.canoo.com [mailto:webt...@lists.canoo.com] On
Behalf Of Lisa Crispin
Sent: Friday, June 06, 2008 3:02 PM
To: webt...@lists.canoo.com; 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
<noa...@answers.com<mailto:noa...@answers.com>> 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




