[Webtest] Where does WebTest run?

Tim Pezarro Tim Pezarro" <Tim_Pezarro@pmc-sierra.com
Mon, 25 Jul 2011 13:08:21 -0700


Partick,

You can also use a fully qualified domain name in the invoke step.

For example:
<invoke        url=3D"http://www.yahoo.com" />

Cheers,

Tim Pezarro
Manager, Web Services
Corporate Marketing
tim_pezarro@pmc-sierra.com
Phone: +1-604-415-6044
Cell: +1-604-762-1000
Fax: +1-604-415-6602
PMC-Sierra, Inc.
8555 Baxter Place
Burnaby, BC, Canada
V5A 4V7



-----Original Message-----
From: webtest-admin@lists.canoo.com on behalf of Lisa Crispin
Sent: Mon 7/25/2011 12:29 PM
To: Patrick Burghardt
Cc: webtest@lists.canoo.com
Subject: Re: [Webtest] Where does WebTest run?
=20
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.

	=20

	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.

	=20

		=20
	Patrick Burghardt

	=09
	Software Engineer II=20

	=09
	Advantage IQ, Inc.=20

	=09
	D (513) 763-3107 <tel:%28513%29%20763-3107>  n F=20

	=09
	PBurghardt@advantageiq.com n  www.advantageiq.com =
<http://www.advantageiq.com/>   n  1-866-322-4547

	=09
=09
	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 intended 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.=20
=09
	________________________________

		=09

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

	=20

	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
=09
	Here's my config.xml:
	<config=20
	    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>
=09
	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>
=09
	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. =20

	=20

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

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




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