Hi John,
which build do you use? This behavior is "correct" for release 2.1 and
older builds as all properties of all steps went expanded before the
execution of the first step.
This should behave as expected if you pick the latest build.
Concerning the version number, you should see it in the generated report.
How do you start your test?
Marc.
John and Pip wrote:
Apologies for omitting subject - replying to add one...
On 1/7/07, John and Pip
<[EMAIL PROTECTED]> wrote:
Hi Guys,
I don't know whether I'm going mad or what, but I'm having huge
difficulties with properties at present. Witness the simple script
below:
<?xml version="1.0"?>
<!DOCTYPE project SYSTEM "../WebTest.dtd">
<project name="StandAloneTestHarness" basedir="." default="main">
<property name="webtest.home" location="..\.."/>
<import file="${webtest.home}/lib/taskdef.xml"/>
<target name="main">
<webtest name="no name">
<steps>
<groovy description="set a property">
step.setWebtestProperty
("dyn_prop", "content of dynamic property")
</groovy>
<property name="ant_prop"
value="content of ant property" />
<echo message="ant_prop is ${ant_prop}
and dyn_prop is #{dyn_prop}" />
</steps>
</webtest>
</target>
</project>
And the corresponding output (full debug listing given at end of email):
Buildfile: C:\WebTest\doc\ISIS\test.xml
Trying to override old definition of task sleep
main:
[echo] ant_prop is ${ant_prop} and dyn_prop is #{dyn_prop}
BUILD SUCCESSFUL
Total time: 5 seconds
I expect it to output:
[echo] ant_prop is content of ant property and dyn_prop is
content of dynamic property
Either I'm being incredibly stupid (likely) or somethings really
wrong. I was just about to mention which version of WebTest I'm using
but it no longer gets output when WebTest runs! When was that changed?
How do I now check the version I'm running? Anyway, I think I'm
running the latest build.zip.
Please help!
regards,
John
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest