[Webtest] Where does WebTest run?

Lisa Crispin Lisa Crispin <lisa.crispin@gmail.com>
Mon, 25 Jul 2011 13:29:46 -0600


--0023545bcf2489879304a8e9d625
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Right. So the script that invokes the site has:
    <invoke description=3D"Go to main page"
            url=3D"control.jsp?fid=3D${fid}"/>
and that completes the url that starts with hostname and port.

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

> ** **
>
> Thanks, Lisa.****
>
> ** **
>
> Does hostname just provide a base url onto which we can add relative url=
=92s
> to invoke?  I am looking for a way to call a url from the server instead =
of
> from my local machine.****
>
> ** **
>
>
> *Patrick Burghardt*
>
> Software Engineer II
>
> Advantage IQ, Inc.
>
> D (513) 763-3107 n F
>
> PBurghardt@advantageiq.com n  www.advantageiq.com  n  1-866-322-4547
>  *
> Smart Resource Management
> *CONFIDENTIALITY NOTICE: This email transmittal and any accompanying
> attachments contains information from sender which is business sensitive,
> proprietary, confidential and may be legally privileged. The information =
is
> only for the use of the intended recipient(s). If you are NOT the intende=
d
> recipient: 1. Do not read, copy, use or disclose this communication to
> others; 2. Immediately 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.
> ------------------------------
>
>  *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 u=
se
> to run locally:
> ant -DwebTestSrc=3D/Users/lcrispin/code/fast401k/src/web_test
> -Dwebtesthome=3D/Users/lcrispin/canoo -Dhostname=3D****chester****  -Dpor=
t=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 s=
pecified
> 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 serve=
r
> to which I have mapped a drive, but I still want to control it from my lo=
cal
> drive.  I test this by going to a website that tells me what my IP addres=
s
> 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 environmen=
t
> I am simulating?****
>
>
>
>
> --
> Lisa Crispin
> Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Teste=
rs
> and Agile Teams_ (Addison-Wesley 2009)
> Contributor to _Beautiful Testing_ (O'Reilly 2009)
> http://lisacrispin.com
> @lisacrispin on Twitter
> http://entaggle.com/lisacrispin****
>



--=20
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

--0023545bcf2489879304a8e9d625
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Right. So the script that invokes the site has:<br>=A0=A0=A0 &lt;invoke des=
cription=3D&quot;Go to main page&quot;<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
 url=3D&quot;control.jsp?fid=3D${fid}&quot;/&gt;<br>and that completes the =
url that starts with hostname and port.<br>
<br><div class=3D"gmail_quote">On Mon, Jul 25, 2011 at 1:21 PM, Patrick Bur=
ghardt <span dir=3D"ltr">&lt;<a href=3D"mailto:PBurghardt@advantageiq.com">=
PBurghardt@advantageiq.com</a>&gt;</span> wrote:<br><blockquote class=3D"gm=
ail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(2=
04, 204, 204); padding-left: 1ex;">






<u></u>
<u></u>



<div>
<div>

<div>

<p class=3D"MsoNormal"><font color=3D"navy" face=3D"Arial" size=3D"2"><span=
 style=3D"font-size: 10pt; font-family: Arial; color: navy;">Thanks, Lisa.<=
u></u><u></u></span></font></p>

<p class=3D"MsoNormal"><font color=3D"navy" face=3D"Arial" size=3D"2"><span=
 style=3D"font-size: 10pt; font-family: Arial; color: navy;"><u></u>=A0<u><=
/u></span></font></p>

<p class=3D"MsoNormal"><font color=3D"navy" face=3D"Arial" size=3D"2"><span=
 style=3D"font-size: 10pt; font-family: Arial; color: navy;">Does hostname =
just provide a base url onto
which we can add relative url=92s to invoke?=A0 I am looking for a way to
call a url from the server instead of from my local machine.<u></u><u></u><=
/span></font></p>

<p class=3D"MsoNormal"><font color=3D"navy" face=3D"Arial" size=3D"2"><span=
 style=3D"font-size: 10pt; font-family: Arial; color: navy;"><u></u>=A0<u><=
/u></span></font></p>

<div>

<div class=3D"MsoNormal" style=3D"text-align: center;" align=3D"center"><fo=
nt face=3D"Times New Roman" size=3D"3"><span style=3D"font-size: 12pt;">

</span></font></div></div></div></div>
<div>=A0</div>
<div></div>
<div>
<table>
<tbody>
<tr>
<td>
<p><font color=3D"#336699" face=3D"Arial" size=3D"2"><b>Patrick Burghardt</=
b></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, In=
c. </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 <a href=3D"tel=
:%28513%29%20763-3107" value=3D"+15137633107" target=3D"_blank">(513) 763-3=
107</a><font color=3D"#000000">=A0</font><span style=3D"font-family: ZapfDi=
ngbats; color: rgb(206, 142, 0); font-size: 6pt;"><font face=3D"Wingdings">=
n</font></span><font color=3D"#000000">=A0</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"><a href=3D=
"mailto:PBurghardt@advantageiq.com" target=3D"_blank">PBurghardt@advantagei=
q.com</a></font>=A0<span style=3D"font-family: ZapfDingbats; color: rgb(206=
, 142, 0); font-size: 6pt;"><font face=3D"Times New Roman"><span style=3D"f=
ont-family: ZapfDingbats; color: rgb(206, 142, 0); font-size: 6pt;"><font f=
ace=3D"Wingdings">n</font></span></font></span>=A0 </font><a href=3D"http:/=
/www.advantageiq.com/" target=3D"_blank"><font size=3D"2">www.advantageiq.c=
om</font></a><font size=3D"2"><span style=3D"font-family: Arial; color: rgb=
(68, 105, 125);">=A0</span><font color=3D"#ce8e00" face=3D"ZapfDingbats"><s=
pan style=3D"font-family: ZapfDingbats; color: rgb(206, 142, 0); font-size:=
 6pt;"><span style=3D"font-family: ZapfDingbats; color: rgb(206, 142, 0); f=
