Re: [Http-webtest-general] trying to test button
Brought to you by:
m_ilya,
richardanderson
From: Raghavendra H. <rag...@te...> - 2004-06-02 04:42:32
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> <pre>submit() performs either GET or POST method on the formhandler, You can directly call the webtest with proper method. My webpage also uses the clickable images, but i am able to use as below. $webtest->run_tests( { test_name =>'Logggin in ..', url => $URL."goform/formValidate", method => GET, params => [ username => "$username", password => "$password" ] }, { terse => 'failed_only', ignore_case => 'yes', text_forbid => [ 'Premature end of script headers', 'Error processing directive' ] } ); Thanks Raghavendra </pre> <br> David McBride wrote:<br> <blockquote type="cite" cite="midBCE29097.A7D8%25d...@la..."> <title>Re: [Http-webtest-general] trying to test button</title> <font face="Verdana"><span style="font-size: 12px;">Thanks for replying.<br> <br> The parameters won’t be processed if the submit() function doesn’t run and the submit() function won’t operate unless the image is clicked. <br> <br> So, I’m still stuck with trying to click the image. <br> <br> - David<br> <br> on 6/1/04 7:01 PM, Srdjan at <a class="moz-txt-link-abbreviated" href="mailto:sr...@ca...">sr...@ca...</a> wrote:<br> <br> </span></font> <blockquote><font face="Monaco"><span style="font-size: 14px;"><tt>-----BEGIN PGP SIGNED MESSAGE-----<br> Hash: SHA1<br> <br> That's not button at all - just a clickable image. Considering that clicking the<br> image does nothing but submit, you don't need to use ::Click methods at all -<br> just a plain POST request with params.<br> <br> Srdjan<br> <br> David McBride wrote:<br> | Greetings,<br> |<br> |<br> |<br> | I’m new to WebTest and I’ve been playing with it for a couple of days<br> | with some success. I’ve run into a problem, though. I have a login<br> | form to which I want to submit data (i.e., “user_id”, “password”). The<br> | form begins as follows:<br> |<br> |<br> |<br> | <form name="loginForm" id="loginForm" method="POST"><br> |<br> | <input type="hidden" name="form" value="do_log_in"><br> |<br> |<br> |<br> |<br> |<br> | The form has a button generated as follows:<br> |<br> |<br> |<br> | <tr><br> |<br> | <td colspan="2" align="right"><br> |<br> | <img src="../images/btn_log_in.gif"<br> | style="cursor:pointer;cursor:hand" onclick="submit()");<br> |<br> | </td><br> |<br> | </tr><br> |<br> |<br> |<br> | I’ve been trying to use the ::Click methods to operate the button<br> | without success. Can someone tell me what I need to do to operate the<br> | button? Thanks.<br> |<br> |<br> |<br> | v/r<br> |<br> |<br> |<br> | - David<br> |<br> |<br> |<br> -----BEGIN PGP SIGNATURE-----<br> Version: GnuPG v1.2.4 (GNU/Linux)<br> Comment: Using GnuPG with Thunderbird - <a href="http://enigmail.mozdev.org">http://enigmail.mozdev.org</a><br> <br> iD8DBQFAvTTcZtcHxCitRpgRAhcxAJ4nJDfTGpjE6ADJBvIdRTAb1mnacwCgpLtC<br> HfLkk35G/3wiVKJXNFF0Fi8=<br> =60PM<br> -----END PGP SIGNATURE-----<br> <br> <br> -------------------------------------------------------<br> This SF.Net email is sponsored by the new InstallShield X.<br> >From Windows to Linux, servers to mobile, InstallShield X is the one<br> installation-authoring solution that does it all. Learn more and<br> evaluate today! <a href="http://www.installshield.com/Dev2Dev/0504">http://www.installshield.com/Dev2Dev/0504</a><br> _______________________________________________<br> Http-webtest-general mailing list<br> <a class="moz-txt-link-abbreviated" href="mailto:Htt...@li...">Htt...@li...</a><br> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/http-webtest-general">https://lists.sourceforge.net/lists/listinfo/http-webtest-general</a><br> <br> </tt></span></font></blockquote> <font face="Monaco"><span style="font-size: 14px;"><tt><br> </tt></span></font> </blockquote> <br> <pre class="moz-signature" cols="72">-- Raghavendra Hegde Teneoris Networks, Bangalore </pre> </body> </html> |