[Webtest] stupid webtest question #426. Can I store a constant for later us e?

Bill Milbratz webtest@lists.canoo.com
Thu, 25 Sep 2003 11:54:37 -0500


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------=_NextPartTM-000-1019129b-dbcc-4e17-b1b9-87a8d9e68505
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C38385.B40F0C80"

------_=_NextPart_001_01C38385.B40F0C80
Content-Type: text/plain;
	charset="iso-8859-1"

Hi,

Can I store a constant using storeregex? 

I'd like to reuse a module in different use cases, but with different
parameter values.

I was thinking of storing a 'permanent' property (e.g. ${code.foo.value}) in
a dynamic property and using that dynamic property in the module..

example:

before calling the module:
<storeregex
       stepid="store code value foo"
       text="${code.foo.value}"
      property="code.value" />

excerpt from the module:
 <setselectfield stepid="setSelectField"
    name="propertyValue"
    value="#{code.value}"
 />


The documentation suggests that I storeregex/storexpath only works on the
last response. 



thanks,

bill milbratz



------_=_NextPart_001_01C38385.B40F0C80
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>stupid webtest question #426. Can I store a constant for later =
use?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Hi,</FONT>
</P>

<P><FONT SIZE=3D2>Can I store a constant using storeregex? </FONT>
</P>

<P><FONT SIZE=3D2>I'd like to reuse a module in different use cases, =
but with different parameter values.</FONT>
</P>

<P><FONT SIZE=3D2>I was thinking of storing a 'permanent' property =
(e.g. ${code.foo.value}) in a dynamic property and using that dynamic =
property in the module..</FONT></P>

<P><FONT SIZE=3D2>example:</FONT>
</P>

<P><FONT SIZE=3D2>before calling the module:</FONT>
<BR><FONT SIZE=3D2>&lt;storeregex</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
stepid=3D&quot;store code value foo&quot;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
text=3D&quot;${code.foo.value}&quot;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
property=3D&quot;code.value&quot; /&gt;</FONT>
</P>

<P><FONT SIZE=3D2>excerpt from the module:</FONT>
<BR><FONT SIZE=3D2>&nbsp;&lt;setselectfield =
stepid=3D&quot;setSelectField&quot;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; =
name=3D&quot;propertyValue&quot;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; =
value=3D&quot;#{code.value}&quot;</FONT>
<BR><FONT SIZE=3D2>&nbsp;/&gt;</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>The documentation suggests that I =
storeregex/storexpath only works on the last response. </FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2>thanks,</FONT>
</P>

<P><FONT SIZE=3D2>bill milbratz</FONT>
</P>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01C38385.B40F0C80--

------=_NextPartTM-000-1019129b-dbcc-4e17-b1b9-87a8d9e68505--