Instead of modifying webtest.xml directly, it is recommended that you define 
properties inside the build.xml generated by the wt.createProject call.

Within the build.xml, you can add the same two <property> lines to change the 
groovy test directory location and pattern.  Add them below the <propert 
name="webtest.home".../>

Ant properties are immutable, meaning that the first definition of the property 
is the value used throughout the project, even if other <property> tags for the 
same property name are encountered.

Cheers,

John Spann | Associate Software Engineer

Citrix Online Division
Citrix Systems, Inc.
6500 Hollister Avenue
Goleta, CA 93117 USA
www.citrix.com

Phone: 805.690.3489
Cell: 805.729.0008
Email: john.sp...@citrix.com


________________________________
From: <alessandro.co...@de.pwc.com>
Reply-To: <webtest@lists.canoo.com>, <alessandro.co...@de.pwc.com>
Date: Mon, 27 Apr 2009 23:20:42 -0700
To: <webt...@gate4.canoo.com>
Subject: Re: [Webtest] Tests in Groovy

Hi Steven,

inside the webtest.xml (Ant-Script), located in your webtest-directiory there's 
a target called wt.groovyTests:

<target name="wt.groovyTests" description="Runs the WebTests expressed as 
Groovy code from the tests folder" unless="wt.groovyTests.skip">
<property name="wt.groovyTests.dir" location="tests"/>
<property name="wt.groovyTests.pattern" value="**/*Test.groovy"/>

This is exactly, where you can specify which tests to run.
Currently all files matching *Test.groovy are executed.

BR
Alessandro

[cid:3323759520_4398091]Steven Mak <tc...@yahoo.com>



Steven Mak <tc...@yahoo.com>
Sent by: webtest-ad...@gate4.canoo.com
25.04.2009 18:12
Please respond to
webt...@gate4.canoo.com

[cid:3323759520_4398372]

To

[cid:3323759520_4413358]
webt...@gate4.canoo.com
[cid:3323759520_4421217]

cc

[cid:3323759520_4396571]
[cid:3323759520_4417723]

Subject

[cid:3323759520_4389270]
[Webtest] Tests in Groovy
[cid:3323759520_4399121][cid:3323759520_4422250]
Dear all,

I tried run webtest script to create project: (the webtest.xml obtained from 
the package downloaded)

webtest.sh -f ./webtest.xml wt.createProject

So it created a new directory for my new project, with sample tests. There are 
3 XML tests and 2 groovy tests inside.

The allTests.xml contacts the other 3 XML tests (googleWebTest, 
googleWebTestSteps, and webTestConference). When I run the test, all the tests 
are run.

My query is, where do we specify which groovy tests to run? (GoogleWebtestTest 
and the WebTestConferenceTest) or it run all the groovy tests in the "tests" 
directory?

Thank you,
Steven


_________________________________________________________________
Diese Information ist ausschliesslich fuer den Adressaten bestimmt und kann 
vertraulich oder gesetzlich geschuetzte Informationen enthalten. Wenn Sie nicht 
der bestimmungsgemaesse Adressat sind, unterrichten Sie bitte den Absender und 
vernichten Sie diese Mail. Anderen als dem bestimmungsgemaessen Adressaten ist 
es untersagt, diese E-Mail zu lesen, zu speichern, weiterzuleiten oder ihren 
Inhalt auf welche Weise auch immer zu verwenden. Wir verwenden aktuelle 
Virenschutzprogramme. Fuer Schaeden, die dem Empfaenger gleichwohl durch von 
uns zugesandte mit Viren befallene E-Mails entstehen, schliessen wir jede 
Haftung aus.

* * * * *

The information contained in this email is intended only for its addressee and 
may contain confidential and/or privileged  information. If the reader of this 
email is not the intended recipient, you are hereby notified that reading, 
saving, distribution or use of the content of this email in any way is 
prohibited. If you have received this email in error, please notify the sender 
and delete the email. We use updated antivirus protection software. We do not 
accept any responsibility for damages caused anyhow by viruses transmitted via 
email.

<<inline: image.gif>>

<<inline: image.gif>>

<<inline: image.gif>>

<<inline: image.gif>>

<<inline: image.gif>>

<<inline: image.gif>>

<<inline: image.gif>>

<<inline: image.gif>>

<<inline: image.gif>>

Reply via email to