[Webtest] Accessing the host value

Luke.Templin@exeloncorp.com Luke.Templin@exeloncorp.com
Fri, 1 Aug 2008 16:57:47 -0400


This is a multi-part message in MIME format.


------_=_NextPart_001_01C8F419.40E0F8BD
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I'm attempting to use the value in the configuration as a property but=0D=
=0Athe syntax is wrong=2E=0D=0A=0D=0A =0D=0A=0D=0AHere's a example  of the =
test file=0D=0A=0D=0A<!DOCTYPE project  SYSTEM "=2E=2E/dtd/Project=2Edtd" >=
=0D=0A=0D=0A<project name=3D"Test_SomePage_aspx" basedir=3D"=2E" default=3D=
"wt=2EtestInWork">=0D=0A=0D=0A  <property name=3D"name" location=3D"C:/prog=
ra~1/webtest" />=0D=0A=0D=0A  <import file=3D"${webtest=2Ehome}/webtest=2Ex=
ml" />=0D=0A=0D=0A  <property name=3D"wt=2Eresultpath" location=3D"=2E=2E/r=
esults" />=0D=0A=0D=0A  <property file=3D"=2E=2E/includes/login=2Epropertie=
s" />=0D=0A=0D=0A  <property file=3D"=2E=2E/includes/pageName2=2Eproperties=
" />=0D=0A=0D=0A  <target name=3D"wt=2EtestInWork">=0D=0A=0D=0A    <webtest=
 name=3D"mytest">=0D=0A=0D=0A            &config; <!-want to access the hos=
t property from here -->=0D=0A=0D=0A            &login;=0D=0A=0D=0A        =
    <invoke description=3D"Test_SomePage=2Easpx"=0D=0Aurl=3D"/PageDirectory=
/SomePage=2Easpx" />=0D=0A=0D=0A            &VerifyNoError;=0D=0A=0D=0A    =
        <clickLink htmlId=3D"lnkSendnMarket" />=0D=0A=0D=0A            <!-c=
heck in the verifyProperty that the host variable is=0D=0Awhat I want but t=
he name is not defined when running the test -->=0D=0A=0D=0A<verifyProperty=
 description=3D"verify reading host variable"=0D=0Aname=3D"nMarketFeed=2Eho=
st" text=3D"ksqmststgm01" /> =0D=0A=0D=0A            =0D=0A=0D=0A<property =
name=3D"SomeFileName"=0D=0Avalue=3D"${webtest=2Econfig=2Ehost}\generation\D=
ata\rtdisp_${DSTAMP}${TSTAMP}=2E=0D=0Axml" />=0D=0A=0D=0A             <veri=
fyProperty description=3D"verify reading host variable"=0D=0Aname=3D"somePa=
ge=2Ehost" text=3D"ksqmststgm01" /> =0D=0A=0D=0A            =0D=0A=0D=0A   =
         <loadfile property=3D"nMarketFile" srcFile=3D"${SomeFileName}"=0D=
=0A/>=0D=0A=0D=0A =0D=0A=0D=0AThe test fails because the host variable name=
 isn't right=2E What's the=0D=0Acorrect syntax to access from the config=2E=
