I'll try to drag out the complete example from this page:

http://webtest.canoo.com/webtest/manual/sqlunit.html

It is the one with the "${some.dir}/${some.file}"
references but if I can find the original project
I can give you all the values. The main thing to
realize is that you are using sqlunit as per its
normal usage pattern (described by its doco) but
you need to change the log format to be canoo
and point the logfile to the one which webtest
is currently sending results to.

These days we tend to write most of our WebTest
tests using Groovy and use Groovy's database facilities
for db access - though I can see the attraction
of the declarative XML in some cases too.

Cheers, Paul.
P.S. It isn't on my current laptop, so I will need
to hunt around on the work server when I get a
chance, i.e. might take a day or two. Alternatively,
ask some more questions about the example in
the doco and I might be able to point you in the
right direction without the complete project.




Thomas Klein wrote:
Hi all,

I'm struggeling to get sqlunit "integrated" with WebTest.

Although being a "seasoned" QA person with quite some portfolio on automation 
and testing frameworks and stuff, I am new to WebTest and completely new to Ant and 
sqlunit. I just need to understand how to make up the LINK between all the parts.

I went through the samples on both sqlunit and webtest websites (not to mention 
the mailman list and google results) but still fail to understand...:
- which files are required with sqlunit (not the software install but rather 
for my tests)
- where must I place which file and what do they contain?
  (dtd, xml, properties, configs, sql statements,...)

Or, to tell a long story short:
Is there some sample project available that does a simple
- connection to a db
- execute sql statements

...and which has "fully-qualified" references instead of 
"${some.dir}/${some.file}" ? ;)

TIA for any pointers, cheers,
Thomas
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest


_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to