[Webtest] Data driven Test

Jeannie Graham webtest@lists.canoo.com
Tue, 8 Jun 2004 10:18:00 -0700


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.

------_=_NextPart_000_01C44D7C.8C757D50
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C44D7C.8C757D50"


------_=_NextPart_001_01C44D7C.8C757D50
Content-Type: text/plain;
	charset="iso-8859-1"

Hello there, 
 
Basically you just make a properties file (see smoketest.prop) and then you
set that up in your script (see first snippet below).   Then you can call a
property by name "policy.number.auto" (see below) in the script for it's
value:
 
<property file="C:\canootests\smoketest_data.props}"/>
 
<setinputfield
  stepid="Enter Policy number"
  name="policyNumber"
  value="${policy.number.auto}"/>
 

-----Original Message-----
From: Devang Joshi [mailto:devang.joshi@patni.com]
Sent: Sunday, June 06, 2004 9:27 PM
To: webtest@gate2.canoo.com
Subject: [Webtest] Data driven Test


Hi,
    I would like to know that How data driven test is possible using Canoo
WebTest tool. 
If possible then explain it with some proper example.
 
Thanks,
Devang
 


------_=_NextPart_001_01C44D7C.8C757D50
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 5.50.4923.2500" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=296371017-08062004><FONT face=Arial color=#0000ff size=2>Hello 
there, </FONT></SPAN></DIV>
<DIV><SPAN class=296371017-08062004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=296371017-08062004><FONT face=Arial color=#0000ff 
size=2>Basically you just make a properties file (see smoketest.prop) and then 
you set that up in your script (see first snippet below).&nbsp;&nbsp; Then you 
can call a property by name "policy.number.auto" (see below) in the script for 
it's value:</FONT></SPAN></DIV>
<DIV><SPAN class=296371017-08062004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=296371017-08062004><FONT face=Arial color=#0000ff 
size=2>&lt;property 
file="C:\canootests\smoketest_data.props}"/&gt;</FONT></SPAN></DIV>
<DIV><SPAN class=296371017-08062004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=296371017-08062004><FONT face=Arial color=#0000ff 
size=2>&lt;setinputfield<BR>&nbsp;&nbsp;stepid="Enter Policy 
number"<BR>&nbsp;&nbsp;name="policyNumber"<BR>&nbsp;&nbsp;value="${policy.number.auto}"/&gt;</FONT></SPAN></DIV>
<DIV><SPAN class=296371017-08062004><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Devang Joshi 
  [mailto:devang.joshi@patni.com]<BR><B>Sent:</B> Sunday, June 06, 2004 9:27 
  PM<BR><B>To:</B> webtest@gate2.canoo.com<BR><B>Subject:</B> [Webtest] Data 
  driven Test<BR><BR></FONT></DIV>
  <DIV><SPAN class=727502404-07062004><FONT face=Arial 
  size=2>Hi,</FONT></SPAN></DIV>
  <DIV><SPAN class=727502404-07062004><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; 
  I would like to know that How data driven test is possible using Canoo WebTest 
  tool. </FONT></SPAN></DIV>
  <DIV><SPAN class=727502404-07062004><FONT face=Arial size=2>If possible then 
  explain it with some proper example.</FONT></SPAN></DIV>
  <DIV><SPAN class=727502404-07062004><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=727502404-07062004><FONT face=Arial 
  size=2>Thanks,</FONT></SPAN></DIV>
  <DIV><SPAN class=727502404-07062004><FONT face=Arial 
  size=2>Devang</FONT></SPAN></DIV>
  <DIV>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C44D7C.8C757D50--

------_=_NextPart_000_01C44D7C.8C757D50
Content-Type: application/octet-stream;
	name="smoketest_data.props"
Content-Disposition: attachment;
	filename="smoketest_data.props"

# File set-up
webtest.home=C:\WEBTESTHOME
canoo.tests=D:\canootest


# The login props
login.prodcode=000000
login.user=qatest
login.password=goober

# The View Policy Auto properties
policy.number.auto=0703048132
insured.name.auto=MARION F SHIRK

# The View Policy Property properties
policy.number.prop=0703048132
insured.name.prop=MARION F SHIRK

# The Producer Tools Customer properties
rcc.fname=Canoo
rcc.lname=Rcc
rcc.address=123 testing
rcc.city=Georgia
rcc.state=GA
rcc.zip=30019
rcc.phone=619-223-0505
rcc.policynum=test

# The Producer Tools Property properties
prop.yearblt=1980
prop.sqfeet=2000
prop.hstyle=3
prop.ressize=2
prop.roof=Steel
prop.numfullbath=2
prop.numhalfbath=2
prop.slab=25
prop.crawl=25
prop.pier=25
prop.basement=25
prop.extwalls=Vinyl
prop.hvac=C
prop.garage=A1
prop.numgarage=1
prop.numporch=1
prop.porch=Enclosed
prop.sqftporch=10
prop.numdeck=1
prop.deck=Redwood
prop.sqftdeck=20

prop.numbalcony=1
prop.sqftbalcony=20
prop.detached=Y
prop.basetype=2
prop.finishtype=1


# Endorsement properties
policy.product=AUTO
policy.state=CA
policy.company=0071
policy.fname=viewtest
policy.lname=auto
policy.phone=619-221-5454
policy.endocat=CD
#change.driver=yes




##### may need later #####
# The vehicle info
carX1.modelyear=2002
carX1.make=Acura
carX1.modelinfo=RSX
carX1.usage=W
carX1.amiles=10001
carX1.airbag=S
carX1.antitheft=O
carX1.abs=T
carX1.detail=231

# The Driver1 info
driverX1.dobmonth=12
driverX1.dobday=10
driverX1.dobyear=1967
driverX1.sex=F
driverX1.marital=S
driverX1.licusyrs=19
driverX1.violations=0

# The Driver2 info
driverX2.dobmonth=10
driverX2.dobday=20
driverX2.dobyear=1970
driverX2.sex=M
driverX2.marital=S
driverX2.licusyrs=10
driverX2.violations=0

# The Violations info
driverX1.violX1.cat=C
driverX1.violX1.occmonth=12
driverX1.violX1.occday=20
driverX1.violX1.occyear=2000
driverX1.violX1.convicmonth=12
driverX1.violX1.convicday=20
driverX1.violX1.convicyear=2000
driverX1.violX1.type=581
driverX1.violX2.cat=A
driverX1.violX2.occmonth=10
driverX1.violX2.occday=10
driverX1.violX2.occyear=1999
driverX1.violX2.convicmonth=12
driverX1.violX2.convicday=15
driverX1.violX2.convicyear=1999
driverX1.violX2.type=583

# The Limits info
limit.bipd=15000/30000/5000
limit.umbi=15000/30000
limit.umpd=No Coverage
limit.medpay=No Coverage
limit.towrent=0
limit.comp=500
limit.coll=500

# The Rate info
driverX1.licnum=c1993936
driverX1.occ=Clerical
carX1.vin=11111111111111111
carX1.purchase.month=04
carX1.purchase.day=01
carX1.purchase.year=2003

# The vehicle 2 info
policy.carX2.modelyear=2002
policy.carX2.make=Acura
policy.carX2.modelinfo=3.2CL
policy.carX2.usage=W
policy.carX2.amiles=10001
policy.carX2.airbag=S
policy.carX2.antitheft=A
policy.carX2.abs=F







------_=_NextPart_000_01C44D7C.8C757D50--