History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: WT-569
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Assignee: Marc Guillemot
Reporter: Stanislaw Osinski
Votes: 2
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
WebTest

Dynamic property resolution does not work with Ant 1.8 or later

Created: 16/Aug/10 11:30:19   Updated: 18/Jan/13 09:40:10
Affects Version/s: 3.0
Fix Version/s: Future work

File Attachments: 1. XML File build.xml (0.6 kb)
2. XML File myFullTest.xml (0.3 kb)



 Description   
When the following simple sequence:

{noformat}
      <storeProperty name="id" value="a" propertyType="dynamic" />
      <storeProperty name="idx" value="#{id}x" propertyType="dynamic" />
{noformat}

is run using Ant 1.7.1, the 'idx' property correctly resolves the reference to the 'id' property and gets a value of 'ax'.

However, when run on Ant 1.8.0 or 1.8.1, the resolution does not seem to work at all, leaving 'idx' value equal to '#{id}x'. I also noticed that when I set eval="true", dynamic properties do get resolved, but I'm working with text-based values, so numeric evaluation should not be applied.

 All   Comments   Change History      Sort Order:
Comment by Steve Wooten [07/Nov/11 22:13:53]
This is not just dynamic properties. NO properties are inherited.

Comment by Dwayne Miller [18/Nov/11 14:28:28]
I created a simple test to try to isolate error. Appears to be an issue with the implementation of the <webtest> task.

Comment by Dwayne Miller [18/Nov/11 14:29:15]
I found this:

In Ant 1.8 the PropertyHelper class was much reworked and now itself employs a number of helper classes (actually instances of the org.apache.tools.ant.PropertyHelper$Delegate marker interface) to take care of discrete tasks such as property setting, retrieval, parsing, etc. This makes Ant's property handling highly extensible; also of interest is the new propertyhelper task used to manipulate the PropertyHelper and its delegates from the context of the Ant buildfile.

here:

http://ant.apache.org/manual/properties.html#propertyHelper

Comment by Lisa Crispin [06/Dec/11 18:22:59]
We are having this problem too, though with an old WebTest version, 1762. Is this fixed in a newer WebTest version? We tried to upgrade to the latest version, but some of our html doesn't work with it, we haven't had time to address all the issues. We're working around this by keeping an ant 1.7.1 just to run webtest.

Comment by Marc Guillemot [18/Jan/13 09:40:10]
Build R_1815 is working with Ant 1.8 (and requires it).