host value?=0D=0A=0D=0A =0D=0A=0D=0ALuke Templin=0D=0A=0D=0A=0D=0A
------_=_NextPart_001_01C8F419.40E0F8BD
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:sc=
hemas-microsoft-com:office:word" xmlns=3D"http://www=2Ew3=2Eorg/TR/REC-html=
40">=0D=0A=0D=0A<head>=0D=0A<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"te=
xt/html; charset=3Dus-ascii">=0D=0A<meta name=3DGenerator content=3D"Micros=
oft Word 11 (filtered medium)">=0D=0A<style>=0D=0A<!--=0D=0A /* Font Defini=
tions */=0D=0A @font-face=0D=0A	{font-family:Wingdings;=0D=0A	panose-1:5 0 =
0 0 0 0 0 0 0 0;}=0D=0A /* Style Definitions */=0D=0A p=2EMsoNormal, li=2EM=
soNormal, div=2EMsoNormal=0D=0A	{margin:0in;=0D=0A	margin-bottom:=2E0001pt;=
=0D=0A	font-size:12=2E0pt;=0D=0A	font-family:"Times New Roman";}=0D=0Aa:lin=
k, span=2EMsoHyperlink=0D=0A	{color:blue;=0D=0A	text-decoration:underline;}=
=0D=0Aa:visited, span=2EMsoHyperlinkFollowed=0D=0A	{color:#606420;=0D=0A	te=
xt-decoration:underline;}=0D=0Aspan=2EEmailStyle17=0D=0A	{mso-style-type:pe=
rsonal-compose;=0D=0A	font-family:Arial;=0D=0A	color:windowtext;}=0D=0A@pag=
e Section1=0D=0A	{size:8=2E5in 11=2E0in;=0D=0A	margin:1=2E0in 1=2E25in 1=2E=
0in 1=2E25in;}=0D=0Adiv=2ESection1=0D=0A	{page:Section1;}=0D=0A-->=0D=0A</s=
tyle>=0D=0A=0D=0A</head>=0D=0A=0D=0A<body lang=3DEN-US link=3Dblue vlink=3D=
"#606420">=0D=0A=0D=0A<div class=3DSection1>=0D=0A=0D=0A<p class=3DMsoNorma=
l><font size=3D2 face=3DArial><span style=3D'font-size:10=2E0pt;=0D=0Afont-=
family:Arial'>I&#8217;m attempting to use the value in the configuration=0D=
=0Aas a property but the syntax is wrong=2E<o:p></o:p></span></font></p>=0D=
=0A=0D=0A<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'fo=
nt-size:10=2E0pt;=0D=0Afont-family:Arial'><o:p>&nbsp;</o:p></span></font></=
p>=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=
=3D'font-size:10=2E0pt;=0D=0Afont-family:Arial'>Here&#8217;s a example&nbsp=
; of the test file<o:p></o:p></span></font></p>=0D=0A=0D=0A<p class=3DMsoNo=
rmal><font size=3D2 face=3DArial><span style=3D'font-size:10=2E0pt;=0D=0Afo=
nt-family:Arial'>&lt;!DOCTYPE project&nbsp; SYSTEM &quot;=2E=2E/dtd/Project=
=2Edtd&quot;=0D=0A&gt;<o:p></o:p></span></font></p>=0D=0A=0D=0A<p class=3DM=
soNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=2E0pt;=0D=
=0Afont-family:Arial'>&lt;project name=3D&quot;Test_SomePage_aspx&quot;=0D=
=0Abasedir=3D&quot;=2E&quot; default=3D&quot;wt=2EtestInWork&quot;&gt;<o:p>=
</o:p></span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 fac=
e=3DArial><span style=3D'font-size:10=2E0pt;=0D=0Afont-family:Arial'>&nbsp;=
 &lt;property name=3D&quot;name&quot; location=3D&quot;C:/progra~1/webtest&=
quot;=0D=0A/&gt;<o:p></o:p></span></font></p>=0D=0A=0D=0A<p class=3DMsoNorm=
al><font size=3D2 face=3DArial><span style=3D'font-size:10=2E0pt;=0D=0Afont=
-family:Arial'>&nbsp; &lt;import file=3D&quot;${webtest=2Ehome}/webtest=2Ex=
ml&quot;=0D=0A/&gt;<o:p></o:p></span></font></p>=0D=0A=0D=0A<p class=3DMsoN=
ormal><font size=3D2 face=3DArial><span style=3D'font-size:10=2E0pt;=0D=0Af=
ont-family:Arial'>&nbsp; &lt;property name=3D&quot;wt=2Eresultpath&quot;=0D=
=0Alocation=3D&quot;=2E=2E/results&quot; /&gt;<o:p></o:p></span></font></p>=
=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D=
'font-size:10=2E0pt;=0D=0Afont-family:Arial'>&nbsp; &lt;property file=3D&qu=
ot;=2E=2E/includes/login=2Eproperties&quot;=0D=0A/&gt;<o:p></o:p></span></f=
ont></p>=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10=2E0pt;=0D=0Afont-family:Arial'>&nbsp; &lt;property=0D=
=0Afile=3D&quot;=2E=2E/includes/pageName2=2Eproperties&quot; /&gt;<o:p></o:=
p></span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 face=3D=
Arial><span style=3D'font-size:10=2E0pt;=0D=0Afont-family:Arial'>&nbsp; &lt=
;target name=3D&quot;wt=2EtestInWork&quot;&gt;<o:p></o:p></span></font></p>=
=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D=
'font-size:10=2E0pt;=0D=0Afont-family:Arial'>&nbsp;&nbsp;&nbsp; &lt;webtest=
 name=3D&quot;mytest&quot;&gt;<o:p></o:p></span></font></p>=0D=0A=0D=0A<p c=
