Hi Marc, it seems as if the "unset" - function of the <var> task (Ant-Contrib) doesn't work within webtest.
<project default="test">
<target name="test">
<property name="x" value="6"/>
<echo>6:${x}</echo> <!-- will print 6 -->
<var name="x" unset="true"/>
<property name="x" value="12"/>
<echo>12:${x}</echo> <!-- will print 12 -->
<!-- this works OK x=12 -->
<webtest name="Test">
...
<property name="x2" value="6"/>
<echo>x2=${x2}</echo> <!-- will print 6 -->
<var name="x2" unset="true"/>
<property name="x2" value="12"/>
<echo>x2=${x2}</echo> <!-- will print 12 -->
<!-- this doesn't work: x2 = 6 -->
</webtest>
</target>
</project>
This was an issue last year.
http://lists.canoo.com/pipermail/webtest/2009q2/012197.html
Is this issue in the queue?
Greetings,
Fritz Förster
smime.p7s
Description: S/MIME cryptographic signature