ont-size: 6pt;"><font face=3D"Wingdings"><font color=3D"#000000" face=3D"Ar=
ial">=A0</font><span style=3D"font-family: ZapfDingbats; color: rgb(206, 14=
2, 0); font-size: 6pt;"><font face=3D"Times New Roman"><span style=3D"font-=
family: ZapfDingbats; color: rgb(206, 142, 0); font-size: 6pt;"><font face=
=3D"Wingdings">n</font></span></font></span></font><font color=3D"#000000" =
face=3D"Arial">=A0 </font></span></span></font><font color=3D"#ce8e00"><spa=
n style=3D"font-family: Arial; color: rgb(206, 142, 0); font-size: 9pt;"><f=
ont color=3D"#336699"><a href=3D"tel:1-866-322-4547" value=3D"+18663224547"=
 target=3D"_blank">1-866-322-4547</a></font></span></font></font></font></p=
>
</font></td></tr>
<tr>
<td><font face=3D"Arial" size=3D"1"><font color=3D"#99cccc"><b><font color=
=3D"slategray" face=3D"Tahoma" size=3D"2"><i><br><font color=3D"#808080">Sm=
art Resource Management</font><br></i></font></b></font></font><font size=
=3D"1"><font face=3D"Arial"><span style=3D"font-family: Arial; font-size: 7=
.5pt;"><span style=3D"font-family: Arial; font-size: 7.5pt;"><font color=3D=
"#999999">CONFIDENTIALITY NOTICE: This email transmittal and any accompanyi=
ng attachments contains information from sender which is business sensitive=
, proprietary, confidential and may be legally privileged. The information =
is only for the use of the intended recipient(s). If you are NOT the intend=
ed recipient: 1. Do not read, copy, use or disclose this communication to o=
thers; 2. Immediately notify the sender of the error by return email or cal=
l <a href=3D"tel:509.329.7606" value=3D"+15093297606" target=3D"_blank">509=
.329.7606</a>; and 3. Delete the original file from your computer system an=
d destroy all copies of the transmittal in any form, including archived cop=
ies.</font></span><span style=3D"font-family: &#39;Times New Roman&#39;; fo=
nt-size: 7.5pt;"> <br>
</span></span></font></font><font size=3D"1"><div><div><div class=3D"MsoNor=
mal" style=3D"text-align: center;" align=3D"center"><font face=3D"Times New=
 Roman" size=3D"3"><span style=3D"font-size: 12pt;"><hr align=3D"center" si=
ze=3D"2" width=3D"100%">
</span></font></div></div></div></font><a></a></td></tr></tbody></table></d=
iv>
<p></p><div><div><div class=3D"MsoNormal" style=3D"text-align: center;" ali=
gn=3D"center"><font face=3D"Times New Roman" size=3D"3"><span style=3D"font=
-size: 12pt;">

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

<p class=3D"MsoNormal"><b><font face=3D"Tahoma" size=3D"2"><span style=3D"f=
ont-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font=
></b><font face=3D"Tahoma" size=3D"2"><span style=3D"font-size: 10pt; font-=
family: Tahoma;"> Lisa Crispin
[mailto:<a href=3D"mailto:lisa.crispin@gmail.com" target=3D"_blank">lisa.cr=
ispin@gmail.com</a>] <br>
<b><span style=3D"font-weight: bold;">Sent:</span></b> Monday, July 25, 201=
1 2:46
PM<br>
<b><span style=3D"font-weight: bold;">To:</span></b> <a href=3D"mailto:webt=
est@lists.canoo.com" target=3D"_blank">webtest@lists.canoo.com</a>;
Patrick Burghardt<br>
<b><span style=3D"font-weight: bold;">Subject:</span></b> Re: [Webtest] Whe=
re does
WebTest run?</span></font><u></u><u></u></p>

</div><div><div></div><div class=3D"h5">

<p class=3D"MsoNormal"><font face=3D"Times New Roman" size=3D"3"><span styl=
e=3D"font-size: 12pt;"><u></u>=A0<u></u></span></font></p>

