http-webtest-general Mailing List for HTTP-WebTest
Brought to you by:
m_ilya,
richardanderson
You can subscribe to this list here.
2002 |
Jan
(1) |
Feb
(6) |
Mar
(2) |
Apr
(3) |
May
(6) |
Jun
(10) |
Jul
(24) |
Aug
(19) |
Sep
(8) |
Oct
(33) |
Nov
(11) |
Dec
(5) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(20) |
Feb
(4) |
Mar
(28) |
Apr
(18) |
May
(6) |
Jun
|
Jul
(23) |
Aug
(5) |
Sep
(11) |
Oct
(29) |
Nov
(24) |
Dec
(10) |
2004 |
Jan
(2) |
Feb
(4) |
Mar
(40) |
Apr
(4) |
May
(8) |
Jun
(13) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
(1) |
2005 |
Jan
(1) |
Feb
(7) |
Mar
|
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2006 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <Dan...@ub...> - 2006-02-16 17:22:48
|
Hi -- I've been running webtest 2.04 against several of my websites. Once in a while I'll get response times of -0.00 or even -0.08 (which causes the test to fail). Is this a known bug with this version addressed in some later version? Is there another likely cause for this inaccurate result? Thanks! ---danny ****************************************************************************** This communication (including any attachments) may contain privileged or confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this communication and/or shred the materials and any attachments and are hereby notified that any disclosure, copying, or distribution of this communication, or the taking of any action based on it, is strictly prohibited. Thank you. |
From: William M. <wi...@kn...> - 2005-06-02 17:30:13
|
On Thu, Jun 02, 2005 at 01:17:57PM -0400, Vance A. Arocho wrote: > Is there support for HTTPS tests ? Yes. According to the POD: If you want to test https:// web sites you may have to install additional modules to enable SSL support in LWP. In short you may have to install Crypt::SSLeay module. For details see README.SSL file in LWP distro. William -- Knowmad Services Inc. http://www.knowmad.com |
From: Vance A. A. <va...@he...> - 2005-06-02 17:18:09
|
Is there support for HTTPS tests ? |
From: Hugo S. H. <hsa...@ni...> - 2005-05-24 22:13:54
|
Hi. Working with the "Click" plugin, i found a little bug. When my html has a <base ...> defined in the head section, the plugin believes that this defines a href attribute for the entire page. But, the <base> tag also can define only a "target" attribute (for use in frames). So... the tests failed when the page only have a tag like <base target="frameB"> assigning an empty base url to the clicks. I resolved the bug adding an extra check in Click.pm, line 139, from: $base = $token->[1]{href}; to: $base = $token->[1]{href} if $token->[1]{href}; Best regards, -- Hugo Salgado H. <hsa...@ni...> Webmaster / Ingeniero de Desarrollo NIC Chile - Universidad de Chile http://www.nic.cl |
From: I.K. <x1...@us...> - 2005-04-21 14:08:41
|
People: This is an excellent tool, but it has a bad habit of dying in a middle of a test sequence if a bad URI is encountered. It happens on line 567 of API.pm, I'm looking at r.1.29 of it. In my book, it's a bad thing - I'd rather have it to fail the test and continue with the program. Enclosed is the little module that does just that. To use it, you have to add it into the list, something like this: my %globalParams = ( relative_urls => "yes", plugins => [ "HTTP::WebTest::Plugin::Click", "MuteBadURI", ], timeout => $timeOut, default_report => "no", # etc.... ); my $webtest = new HTTP::WebTest; $webtest->run_tests(\@tests, \%globalParams); I think it's worth considering for the maintainers of the code to include such behavior as a run-time parameter on a more permanent basis. Thanks! Sincerely, Ivan K. -------------------- MuteBadURI.pm ------------------------------ # The problem is that HTTP::WebTest's API.pm module dies if an improper URI is passed along. This # happens quite often, especially if HTTP::WebTest::Plugin::Click module is used - when, for # example, no suitable URL or button is found in a result page to click on. The API's # run_test() method dies thus canceling the whole test sequence. # # This plug in fools API.pm by replacing it's bad URI marker with it's own and allowing all # subsequent tests in a chain to proceed and fail (that's a bad URI) peacefully. # package MuteBadURI; use strict; use URI; use base qw(HTTP::WebTest::Plugin); my $API_BAD_URI = "http://MISSING_HOSTNAME/"; my $MY_BAD_URI = "http://0.0.0.0/"; sub prepare_request { my $self = shift; if( $self->webtest->current_request and ($self->webtest->current_request->uri eq $API_BAD_URI) ) { $self->webtest->current_request->base_uri($MY_BAD_URI); } } 1; |
From: Joe <joe...@us...> - 2005-04-18 12:35:35
|
Hello List, While experimenting with very large http responses, I found out that I can easily limit the amount of data which the embedded LWP UserAgent will retrieve from the network. I added a global parameter: on_start = { my $wt = shift; $wt->user_agent->max_size(1024); } This works just fine, except that I get an error message from StatusTest: Expected '200' and got: 206 Partial Content I see tried two possoble directions to solve this issue 1. Override the behaviour of StausTest to consider a result code of 206 as "OK" 2. Ignore the status test alltogether. I got stuck in either directions. I have one additional limiting condition, in that we have WebTest installed on a production box, where changing anything in the Perl config (and thus installd modules) is rather out of the question. Cheers, Joe. |
From: Bob K. <bko...@pl...> - 2005-02-04 15:41:55
|
Thanks Joe, Thanks to your comments I have figured out what I was doing wrong. If I declared the variable like $MY::$min_bytes all works correctly. Thank you everyone for your assistance. PS... That was one funny example you give at the end.... Made me laugh :) Bob Koertge On Fri, 2005-02-04 at 10:19 +0100, Joe wrote: > On Thu, 3 Feb 2005, Bob Koertge wrote: > > > I have just tried this and it does not work. The test is just skipped. > > > [...] > > <test> > > <code name="min_bytes">return $min_bytes</code> > > <param name="max_bytes">99000</param> > [...] > > Apparently the scalar value $min_bytes is not initialized at this point. > I did a trivial test which appears to work (but is not likely what you > want): > > <code name="min_bytes">$bytes = 2800; return $bytes</code> > > So, it looks like you need to set $min_bytes somewhere in a persistent > way. I don't know how to achieve this (a quick test with wt script > didn't work out for me either). > > However, a possible solution would be to dynamically derive a value for > the minimum content size within your code section. A rather useless > example would be > > <code name="min_bytes">return 1 + (time() % 3600)</code> > > This actually checks if the content size in bytes is larger than the > number of seconds into the current hour (pretty useless, isn't it???). > > Cheers, > > Joe. > > > |
From: Joe <joe...@us...> - 2005-02-04 09:20:19
|
On Thu, 3 Feb 2005, Bob Koertge wrote: > I have just tried this and it does not work. The test is just skipped. > [...] > <test> > <code name="min_bytes">return $min_bytes</code> > <param name="max_bytes">99000</param> [...] Apparently the scalar value $min_bytes is not initialized at this point. I did a trivial test which appears to work (but is not likely what you want): <code name="min_bytes">$bytes = 2800; return $bytes</code> So, it looks like you need to set $min_bytes somewhere in a persistent way. I don't know how to achieve this (a quick test with wt script didn't work out for me either). However, a possible solution would be to dynamically derive a value for the minimum content size within your code section. A rather useless example would be <code name="min_bytes">return 1 + (time() % 3600)</code> This actually checks if the content size in bytes is larger than the number of seconds into the current hour (pretty useless, isn't it???). Cheers, Joe. |
From: Bob K. <bko...@pl...> - 2005-02-03 20:12:14
|
I have just tried this and it does not work. The test is just skipped. <WebTest version="1.0"> <params> <param name="ignore_case">yes</param> <list name="mail_addresses"> <param>bko...@pl...</param> </list> <param name="mail_server">X.X.X.X</param> <param name="mail">all</param> </params> <test> <code name="min_bytes">return $min_bytes</code> <param name="max_bytes">99000</param> <param name="url">http://www.anysite.com</param> <param name="test_name">AWEB Login Page</param> <list name="text_require"> <param><![CDATA[Login]]></param> <param><![CDATA[Password]]></param> </list> </test> </WebTest>Failed Succeeded Test Name 0 4 AWEB Login Page Test Name: AWEB Login Page URL: http://www.anysite.com STATUS CODE CHECK Expected '200' and got: 200 OK SUCCEED REQUIRED TEXT Login SUCCEED Password SUCCEED CONTENT SIZE CHECK Number of returned bytes ( 36308 ) is < or = 99000 ? SUCCEED Total web tests failed: 0 succeeded: 4 Thanks for trying to assist me Bob Koertge On Thu, 2005-02-03 at 20:25 +0100, Johannes la Poutre wrote: > Op 3-feb-05 om 16:01 heeft Bob Koertge het volgende geschreven: > > > I have a question maybe someone could help me with. > > > > I am using XMLParser in perl. What I would like to know is, is there > > a way to specify a variable in the xml file that perl will expand. > > > > ie > > <test> > > <param name="min_bytes">$min_bytes</param> > > </test> > > > Bob, > > The following should work: > > <test> > <code name="min_bytes">return $min_bytes</code> > </test> > > This works because of the contents of a "code" element result in an > (anonmymous) subroutine, rather than a scalar value for a plain "param" > element. > (You should define the variable $min_bytes somewhere else in your > script). > > Hope this helps, otherwise please let me know! > > Cheers, > > Joe. |
From: Johannes la P. <joe...@us...> - 2005-02-03 19:25:39
|
Op 3-feb-05 om 16:01 heeft Bob Koertge het volgende geschreven: > I have a question maybe someone could help me with.=A0 > > I am using XMLParser in perl.=A0 What I would like to know is, is = there=20 > a way to specify a variable in the xml file that perl will expand. > > ie > =A0=A0=A0 <test> > =A0=A0=A0=A0=A0=A0=A0 <param name=3D"min_bytes">$min_bytes</param> > =A0=A0=A0 </test> Bob, The following should work: =A0=A0=A0 <test> =A0=A0=A0=A0=A0=A0=A0 <code name=3D"min_bytes">return = $min_bytes</code> =A0=A0=A0 </test> This works because of the contents of a "code" element result in an=20 (anonmymous) subroutine, rather than a scalar value for a plain "param"=20= element. (You should define the variable $min_bytes somewhere else in your=20 script). Hope this helps, otherwise please let me know! Cheers, Joe.= |
From: William M. <wi...@kn...> - 2005-02-03 18:18:47
|
On Thu, Feb 03, 2005 at 12:37:13PM -0500, Bob Koertge wrote: > I am sorry I was a bit vague.. I am talking about the WebTest Plugin > XMLParser... it allow you to use XML instead of wt format. Ah, I see. I don't use that plugin so hopefully Ilya or someone can answer your question. William -- Knowmad Services Inc. http://www.knowmad.com |
From: Bob K. <bko...@pl...> - 2005-02-03 17:38:35
|
I am sorry I was a bit vague.. I am talking about the WebTest Plugin XMLParser... it allow you to use XML instead of wt format. On Thu, Feb 03, 2005 at 10:01:15AM -0500, Bob Koertge wrote: > I have a question maybe someone could help me with. Bob, It looks like you've written to the wrong list. This one is about the HTTP::WebTest package. If you're still looking for an answer, try PerlMonks[1]. William [1] http://www.perlmonks.org -- Knowmad Services Inc. http://www.knowmad.com I have a question maybe someone could help me with. I am using XMLParser in perl. What I would like to know is, is there a way to specify a variable in the xml file that perl will expand. ie <test> <param name="min_bytes">$min_bytes</param> </test> Thanks Bob Koertge bko...@pl... |
From: Bob K. <bko...@pl...> - 2005-02-03 15:02:32
|
I have a question maybe someone could help me with. I am using XMLParser in perl. What I would like to know is, is there a way to specify a variable in the xml file that perl will expand. ie <test> <param name="min_bytes">$min_bytes</param> </test> Thanks Bob Koertge bko...@pl... |
From: David M. <dmc...@la...> - 2005-01-11 02:20:00
|
Greetings, I'm attempting to test a site that uses http basic auth. I'm trying to use the "auth" test parameter for this. Unfortunately, the server keeps telling me that the user ID or password is invalid. Here is the relevant snip from my script. Note that the script runs as expected when I disable basic auth and remove the auth test parameter from the script. Any ideas? $webtest->run_tests( [ { test_name => 'navigate to add document for translation form', url => $base_url, method => 'get', params => ['form', 'display_add_doc', 'type', 'url'], text_require => [@translation_form_text_require, 'URL of the page to translate' ], text_forbid => [@translation_form_text_forbid] } ], { auth => [$userid, $password], default_report => $default_report } ); Thanks, in advance. - David |
From: Terry <td...@gm...> - 2004-12-08 21:43:56
|
Here is my test: show_html = yes plugins = ( ::Click ) test_name = login url = https://$URL/Logon_1.asp?NEXTPAGE=LOGIN method = post click_button = cmdSubmit params = ( txtUserName => 'username' txtPassword => 'password' ) end_test I am getting this: Test Name: login URL: https://$URL/Logon_1.asp?NEXTPAGE=LOGIN STATUS CODE CHECK Expected '200' and got: 500 Line too long (limit is 4096) FAIL PAGE CONTENT: Here is the HTML form: <form action="Logon_1.asp?NEXTPAGE=LOGIN" method="POST" id="form1" name="form1"> <font face="Verdana, Arial, Helvetica" size="2"> Please enter your <b>User Name</b> and <b>Password</b> to log on to the system.<br>Passwords are case sensitive. </font> </td> </tr> </table> <em></em> <br> <table border="0" cellpadding="0" cellspacing="0" width="90%" align="center"> <tr> <td align="RIGHT" width="50%"><b><font face="Verdana, Arial, Helvetica" size="2">User Name: </font></b></td> <td align="LEFT" width="50%"><input type="TEXT" size="22" name="txtUserName" value> </td> </tr> <tr> <td align="RIGHT" valign="TOP" width="50%"><b><font face="Verdana, Arial, Helvetica" size="2">Password: </font></b></td> <td align="LEFT" width="50%"><input type="PASSWORD" size="22" name="txtPassword"> </td> </tr> <tr> <td></td> </tr> </table> <br> <table border="0" cellpadding="0" cellspacing="0" width="90%" align="center"> <tr> <td align="center" colspan="2"><input type="SUBMIT" name="cmdSubmit" value="Login"></td> </tr> </table> </form> I have completed other basic tests and able to hit this site fine. I have done forms like this before but have never seen this. Thanks for any ideas! Terry |
From: Raghavendra G H. <rag...@te...> - 2004-11-17 16:00:44
|
Hi, I am facing a problem due to an incorrect mapping of few characters to HTML character set. I am sending a POST request with a parameter "course[]" set to "BEComps" I have done it in the following way. . . . $webtest->run_tests( [ { test_name =>"Posting the data..", url => $URL."search/search.php", method => POST, params => [ 'course[]'=>"BEComp", ] } . . . Now, When I have captured the data through ethereal (while the script is posting the data), I have found that the square brackets did not get mapped to HTML character set. i.e.. %5B abd %5D They were sent as it is. (Ethereal also was showing ...&course[]=BEComp&...) If I use the browser (Netscape/IE) to post the same data, these characters [] get mapped to those (%5B %5D) HTML characters-set properly. If any body has come across similar problem, please help me. OR If some one know which library file is responsible for this (for encoding to HTML character set), I would try to help my self. Thanks & Regards Raghavendra |
From: Castillo, D. <dca...@me...> - 2004-08-19 17:30:56
|
Tried to do the following example using a perl script: use HTTP::WebTest; my $webtest =3D new HTTP::WebTest; $webtest->run_tests( [ { test_name =3D> 'First page', url =3D> 'http://localwebserver/', text_require =3D> [ "Construction" ] } ], { proxies =3D> [ http =3D> 'http://username:password@localproxy/' ] } ); but got : Expected '200' and got: 501 Protocol scheme '' is not suppo FAIL Not sure how to set the proxy setting. I would appreciate any assistance given, because this seems to do what I need. Thanks. |
From: David M. <dmc...@la...> - 2004-06-28 21:59:38
|
I've been trying to use params and specify multipart/form-data, but it always gets output as application/x-www-form-urlencoded. I saw a reference to this problem(?) from Ilya in the archive: http://sourceforge.net/mailarchive/message.php?msg_id=8191433 Has this been confirmed as a bug? Is there a work-around? Is it possible to force the Content Type, regardless of whether a file upload is involved? Here's the relevant snip from my test: $webtest->run_tests( [ { . }, { test_name => 'translate text document from local file', terse => $terse, url => $base_url, method => 'post', params => ['form', 'do_add_doc', 'go', '', 'lang_pair', $lang_pair_string_short, 'encoding', 'utf8', 'quality', '7', 'priority', '1', 'translit', 'on', 'type', 'local_file', 'file', ['C:\WebTestFiles\inputara.txt', 'C:\WebTestFiles\inputara.txt'], 'mime_type', 'text/plain'], text_require => ['C:\WebTestFiles\inputara.txt' ] } ] ); I can see the file data and the parameters in the request, but the Content Type is always wrong and the response is not correct. This is true, even when I explicitly state the Content Type in the list for 'file'. I use syntax similar to the snip above for other forms that do not upload a file. These test work, even though the Content Type is output incorrectly. Any help is appreciated. v/r - David |
From: Ilya M. <il...@ip...> - 2004-06-23 09:02:41
|
>>>>> "DM" =3D=3D David McBride <dmc...@la...> writes: DM> Hello, DM> There are several examples in the documentation for using on_response i= n a DM> wtscript file, but I couldn=E2=80=99t find one for a perl script. =C2=A0 DM> I have a function called =E2=80=98get_doc_ids=E2=80=99 that I want to c= all.=C2=A0 I DM> tried setting it up as follows, but I got errors: DM> ...=C2=A0 DM> # Problem happens on the line below =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 DM> on_response =3D> { @jobs =3D get_doc_ids($webtest->current_response->co= ntent); }, Should be on_response =3D> sub { @jobs =3D get_doc_ids($webtest->current_response->co= ntent); }, This would create an anonymous sub which is being called later when tests are being run. DM> ... DM> Can anyone tell me the correct syntax to use for =E2=80=98on_response= =E2=80=99 in a perl DM> script (as opposed to a wtscript file).=C2=A0 Thanks very much (in adva= nce). --=20 Ilya Martynov, il...@ip... CTO IPonWEB (UK) Ltd Quality Perl Programming and Unix Support UK managed @ offshore prices - http://www.iponweb.net Personal website - http://martynov.org |
From: David M. <dmc...@la...> - 2004-06-23 00:32:41
|
Hello, =20 There are several examples in the documentation for using on_response in = a wtscript file, but I couldn't find one for a perl script. =20 =20 I have a function called 'get_doc_ids' that I want to call. I tried = setting it up as follows, but I got errors: =20 my @jobs; my $webtest =3D new HTTP::WebTest; $webtest->run_tests( [=20 { =20 test_name =3D> 'translate html document from the internet', terse =3D> $terse, url =3D> $base_url, method =3D> 'post', params =3D> ['form', 'do_add_doc', 'lang_pair', $lang_pair_string_short, 'encoding', 'Latin1', 'quality', '7', 'priority', '1', 'translit', 'on', 'type', 'url', 'url', $trans_job1], # Problem happens on the line below =20 on_response =3D> { @jobs =3D = get_doc_ids($webtest->current_response->content); }, text_require =3D> [$trans_job1 ] =20 }=20 ] ); =20 Can anyone tell me the correct syntax to use for 'on_response' in a perl script (as opposed to a wtscript file). Thanks very much (in advance). =20 - David =20 |
From: David M. <dmc...@la...> - 2004-06-21 20:39:42
|
Can anyone give me a suggestion for confirming the list of options for a pull-down menu using HTTP::WebTest? I want to confirm that the options available conform exactly to the list that I have (i.e., no more, no less). Display order is not important. Thanks, in advance. - David |
From: William M. <wi...@kn...> - 2004-06-15 15:22:24
|
Hi Alan, Sorry for the late reply--I'm catching up on my mailing lists. Have you found a solution to your login problem yet? I have no problem with cookies maintaining state when using HTTP::WebTest. Does your login script do a redirect by chance? Does it work ok with a normal browser? William -- Knowmad Services Inc. http://www.knowmad.com |
From: Alan R. <ar...@zo...> - 2004-06-08 02:31:15
|
Hi, =20 I'm trying to test a web application where different users have different permissions to view files. When I try to login as different users, it doesn't look like my login screen request sets the=20 cookies.=20 =20 Also, once the server has sent cookies, will later requests by the server to query client cookies be successful? In other words, are cookies persistent in the webtest client? =20 Do you see anything wrong here? =20 Perl code (with some url info changed): =20 return( { test_name =3D> "$user login", url =3D> 'http://test.com/query.cgi', params =3D> [ login =3D> $user, password =3D> $password, ShowLogIn =3D> 1, ShowLogIn =3D> 'Login' ], accept_cookies =3D> 'yes', show_cookies =3D> 'yes', send_cookies =3D> 'yes', text_require =3D> [ 'Query Page' ] } ); Test Name: test araetz%40test.com login URL: http://test.com/query.cgi?login=3Daraetz%2540test.com&password=3Dcd201cd&= Sho wLogIn=3D1&ShowLogIn=3DLogin =20 STATUS CODE CHECK Expected '200' and got: 200 OK SUCCEED REQUIRED TEXT Query Page FAIL =20 SENT COOKIE(S) *** none *** RECEIVED COOKIE(S) *** none *** =20 =20 Thanks!=20 =20 -Alan =20 |
From: David M. <dmc...@la...> - 2004-06-02 22:40:50
|
Can someone give me a hand with the correct method to post form-data? = I've looked at the documentation, but I'm still not clear whether it's even possible. =20 =20 Here's what the data looks like (captured from proxy): =20 =20 POST /lw/ara/lwcgi HTTP/1.0 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/msword, application/vnd.ms-excel, = application/vnd.ms-powerpoint, */* Referer: http://localhost/lw/ara/lwcgi Accept-Language: en-us Content-Type: multipart/form-data; boundary=3D---------------------------7d427815a0198 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322) Host: localhost Content-Length: 1052 Pragma: no-cache Cookie: sess=3Duid&admin:sid&836791235:adm&0:defq&7:defpri&1:qf&60:lp&ara-eng:e&C= P1256 :dt&1:du&1:tnw&0: Connection: keep-alive Browser reload detected... Posting 1052 bytes... -----------------------------7d427815a0198=20 Content-Disposition: form-data; name=3D"form"=20 =20 do_add_doc=20 -----------------------------7d427815a0198=20 Content-Disposition: form-data; name=3D"go"=20 =20 =20 -----------------------------7d427815a0198=20 Content-Disposition: form-data; name=3D"lang_pair"=20 =20 ara-eng=20 -----------------------------7d427815a0198=20 Content-Disposition: form-data; name=3D"encoding"=20 =20 CP1256=20 -----------------------------7d427815a0198=20 Content-Disposition: form-data; name=3D"quality"=20 =20 7=20 -----------------------------7d427815a0198=20 Content-Disposition: form-data; name=3D"priority"=20 =20 1=20 -----------------------------7d427815a0198=20 Content-Disposition: form-data; name=3D"translit"=20 =20 on=20 -----------------------------7d427815a0198=20 Content-Disposition: form-data; name=3D"unknown"=20 =20 on=20 -----------------------------7d427815a0198=20 Content-Disposition: form-data; name=3D"type"=20 =20 url=20 -----------------------------7d427815a0198=20 Content-Disposition: form-data; name=3D"url"=20 =20 http://www.aljazeera.com=20 -----------------------------7d427815a0198-- =20 =20 =20 Thanks, in advance, for any help. =20 - David =20 |
From: David M. <dmc...@la...> - 2004-06-02 20:45:11
|
Finally got it! You were right, no need to click anything: test_name =3D Submit wrong username & password url =3D http://localhost/lw/ara/lwcgi method =3D post params =3D ( form =3D> do_log_in user_id =3D> nobody password =3D> nobody ) text_require =3D ( Invalid User ID User ID: Password:) text_forbid =3D ( In order to continue you must log in first )=20 end_test Thanks for your help ;-) - David -----Original Message----- From: htt...@li... [mailto:htt...@li...] On Behalf Of Srdjan Sent: Tuesday, June 01, 2004 6:01 PM To: David McBride Cc: htt...@li... Subject: Re: [Http-webtest-general] trying to test button -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 That's not button at all - just a clickable image. Considering that = clicking the image does nothing but submit, you don't need to use ::Click methods at = all - just a plain POST request with params. Srdjan David McBride wrote: | Greetings, | | | | I'm new to WebTest and I've been playing with it for a couple of days | with some success. I've run into a problem, though. I have a login | form to which I want to submit data (i.e., "user_id", "password"). = The | form begins as follows: | | | | <form name=3D"loginForm" id=3D"loginForm" method=3D"POST"> | | <input type=3D"hidden" name=3D"form" value=3D"do_log_in"> | | | | | | The form has a button generated as follows: | | | | <tr> | | <td colspan=3D"2" align=3D"right"> | | <img src=3D"../images/btn_log_in.gif" | style=3D"cursor:pointer;cursor:hand" onclick=3D"submit()"); | | </td> | | </tr> | | | | I've been trying to use the ::Click methods to operate the button | without success. Can someone tell me what I need to do to operate the | button? Thanks. | | | | v/r | | | | - David | | | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAvTTcZtcHxCitRpgRAhcxAJ4nJDfTGpjE6ADJBvIdRTAb1mnacwCgpLtC HfLkk35G/3wiVKJXNFF0Fi8=3D =3D60PM -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ Http-webtest-general mailing list Htt...@li... https://lists.sourceforge.net/lists/listinfo/http-webtest-general |