Re: [Http-webtest-general] Questions from a beginner
Brought to you by:
m_ilya,
richardanderson
From: Ilya M. <il...@ip...> - 2003-03-18 18:07:29
|
>>>>> "LE" =3D=3D Li, Eddie <Edd...@bg...> writes: LE> Hello, guys, LE> Just installed HTTP::WebTest on my Solaris workstation, I started LE> my first try to use =E2=80=9Cwt=E2=80=9D with a simple wtscript as: LE> =C2=A0=C2=A0=C2=A0 test_name =3D Test page LE> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 url =3D 192.168.6.22/mytest.= html LE> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 min_bytes =3D 13000 LE> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 max_bytes =3D 99000 LE> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 min_rtime =3D 0.010 LE> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 max_rtime =3D 10.0 LE> =C2=A0=C2=A0=C2=A0 end_test LE> mytest.html is as simple as: LE> <html> LE> <body> LE> test LE> <img src =3D "/images/test.gif" width =3D "200" height =3D"200" alt=3D"= Test"> LE> </body> LE> </html> LE> The test went through fine. However it only read the html file itself, = not LE> include the test.gif. =C2=A0The follows are my questions: LE> 1. How to make WebTest to get all the components of a web page as a= web LE> browser does? Currently it is not supported by HTTP::WebTest. I have in my TODO a plugin which would test links on the page but so far I had no time to implement it. LE> 2. If WebTest doesn=E2=80=99t work the same way as a web browser, h= ow LE> can I tell the difference in details so that I know which part LE> is not tested by it? Two main differences is that: 1) HTTP::WebTest doesn't run JavaScript code 2) HTTP::WebTest itself doesn't treat HTML pages in some special way. I.e. it doesn't fetch images, frames, other linked from HTML page resources. Though such capability could be added with plugin. LE> 3. Where can I find a good tutorial and practical examples? For practical examples see perldoc HTTP::WebTest::Cookbook. As for a good introduction tutorial I don't think somebody have wrote one. It is my TODO but it probably will not happen soon. Ed Fancher wrote two articles about HTTP::WebTest but they cover very specific application of this Perl module and hardly qualify as good introduction tutorial. Anyway you may find them interesting: http://www.ethercube.net/articles/Browser%20Version%20Testing/Article.php http://www.ethercube.net/articles/Browser%20Version%20Testing%20using%20plu= gins/Article.php There are also some examples on http://www.naney.org/encyclopedia/HTTPWebTest.html but it is in Japan. --=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 |