[Http-webtest-general] Re: Using Click and Hooks
Brought to you by:
m_ilya,
richardanderson
From: Ilya M. <il...@ma...> - 2002-07-31 08:21:39
|
>>>>> On Tue, 30 Jul 2002 22:12:59 -0400, "William McKee" <wi...@kn...> said: MC> Greetings, Hi William, MC> Well, I've discovered the wonders of the click_button test MC> parameter lately. That's a nice feature. A question: is it MC> possible to tell HTTP::WebTest which form to use when clicking the MC> button. I have a page with several forms that have a button with MC> the same name. I can work around it but was curious. It is impossible right now. On the other hand it is not very hard to add ability to tell HTTP::WebTest which form to use. I just not sure about interface. How do you want to specify form to use? Form number on page? Form name (given that you set it with name attribute)? MC> I have also begun to use the on_reponse hook to grab dynamic data MC> from the tests. I saw in the Cookbook under the "User-Defined MC> Tests" section an example that reads from the database. The MC> example uses a dbh in $Test::dbh. However, I didn't see how this MC> value ever got set. Can someone provide some details? Do I set it MC> up in the webtest script or in the perl script I use to begin the MC> tests? You can either set it in the perl script or in on_request/on_response hooks in first test block. I have plans to add additional hooks to be run at the begining and at the end of test sequence. -- Ilya Martynov (http://martynov.org/) |