[Webtest] Where does WebTest run?

Patrick Burghardt Patrick Burghardt" <PBurghardt@advantageiq.com
Mon, 25 Jul 2011 15:21:47 -0400


This is a multi-part message in MIME format.

------_=_NextPart_001_01CC4B00.18CBC99F
Content-Type: text/plain;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable

Thanks, Lisa.

 

Does hostname just provide a base url onto which we can add relative
url's to invoke?  I am looking for a way to call a url from the server
instead of from my local machine.

 


=C2=A0
Patrick Burghardt
Software Engineer II
Advantage IQ, Inc.
D (513) 763-3107=C2=A0n=C2=A0F 
PBurghardt@advantageiq.com=C2=A0n=C2=A0http://www.advantageiq.com/=C2=A0=C2=
=A0n=C2=A01-866-322-4547

Smart Resource Management
CONFIDENTIALITY NOTICE: This email transmittal and any accompanying attachme=
nts contains information from sender which is business sensitive, proprietar=
y, confidential and may be legally privileged. The information is only for t=
he use of the intended recipient(s). If you are NOT the intended recipient: =
1. Do not read, copy, use or disclose this communication to others; 2. Immed=
iately notify the sender of the error by return email or call 509.329.7606; =
and 3. Delete the original file from your computer system and destroy all co=
pies of the transmittal in any form, including archived copies. 
________________________________


From: Lisa Crispin [mailto:lisa.crispin@gmail.com] 
Sent: Monday, July 25, 2011 2:46 PM
To: webtest@lists.canoo.com; Patrick Burghardt
Subject: Re: [Webtest] Where does WebTest run?

 

We use variables for hostname and port in the config.xml file, and pass
those in as -D parameters when we run the test, eg., here is a script I
use to run locally:
ant -DwebTestSrc=3D/Users/lcrispin/code/fast401k/src/web_test
-Dwebtesthome=3D/Users/lcrispin/canoo -Dhostname=3Dchester  -Dport=3D80
-DresultsPath=3D/Users/lcrispin/canoo/logs/chester_results
-DcanooTestToRun=3D$1.xml run-one-cano

Here's my config.xml:
<config 
    host=3D"${hostname}"
    browser=3D"IE7"
    protocol=3D"http"
    port=3D"${port}"
    basepath=3D"/"
    resultpath=3D"${resultsPath}"
    resultfile=3D"result.xml"
    summary=3D"true"
    showhtmlparseroutput=3D"false"
    saveresponse=3D"true"
    haltonerror=3D"false"
    haltonfailure=3D"false"
    easyajax=3D"true" >
    <option name=3D"ThrowExceptionOnScriptError" value=3D"true"/>
</config>

Here's the ant target for that in the build.xml:
         <!-- the canoo tests are run using wt.full found in webtest.xml
residing in the canoo home directory
               webtest.xml is included at the top of build.xml -->
    <target name=3D"run-one-canoo" depends=3D"init" description=3D"Runs
specified canoo test (requires running application).">
        <property name=3D"wt.testInWork"
value=3D"${test.webtest.scripts.dir}/${canooTestToRun}"/>
        <echo message=3D"wt.full in ${webtesthome}"/>
        <antcall target=3D"wt.full" />
    </target>

Does that help? In our Jenkins build, we pass parameters via the Jenkins
config.
-- Lisa

On Mon, Jul 25, 2011 at 12:28 PM, Patrick Burghardt
<PBurghardt@advantageiq.com> wrote:

I have WebTest running on my local computer.  I want it to run on a
server to which I have mapped a drive, but I still want to control it
from my local drive.  I test this by going to a website that tells me
what my IP address is.  I can specify webtest.home to be on the server,
but I still show my local IP.  

 

Maybe my question is most simply stated: What determines which
environment I am simulating?




