[Http-webtest-general] Using Click and Hooks
Brought to you by:
m_ilya,
richardanderson
From: William M. <wi...@kn...> - 2002-07-31 02:11:10
|
Greetings, Well, I've discovered the wonders of the click_button test parameter lately. That's a nice feature. A question: is it possible to tell HTTP::WebTest which form to use when clicking the button. I have a page with several forms that have a button with the same name. I can work around it but was curious. I have also begun to use the on_reponse hook to grab dynamic data from the tests. I saw in the Cookbook under the "User-Defined Tests" section an example that reads from the database. The example uses a dbh in $Test::dbh. However, I didn't see how this value ever got set. Can someone provide some details? Do I set it up in the webtest script or in the perl script I use to begin the tests? Thanks, William -- Lead Developer Knowmad Services Inc. || Internet Applications & Database Integration http://www.knowmad.com |