Hi Nalin,
nalin jain wrote:
Hi Michael,
Thanks for quick response. But I'm still having issue while scripting
for the same. Attached is the snapshot of the variable I need to pick.
pleas post a short html-snippet of the source you want to test. So we can
evaluate the xpath-expression.
For e.g.; we have a value attached to a property "Current Artifact :". I
need to pick that value associated with this property, as it variable.
I'm right: you want to read a value from the html-code to store the value in a property for later
use? So again post a short html-snippet of the html-code of your application.
How do you want to reuse the value stored in the property? post an example ...
Can u please guide me for this.
Thanks again.
[...]
I do it like:
extract the value out of the html-page:
---------
<storeRegEx description="create new release: Extract realID."
text="<a\shref='/release/detail\.do\?release=(\d{4})'\s>"
group="1" property="real.release.id" propertyType="dynamic" />
---------
and reuse the value as property="real.release.id" or save the value in a
file:
---------
<echo file="../data/${chewi.release1.file.name}"
message="real.release1.id=#{real.release.id}"/>
---------
[...]
--
Mit freundlichen Grüßen
Michael Habbert
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest