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