-- 
Lisa Crispin
Co-author with Janet Gregory, _Agile Testing: A Practical Guide for
Testers and Agile Teams_ (Addison-Wesley 2009)
Contributor to _Beautiful Testing_ (O'Reilly 2009)
http://lisacrispin.com
@lisacrispin on Twitter
http://entaggle.com/lisacrispin


------_=_NextPart_001_01CC4B00.18CBC99F
Content-Type: text/html;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable

<HTML xmlns=3D"http://www.w3.org/TR/REC-html40" xmlns:o=3D"urn:schemas-micro=
soft-com:office:office" xmlns:st1=3D"urn:schemas-microsoft-com:office:smartt=
ags" xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:w=3D"urn:schemas-micros=
oft-com:office:word"><head><META content=3D"text/html; charset=3Dutf-8" http=
-equiv=3D"Content-Type">

<STYLE><!-- /* Style Definitions */ p.a8fad16f-caef-48ea-98bf-8478d3522e35, =
li.a8fad16f-caef-48ea-98bf-8478d3522e35, div.a8fad16f-caef-48ea-98bf-8478d35=
22e35, table.a8fad16f-caef-48ea-98bf-8478d3522e35Table	{margin:0cm; margin-b=
ottom:.0001pt;}div.Section1 {page:Section1;}--></STYLE>

<META content=3D"text/html; charset=3Dutf-8" HTTP-EQUIV=3D"Content-Type">
<meta content=3D"Microsoft Word 11 (filtered medium)" name=3DGenerator>
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
=2Eshape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType name=3D"City" namespaceuri=3D"urn:schemas-micros=
oft-com:office:smarttags">
<o:SmartTagType name=3D"place" namespaceuri=3D"urn:schemas-microsoft-com:off=
ice:smarttags">
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head><BODY>
<DIV>

<div class=3DSection1>

<p class=3DMsoNormal><font color=3Dnavy face=3DArial size=3D2><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Thanks, Lisa.<o:p></o:p></span></font><=
/p>

<p class=3DMsoNormal><font color=3Dnavy face=3DArial size=3D2><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font color=3Dnavy face=3DArial size=3D2><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Does hostname just provide a base url o=
nto
which we can add relative url&#8217;s to invoke?&nbsp; I am looking for a wa=
y to
call a url from the server instead of from my local machine.<o:p></o:p></spa=
n></font></p>

<p class=3DMsoNormal><font color=3Dnavy face=3DArial size=3D2><span style=
=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div align=3Dcenter class=3DMsoNormal style=3D'text-align:center'><font face=
=3D"Times New Roman" size=3D3><span style=3D'font-size:12.0pt'>

</span></font></div></div></div></DIV>
<DIV>&nbsp;</DIV>
<DIV></DIV>
<DIV>
<TABLE>
<TBODY>
<TR>
<TD>
<P><FONT COLOR=3D"#336699" FACE=3D"Arial" SIZE=3D"2"><STRONG>Patrick Burghar=
dt</STRONG></FONT></P></TD></TR>
<TR>
<TD>
<P><FONT COLOR=3D"#336699" FACE=3D"Arial" SIZE=3D"2">Software Engineer II </=
FONT></P></TD></TR>
<TR>
<TD><FONT FACE=3D"Arial">
<P><FONT FACE=3D"Arial"><FONT COLOR=3D"#336699" SIZE=3D"2">Advantage IQ, Inc=
=2E </FONT></FONT></P></FONT></TD></TR>
<TR>
<TD><FONT FACE=3D"Arial">
<P><FONT COLOR=3D"#336699" FACE=3D"Arial"><FONT SIZE=3D"2">D (513) 763-3107<=
FONT COLOR=3D"#000000">&nbsp;</FONT><SPAN STYLE=3D"FONT-FAMILY: ZapfDingbats=
; COLOR: #ce8e00; FONT-SIZE: 6pt; mso-bidi-font-size: 12.0pt; mso-fareast-fo=
nt-family: 'Times New Roman'; mso-bidi-font-family: Arial; mso-ansi-language=
: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-no-proof=
: yes"><FONT FACE=3D"Wingdings">n</FONT></SPAN><FONT COLOR=3D"#000000">&nbsp=
;</FONT><FONT COLOR=3D"#336699">F </FONT></FONT></FONT></P></FONT></TD></TR>
<TR>
<TD><FONT FACE=3D"Arial">
<P><FONT FACE=3D"Arial"><FONT SIZE=3D"2"><FONT COLOR=3D"#336699">PBurghardt@=
advantageiq.com</FONT>&nbsp;<SPAN STYLE=3D"FONT-FAMILY: ZapfDingbats; COLOR:=
 #ce8e00; FONT-SIZE: 6pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-famil=
y: 'Times New Roman'; mso-bidi-font-family: Arial; mso-ansi-language: EN-US;=
 mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-no-proof: yes"><=
FONT FACE=3D"Times New Roman"><SPAN STYLE=3D"FONT-FAMILY: ZapfDingbats; COLO=
R: #ce8e00; FONT-SIZE: 6pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-fam=
ily: 'Times New Roman'; mso-bidi-font-family: Arial; mso-ansi-language: EN-U=
S; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-no-proof: yes"=
><FONT FACE=3D"Wingdings">n</FONT></SPAN></FONT></SPAN>&nbsp; </FONT><A HREF=
=3D"http://www.advantageiq.com/"><FONT SIZE=3D"2">www.advantageiq.com</FONT>=
</A><FONT SIZE=3D"2"><SPAN STYLE=3D"FONT-FAMILY: Arial; COLOR: #44697d">&nbs=
p;</SPAN><FONT COLOR=3D"#ce8e00" FACE=3D"ZapfDingbats"><SPAN STYLE=3D"FONT-F=
AMILY: ZapfDingbats; COLOR: #ce8e00; FONT-SIZE: 6pt"><SPAN STYLE=3D"FONT-FAM=
ILY: ZapfDingbats; COLOR: #ce8e00; FONT-SIZE: 6pt; mso-bidi-font-size: 12.0p=
t; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: Arial; =
mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR=
-SA; mso-no-proof: yes"><FONT FACE=3D"Wingdings"><FONT COLOR=3D"#000000" FAC=
E=3D"Arial">&nbsp;</FONT><SPAN STYLE=3D"FONT-FAMILY: ZapfDingbats; COLOR: #c=
e8e00; FONT-SIZE: 6pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: =
'Times New Roman'; mso-bidi-font-family: Arial; mso-ansi-language: EN-US; ms=
o-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-no-proof: yes"><FON=
T FACE=3D"Times New Roman"><SPAN STYLE=3D"FONT-FAMILY: ZapfDingbats; COLOR: =
#ce8e00; FONT-SIZE: 6pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family=
: 'Times New Roman'; mso-bidi-font-family: Arial; mso-ansi-language: EN-US; =
mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-no-proof: yes"><F=
ONT FACE=3D"Wingdings">n</FONT></SPAN></FONT></SPAN></FONT><FONT COLOR=3D"#0=
00000" FACE=3D"Arial">&nbsp; </FONT></SPAN></SPAN></FONT><FONT COLOR=3D"#ce8=
e00"><SPAN STYLE=3D"FONT-FAMILY: Arial; COLOR: #ce8e00; FONT-SIZE: 9pt"><FON=
T COLOR=3D"#336699">1-866-322-4547</FONT></SPAN></FONT></FONT></FONT></P></F=
ONT></TD></TR>
<TR>
<TD><FONT FACE=3D"Arial" SIZE=3D"1"><FONT COLOR=3D"#99cccc"><STRONG><FONT CO=
LOR=3D"slategray" FACE=3D"Tahoma" SIZE=3D"2"><EM><BR><FONT COLOR=3D"#808080"=
>Smart Resource Management</FONT><BR></EM></FONT></STRONG></FONT></FONT><FON=
T SIZE=3D"1"><FONT FACE=3D"Arial"><SPAN STYLE=3D"FONT-FAMILY: Arial; FONT-SI=
ZE: 7.5pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN=
-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-no-proof: ye=
s"><SPAN STYLE=3D"FONT-FAMILY: Arial; FONT-SIZE: 7.5pt; mso-fareast-font-fam=
ily: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-U=
S; mso-bidi-language: AR-SA; mso-no-proof: yes"><FONT COLOR=3D"#999999">CONF=
IDENTIALITY NOTICE: This email transmittal and any accompanying attachments =
contains information from sender which is business sensitive, proprietary, c=
onfidential and may be legally privileged. The information is only for the u=
se of the intended recipient(s). If you are NOT the intended recipient: 1. D=
o not read, copy, use or disclose this communication to others; 2. Immediate=
ly notify the sender of the error by return email or call 509.329.7606; and =
3. Delete the original file from your computer system and destroy all copies=
 of the transmittal in any form, including archived copies.</FONT></SPAN><SP=
AN STYLE=3D"FONT-FAMILY: 'Times New Roman'; FONT-SIZE: 7.5pt; mso-fareast-fo=
nt-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language=
: EN-US; mso-bidi-language: AR-SA"> <BR></SPAN></SPAN></FONT></FONT><FONT SI=
ZE=3D"1"><div class=3DSection1><div><div align=3Dcenter class=3DMsoNormal st=
yle=3D'text-align:center'><font face=3D"Times New Roman" size=3D3><span styl=
e=3D'font-size:12.0pt'><hr align=3Dcenter size=3D2 tabindex=3D-1 width=3D"10=
0%"></span></font></div></div></div></FONT><A></A></TD></TR></TBODY></TABLE>=
</DIV>
<P><div class=3DSection1><div><div align=3Dcenter class=3DMsoNormal style=
=3D'text-align:center'><font face=3D"Times New Roman" size=3D3><span style=
=3D'font-size:12.0pt'>

</span></font></div>

<p class=3DMsoNormal><b><font face=3DTahoma size=3D2><span style=3D'font-siz=
e:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font face=3DTah=
oma size=3D2><span style=3D'font-size:10.0pt;font-family:Tahoma'> Lisa Crisp=
in
[mailto:lisa.crispin@gmail.com] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Monday, July 25, 2011 2=
:46
PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> webtest@lists.canoo.com;
Patrick Burghardt<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> Re: [Webtest] Where =
does
WebTest run?</span></font><o:p></o:p></p>

</div>

<p class=3DMsoNormal><font face=3D"Times New Roman" size=3D3><span style=3D'=
font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font face=3D"Times New =
Roman" size=3D3><span style=3D'font-size:12.0pt'>We use variables for
hostname and port in the config.xml file, and pass those in as -D parameters
when we run the test, eg., here is a script I use to run locally:<br>
ant -DwebTestSrc=3D/Users/lcrispin/code/fast401k/src/web_test
-Dwebtesthome=3D/Users/lcrispin/canoo -Dhostname=3D<st1:City w:st=3D"on"><st=
1:place w:st=3D"on">chester</st1:place></st1:City>&nbsp; -Dport=3D80
-DresultsPath=3D/Users/lcrispin/canoo/logs/chester_results
-DcanooTestToRun=3D$1.xml run-one-cano<br>
<br>
Here's my config.xml:<br>
&lt;config <br>
&nbsp;&nbsp;&nbsp; host=3D&quot;${hostname}&quot;<br>
&nbsp;&nbsp;&nbsp; browser=3D&quot;IE7&quot;<br>
&nbsp;&nbsp;&nbsp; protocol=3D&quot;http&quot;<br>
&nbsp;&nbsp;&nbsp; port=3D&quot;${port}&quot;<br>
&nbsp;&nbsp;&nbsp; basepath=3D&quot;/&quot;<br>
&nbsp;&nbsp;&nbsp; resultpath=3D&quot;${resultsPath}&quot;<br>
&nbsp;&nbsp;&nbsp; resultfile=3D&quot;result.xml&quot;<br>
&nbsp;&nbsp;&nbsp; summary=3D&quot;true&quot;<br>
&nbsp;&nbsp;&nbsp; showhtmlparseroutput=3D&quot;false&quot;<br>
&nbsp;&nbsp;&nbsp; saveresponse=3D&quot;true&quot;<br>
&nbsp;&nbsp;&nbsp; haltonerror=3D&quot;false&quot;<br>
&nbsp;&nbsp;&nbsp; haltonfailure=3D&quot;false&quot;<br>
&nbsp;&nbsp;&nbsp; easyajax=3D&quot;true&quot; &gt;<br>
&nbsp;&nbsp;&nbsp; &lt;option name=3D&quot;ThrowExceptionOnScriptError&quot;=
 value=3D&quot;true&quot;/&gt;<br>
&lt;/config&gt;<br>
<br>
Here's the ant target for that in the build.xml:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- the canoo tests are
run using wt.full found in webtest.xml residing in the canoo home directory<=
br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;
webtest.xml is included at the top of build.xml --&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;target name=3D&quot;run-one-canoo&quot;
depends=3D&quot;init&quot; description=3D&quot;Runs specified canoo test (re=
quires
running application).&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property
name=3D&quot;wt.testInWork&quot;
value=3D&quot;${test.webtest.scripts.dir}/${canooTestToRun}&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;echo message=3D&quot;wt.full =
in
${webtesthome}&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;antcall
target=3D&quot;wt.full&quot; /&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/target&gt;<br>
<br>
Does that help? In our Jenkins build, we pass parameters via the Jenkins
config.<br>
-- Lisa<o:p></o:p></span></font></p>

<div>

<p class=3DMsoNormal><font face=3D"Times New Roman" size=3D3><span style=3D'=
font-size:
12.0pt'>On Mon, Jul 25, 2011 at 12:28 PM, Patrick Burghardt &lt;<a href=3D"m=
ailto:PBurghardt@advantageiq.com">PBurghardt@advantageiq.com</a>&gt;
wrote:<o:p></o:p></span></font></p>

<div link=3Dblue vlink=3Dpurple>

<div>

<p class=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:=
auto'><font face=3DArial size=3D2><span style=3D'font-size:10.0pt;font-famil=
y:Arial'>I have
WebTest running on my local computer.&nbsp; I want it to run on a server to
which I have mapped a drive, but I still want to control it from my local
drive.&nbsp; I test this by going to a website that tells me what my IP addr=
ess
is.&nbsp; I can specify webtest.home to be on the server, but I still show m=
y
local IP.&nbsp; </span></font><o:p></o:p></p>

<p class=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:=
auto'><font face=3DArial size=3D2><span style=3D'font-size:10.0pt;font-famil=
y:Arial'>&nbsp;</span></font><o:p></o:p></p>

<p class=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:=
auto'><font face=3DArial size=3D2><span style=3D'font-size:10.0pt;font-famil=
y:Arial'>Maybe my
question is most simply stated: What determines which environment I am
simulating?</span></font><o:p></o:p></p>

</div>

</div>

</div>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font face=3D"Times New =
Roman" size=3D3><span style=3D'font-size:12.0pt'><br>
<br clear=3Dall>
<br>
-- <br>
Lisa Crispin<br>
Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers =
and
Agile Teams_ (Addison-Wesley 2009)<br>
Contributor to _Beautiful Testing_ (O'Reilly 2009)<br>
<a href=3D"http://lisacrispin.com" target=3D"_blank">http://lisacrispin.com<=
/a><br>
@lisacrispin on Twitter<br>
<a href=3D"http://entaggle.com/lisacrispin" target=3D"_blank">http://entaggl=
e.com/lisacrispin</a><o:p></o:p></span></font></p>

</div>

</P></BODY></HTML>

------_=_NextPart_001_01CC4B00.18CBC99F--