[Webtest] Inserting SQL queries

webtest@lists.canoo.com webtest@lists.canoo.com
Tue, 21 Jan 2003 10:47:08 -0500


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_001_01C2C164.5AF2FF00
Content-Type: text/plain;
	charset="iso-8859-1"

A couple of posts have gone around on the Maven and Webtest lists about
mixing SQL queries and WebTest.  And pointed out has been my favorite tool,
DBUnit, to set up data instead of raw SQL.

I will attempt to put together a tutorial demonstrating this functionality
in the next day or too.  I use it extensively to test my ASP websites!

Eric Pugh

-----Original Message-----
From: Aatish Arora [mailto:a_aatish@yahoo.com]
Sent: Tuesday, January 21, 2003 10:38 AM
To: webtest@lists.canoo.com
Subject: RE: [Webtest] Inserting SQL queries


Thanks Mittie!

This is getting Interesting. Ill check it up :)

regards,
Aatish Arora

--- Dierk Koenig <dierk.koenig@canoo.com> wrote:
> Hi Aatish,
> 
> some WebTest users use dbUnit in addition to
> WebTest. 
> You may want to search the archive of this
> mailinglist to that end.
> 
> For mixing in db queries:
> 
> 1) you can try to keep your TestSpecs as short as
> possible
> (this is recommended anyway) and do your db-calls
> beforen and 
> after it.
> 
> 2) if you need to mix your queries in between the
> steps,
> a small "db-servlet" (or JSP/ASP/..) may help that
> you can
> drive through WebTest an executes the query on your
> behalf.
> 
> cheers
> Mittie
> 
> > -----Original Message-----
> > From: webtest-admin@lists.canoo.com
> > [mailto:webtest-admin@lists.canoo.com]On Behalf Of
> Aatish Arora
> > Sent: Dienstag, 21. Januar 2003 6:29
> > To: webtest@lists.canoo.com
> > Subject: [Webtest] Inserting SQL queries
> > 
> > 
> > Hi,
> > 
> > I have downloaded the latest version of webtest
> and
> > installed it. From what I know till now - it is
> pretty
> > cool. But I have a small problem most of my tests
> > would look something like this:
> > 
> > 1) Invoke a page
> > 2) Perform a set of actions
> > 3) Check the database
> > 
> > One of our devlopers suggested using ANT scripts
> for
> > the SQL queries. But the problem lies in the fact
> that
> > there would be SQL queries before and after every
> > test. Is there a way I can manage this? or is
> there a
> > workaround?
> > 
> > TIA
> > 
> > Aatish
> > 
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> > http://mailplus.yahoo.com
> > _______________________________________________
> > WebTest mailing list
> > WebTest@lists.canoo.com
> > http://lists.canoo.com/mailman/listinfo/webtest
> > 
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest

------_=_NextPart_001_01C2C164.5AF2FF00
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2654.89">
<TITLE>RE: [Webtest] Inserting SQL queries</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>A couple of posts have gone around on the Maven and =
Webtest lists about mixing SQL queries and WebTest.&nbsp; And pointed =
out has been my favorite tool, DBUnit, to set up data instead of raw =
SQL.</FONT></P>

<P><FONT SIZE=3D2>I will attempt to put together a tutorial =
demonstrating this functionality in the next day or too.&nbsp; I use it =
extensively to test my ASP websites!</FONT></P>

<P><FONT SIZE=3D2>Eric Pugh</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Aatish Arora [<A =
HREF=3D"mailto:a_aatish@yahoo.com">mailto:a_aatish@yahoo.com</A>]</FONT>=

<BR><FONT SIZE=3D2>Sent: Tuesday, January 21, 2003 10:38 AM</FONT>
<BR><FONT SIZE=3D2>To: webtest@lists.canoo.com</FONT>
<BR><FONT SIZE=3D2>Subject: RE: [Webtest] Inserting SQL queries</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Thanks Mittie!</FONT>
</P>

<P><FONT SIZE=3D2>This is getting Interesting. Ill check it up =
:)</FONT>
</P>

<P><FONT SIZE=3D2>regards,</FONT>
<BR><FONT SIZE=3D2>Aatish Arora</FONT>
</P>