<p class=3D"MsoNormal" style=3D"margin-bottom: 12pt;"><font face=3D"Times N=
ew Roman" size=3D"3"><span style=3D"font-size: 12pt;">We use variables for
hostname and port in the config.xml file, and pass those in as -D parameter=
s
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<u></u><u></u>chester<u>=
</u><u></u>=A0 -Dport=3D80
-DresultsPath=3D/Users/lcrispin/canoo/logs/chester_results
-DcanooTestToRun=3D$1.xml run-one-cano<br>
<br>
Here&#39;s my config.xml:<br>
&lt;config <br>
=A0=A0=A0 host=3D&quot;${hostname}&quot;<br>
=A0=A0=A0 browser=3D&quot;IE7&quot;<br>
=A0=A0=A0 protocol=3D&quot;http&quot;<br>
=A0=A0=A0 port=3D&quot;${port}&quot;<br>
=A0=A0=A0 basepath=3D&quot;/&quot;<br>
=A0=A0=A0 resultpath=3D&quot;${resultsPath}&quot;<br>
=A0=A0=A0 resultfile=3D&quot;result.xml&quot;<br>
=A0=A0=A0 summary=3D&quot;true&quot;<br>
=A0=A0=A0 showhtmlparseroutput=3D&quot;false&quot;<br>
=A0=A0=A0 saveresponse=3D&quot;true&quot;<br>
=A0=A0=A0 haltonerror=3D&quot;false&quot;<br>
=A0=A0=A0 haltonfailure=3D&quot;false&quot;<br>
=A0=A0=A0 easyajax=3D&quot;true&quot; &gt;<br>
=A0=A0=A0 &lt;option name=3D&quot;ThrowExceptionOnScriptError&quot; value=
=3D&quot;true&quot;/&gt;<br>
&lt;/config&gt;<br>
<br>
Here&#39;s the ant target for that in the build.xml:<br>
=A0=A0=A0=A0=A0=A0=A0=A0 &lt;!-- the canoo tests are
run using wt.full found in webtest.xml residing in the canoo home directory=
<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0
webtest.xml is included at the top of build.xml --&gt;<br>
=A0=A0=A0 &lt;target name=3D&quot;run-one-canoo&quot;
depends=3D&quot;init&quot; description=3D&quot;Runs specified canoo test (r=
equires
running application).&quot;&gt;<br>
=A0=A0=A0=A0=A0=A0=A0 &lt;property
name=3D&quot;wt.testInWork&quot;
value=3D&quot;${test.webtest.scripts.dir}/${canooTestToRun}&quot;/&gt;<br>
=A0=A0=A0=A0=A0=A0=A0 &lt;echo message=3D&quot;wt.full in
${webtesthome}&quot;/&gt;<br>
=A0=A0=A0=A0=A0=A0=A0 &lt;antcall
target=3D&quot;wt.full&quot; /&gt;<br>
=A0=A0=A0 &lt;/target&gt;<br>
<br>
Does that help? In our Jenkins build, we pass parameters via the Jenkins
config.<br>
-- Lisa<u></u><u></u></span></font></p>

<div>

<p class=3D"MsoNormal"><font face=3D"Times New Roman" size=3D"3"><span styl=
e=3D"font-size: 12pt;">On Mon, Jul 25, 2011 at 12:28 PM, Patrick Burghardt =
&lt;<a href=3D"mailto:PBurghardt@advantageiq.com" target=3D"_blank">PBurgha=
rdt@advantageiq.com</a>&gt;
wrote:<u></u><u></u></span></font></p>

<div link=3D"blue" vlink=3D"purple">

<div>

<p class=3D"MsoNormal"><font face=3D"Arial" size=3D"2"><span style=3D"font-=
size: 10pt; font-family: Arial;">I have
WebTest running on my local computer.=A0 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.=A0 I test this by going to a website that tells me what my IP addres=
s
is.=A0 I can specify webtest.home to be on the server, but I still show my
local IP.=A0 </span></font><u></u><u></u></p>

<p class=3D"MsoNormal"><font face=3D"Arial" size=3D"2"><span style=3D"font-=
size: 10pt; font-family: Arial;">=A0</span></font><u></u><u></u></p>

<p class=3D"MsoNormal"><font face=3D"Arial" size=3D"2"><span style=3D"font-=
size: 10pt; font-family: Arial;">Maybe my
question is most simply stated: What determines which environment I am
simulating?</span></font><u></u><u></u></p>

</div>

</div>

</div>

<p class=3D"MsoNormal" style=3D"margin-bottom: 12pt;"><font face=3D"Times N=
ew Roman" size=3D"3"><span style=3D"font-size: 12pt;"><br>
<br clear=3D"all">
<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&#39;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://entagg=
le.com/lisacrispin</a><u></u><u></u></span></font></p>

</div></div></div>

</div>
</blockquote></div><br><br clear=3D"all"><br>-- <br>Lisa Crispin<br>Co-auth=
or with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Ag=
ile Teams_ (Addison-Wesley 2009)<br>Contributor to _Beautiful Testing_ (O&#=
39;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/lisacrisp=
in" target=3D"_blank">http://entaggle.com/lisacrispin</a><br><br>

--0023545bcf2489879304a8e9d625--