lass=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:10=2E=
0pt;=0D=0Afont-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp; &amp;config; &lt;!&#8212;want to access the host=0D=0A=
property from here </span></font><font size=3D2 face=3DWingdings><span=0D=
=0Astyle=3D'font-size:10=2E0pt;font-family:Wingdings'>&agrave;</span></font=
><font size=3D2=0D=0Aface=3DArial><span style=3D'font-size:10=2E0pt;font-fa=
mily:Arial'><o:p></o:p></span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><=
font size=3D2 face=3DArial><span style=3D'font-size:10=2E0pt;=0D=0Afont-fam=
ily:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p; &amp;login;<o:p></o:p></span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal=
><font size=3D2 face=3DArial><span style=3D'font-size:10=2E0pt;=0D=0Afont-f=
amily:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp; &lt;invoke description=3D&quot;Test_SomePage=2Easpx&quot;=0D=0Aurl=3D&=
quot;/PageDirectory/SomePage=2Easpx&quot; /&gt;<o:p></o:p></span></font></p=
>=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=
=3D'font-size:10=2E0pt;=0D=0Afont-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;VerifyNoError;<o:p></o:p></spa=
n></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 face=3DArial><=
span style=3D'font-size:10=2E0pt;=0D=0Afont-family:Arial'>&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;clickLink htmlId=3D&q=
uot;lnkSendnMarket&quot;=0D=0A/&gt;<o:p></o:p></span></font></p>=0D=0A=0D=
=0A<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-siz=
e:10=2E0pt;=0D=0Afont-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!&#8212;check in the verifyProperty that th=
e=0D=0Ahost variable is what I want but the name is not defined when runnin=
g the test </span></font><font=0D=0Asize=3D2 face=3DWingdings><span style=
=3D'font-size:10=2E0pt;font-family:Wingdings'>&agrave;</span></font><font=
=0D=0Asize=3D2 face=3DArial><span style=3D'font-size:10=2E0pt;font-family:A=
rial'><o:p></o:p></span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal style=
=3D'text-indent:=2E5in'><font size=3D2 face=3DArial><span=0D=0Astyle=3D'fon=
t-size:10=2E0pt;font-family:Arial'>&lt;verifyProperty=0D=0Adescription=3D&q=
uot;verify reading host variable&quot;=0D=0Aname=3D&quot;nMarketFeed=2Ehost=
&quot; text=3D&quot;ksqmststgm01&quot; /&gt; <o:p></o:p></span></font></p>=
=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D=
'font-size:10=2E0pt;=0D=0Afont-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></font></p>=0D=0A=0D=
=0A<p class=3DMsoNormal style=3D'text-indent:=2E5in'><font size=3D2 face=3D=
Arial><span=0D=0Astyle=3D'font-size:10=2E0pt;font-family:Arial'>&lt;propert=
y name=3D&quot;SomeFileName&quot;=0D=0Avalue=3D&quot;${webtest=2Econfig=2Eh=
ost}\generation\Data\rtdisp_${DSTAMP}${TSTAMP}=2Exml&quot;=0D=0A/&gt;<o:p><=
/o:p></span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 face=
=3DArial><span style=3D'font-size:10=2E0pt;=0D=0Afont-family:Arial'>&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&lt;verif=
yProperty description=3D&quot;verify=0D=0Areading host variable&quot; name=
=3D&quot;somePage=2Ehost&quot;=0D=0Atext=3D&quot;ksqmststgm01&quot; /&gt; <=
o:p></o:p></span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2=
 face=3DArial><span style=3D'font-size:10=2E0pt;=0D=0Afont-family:Arial'>&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p=
></span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 face=3DA=
rial><span style=3D'font-size:10=2E0pt;=0D=0Afont-family:Arial'>&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;loadfile proper=
ty=3D&quot;nMarketFile&quot;=0D=0AsrcFile=3D&quot;${SomeFileName}&quot; /&g=
t;<o:p></o:p></span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><font size=
=3D2 face=3DArial><span style=3D'font-size:10=2E0pt;=0D=0Afont-family:Arial=
'><o:p>&nbsp;</o:p></span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><font=
 size=3D2 face=3DArial><span style=3D'font-size:10=2E0pt;=0D=0Afont-family:=
Arial'>The test fails because the host variable name isn&#8217;t=0D=0Aright=
=2E What&#8217;s the correct syntax to access from the config=2Ehost value?=
<o:p></o:p></span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D=
2 face=3DArial><span style=3D'font-size:10=2E0pt;=0D=0Afont-family:Arial'><=
o:p>&nbsp;</o:p></span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><font si=
ze=3D2 face=3DArial><span style=3D'font-size:10=2E0pt;=0D=0Afont-family:Ari=
al'>Luke Templin<o:p></o:p></span></font></p>=0D=0A=0D=0A</div>=0D=0A=0D=0A=
</body>=0D=0A=0D=0A</html>=0D=0A=0D=0A<HTML><BODY><P>**********************=
****************************=0D=0AThis e-mail and any of its attachments ma=
y contain Exelon Corporation proprietary information, which is privileged, =
confidential, or subject to copyright belonging to the Exelon Corporation f=
amily of Companies=2E =0D=0AThis e-mail is intended solely for the use of t=
he individual or entity to which it is addressed=2E  If you are not the int=
ended recipient of this e-mail, you are hereby notified that any disseminat=
ion, distribution, copying, or action taken in relation to the contents of =
and attachments to this e-mail is strictly prohibited and may be unlawful=
=2E  If you have received this e-mail in error, please notify the sender im=
mediately and permanently delete the original and any copy of this e-mail a=
nd any printout=2E Thank You=2E=0D=0A**************************************=
************</P></BODY></HTML>
------_=_NextPart_001_01C8F419.40E0F8BD--