[Webtest] Setting an InputField with a "property" (previously valorized by a <storeInputFieldAttribute> task) ?

manouche groovy webtest@lists.canoo.com
Fri, 16 Jun 2006 16:58:34 +0200


------=_Part_108525_1237457.1150469914834
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi everybody,

I would like to valorize an Input Field (inside a FORM) with the value of a
(webtest) "property".
This property has been previously setted by a <storeInputFieldAttribute>
task :

       [...]
       <storeInputFieldAttribute propertyname="original-url"
name="presentationAddress" attributename="value" fieldindex="0"/>
       <verifyProperty description="Verifying inital value of URL"
property="original-url" value="https://owatest.realsentry.com/exchange"/>
       [...]
       [... webtests modifying the value of the Input Field...]
       [...]
       <setInputField description="Valorize with stored value"
name="presentationAddress" .... (here: HOW TO ADRESS "original-url" property
?) />

There's no attribute such as "propertyName" in <setInputField  task !
How to do this ?

Thanks in advance
Best regards.

------=_Part_108525_1237457.1150469914834
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi everybody,<br>
<br>
I would like to valorize an Input Field (inside a FORM) with the value of a (webtest) &quot;property&quot;.<br>
This property has been previously setted by a &lt;storeInputFieldAttribute&gt; task :<br>
<br>
<font size="1"><span style="font-family: courier new,monospace;">&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [...]</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;storeInputFieldAttribute propertyname=&quot;original-url&quot;
name=&quot;presentationAddress&quot; attributename=&quot;value&quot; fieldindex=&quot;0&quot;/&gt;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &lt;verifyProperty description=&quot;Verifying inital
value of URL&quot; property=&quot;original-url&quot;
value=&quot;<a href="https://owatest.realsentry.com/exchange">https://owatest.realsentry.com/exchange</a>&quot;/&gt;<br>
</span></font><font size="1"><span style="font-family: courier new,monospace;">&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [...]</span></font><br style="font-family: courier new,monospace;">
<font size="1"><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [... webtests modifying the value of the Input Field...]<br>
</span></font><font size="1"><span style="font-family: courier new,monospace;">&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; [...]</span></font><br style="font-family: courier new,monospace;">
<font size="1"><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;setInputField description=&quot;Valorize with stored value&quot; name=&quot;presentationAddress&quot; .... 
<span style="font-weight: bold;">(here: HOW TO ADRESS &quot;</span></span></font><font style="font-weight: bold;" size="1"><span style="font-family: courier new,monospace;">original-url&quot; property ?</span></font><font size="1">
<span style="font-family: courier new,monospace;"><span style="font-weight: bold;">)</span> /&gt;</span><br style="font-family: courier new,monospace;">
</font><br>
There's no attribute such as &quot;propertyName&quot; in &lt;setInputField&nbsp; task !<br>
How to do this ?<br>
<br>
Thanks in advance<br>
Best regards.<br>

------=_Part_108525_1237457.1150469914834--