<P><FONT SIZE=3D2>--- Dierk Koenig &lt;dierk.koenig@canoo.com&gt; =
wrote:</FONT>
<BR><FONT SIZE=3D2>&gt; Hi Aatish,</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; some WebTest users use dbUnit in addition =
to</FONT>
<BR><FONT SIZE=3D2>&gt; WebTest. </FONT>
<BR><FONT SIZE=3D2>&gt; You may want to search the archive of =
this</FONT>
<BR><FONT SIZE=3D2>&gt; mailinglist to that end.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; For mixing in db queries:</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; 1) you can try to keep your TestSpecs as short =
as</FONT>
<BR><FONT SIZE=3D2>&gt; possible</FONT>
<BR><FONT SIZE=3D2>&gt; (this is recommended anyway) and do your =
db-calls</FONT>
<BR><FONT SIZE=3D2>&gt; beforen and </FONT>
<BR><FONT SIZE=3D2>&gt; after it.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; 2) if you need to mix your queries in between =
the</FONT>
<BR><FONT SIZE=3D2>&gt; steps,</FONT>
<BR><FONT SIZE=3D2>&gt; a small &quot;db-servlet&quot; (or JSP/ASP/..) =
may help that</FONT>
<BR><FONT SIZE=3D2>&gt; you can</FONT>
<BR><FONT SIZE=3D2>&gt; drive through WebTest an executes the query on =
your</FONT>
<BR><FONT SIZE=3D2>&gt; behalf.</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; cheers</FONT>
<BR><FONT SIZE=3D2>&gt; Mittie</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt; -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; From: webtest-admin@lists.canoo.com</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; [<A =
HREF=3D"mailto:webtest-admin@lists.canoo.com">mailto:webtest-admin@lists=
.canoo.com</A>]On Behalf Of</FONT>
<BR><FONT SIZE=3D2>&gt; Aatish Arora</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Sent: Dienstag, 21. Januar 2003 =
6:29</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; To: webtest@lists.canoo.com</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Subject: [Webtest] Inserting SQL =
queries</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Hi,</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt; I have downloaded the latest version of =
webtest</FONT>
<BR><FONT SIZE=3D2>&gt; and</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; installed it. From what I know till now - =
it is</FONT>
<BR><FONT SIZE=3D2>&gt; pretty</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; cool. But I have a small problem most of =
my tests</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; would look something like this:</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt; 1) Invoke a page</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; 2) Perform a set of actions</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; 3) Check the database</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt; One of our devlopers suggested using ANT =
scripts</FONT>
<BR><FONT SIZE=3D2>&gt; for</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; the SQL queries. But the problem lies in =
the fact</FONT>
<BR><FONT SIZE=3D2>&gt; that</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; there would be SQL queries before and =
after every</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; test. Is there a way I can manage this? or =
is</FONT>
<BR><FONT SIZE=3D2>&gt; there a</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; workaround?</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt; TIA</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Aatish</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; </FONT>
<BR><FONT SIZE=3D2>&gt; &gt; =
__________________________________________________</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Do you Yahoo!?</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; Yahoo! Mail Plus - Powerful. Affordable. =
Sign up</FONT>
<BR><FONT SIZE=3D2>&gt; now.</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; <A HREF=3D"http://mailplus.yahoo.com" =
TARGET=3D"_blank">http://mailplus.yahoo.com</A></FONT>
<BR><FONT SIZE=3D2>&gt; &gt; =
_______________________________________________</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; WebTest mailing list</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; WebTest@lists.canoo.com</FONT>
<BR><FONT SIZE=3D2>&gt; &gt; <A =
HREF=3D"http://lists.canoo.com/mailman/listinfo/webtest" =
TARGET=3D"_blank">http://lists.canoo.com/mailman/listinfo/webtest</A></F=
ONT>
<BR><FONT SIZE=3D2>&gt; &gt; </FONT>
<BR><FONT SIZE=3D2>&gt; =
_______________________________________________</FONT>
<BR><FONT SIZE=3D2>&gt; WebTest mailing list</FONT>
<BR><FONT SIZE=3D2>&gt; WebTest@lists.canoo.com</FONT>
<BR><FONT SIZE=3D2>&gt; <A =
HREF=3D"http://lists.canoo.com/mailman/listinfo/webtest" =
TARGET=3D"_blank">http://lists.canoo.com/mailman/listinfo/webtest</A></F=
ONT>
</P>
<BR>

<P><FONT =
SIZE=3D2>__________________________________________________</FONT>
<BR><FONT SIZE=3D2>Do you Yahoo!?</FONT>
<BR><FONT SIZE=3D2>Yahoo! Mail Plus - Powerful. Affordable. Sign up =
now.</FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://mailplus.yahoo.com" =
TARGET=3D"_blank">http://mailplus.yahoo.com</A></FONT>
<BR><FONT =
SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>WebTest mailing list</FONT>
<BR><FONT SIZE=3D2>WebTest@lists.canoo.com</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://lists.canoo.com/mailman/listinfo/webtest" =
TARGET=3D"_blank">http://lists.canoo.com/mailman/listinfo/webtest</A></F=
ONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C2C164.5AF2FF00--