[Http-webtest-general] Re: Using Click and Hooks
Brought to you by:
m_ilya,
richardanderson
From: William M. <wi...@kn...> - 2002-07-31 15:10:20
|
On 31 Jul 2002 at 18:24, Ilya Martynov wrote: > I'm not sure yet. Maybe another test parameter like form_name. Oh, I thought you meant it is possible to do this now. You meant it's easy to add the ability. Yes, a parameter like form_name seems fine. > There is not Test object. It just a variable in namespace of Test > package. If you run HTTP::WebTest from script you could initialize it > with > > $Test::dbh = DBI->connect(...); > > Actually you can use any namespace for variables you pass from Perl > script to wtscript. Ok, I see. I'll try that and let you know how it works. > P.S. BTW if you find yourself writing too much Perl code in wtscript > files you should consider writting you own plugins and moving your > Perl code into them. It is not very hard - look in sources of any of > default plugins in lib/HTTP/WebTest/Plugin. It sounds like the interface to DBI is a potential candidate for a plugin! I'm not sure how it would be initialized in order to get the connection string, though. Thanks, William -- Lead Developer Knowmad Services Inc. || Internet Applications & Database Integration http://www.knowmad.com |