[Http-webtest-general] WebTest and JavaScript
Brought to you by:
m_ilya,
richardanderson
From: Jagannadh P. <jag...@ya...> - 2002-11-04 23:48:36
|
Hi Ilya. I have been posting a couple of messages about WebTest and JavaScript. Joe has been kind enough to answer my question, but I did want to verify with you as well. My question is below in Message1. I want to be able to simulate the alert boxes without opening up a browser. Is there a way to do that? Thanks. Jag Today's Topics: 1. WebTest and JavaScript (Jagannadh Pariti) 2. Re: WebTest and JavaScript (Johannes la Poutre) --__--__-- Message: 1 Date: Wed, 30 Oct 2002 11:05:39 -0500 (EST) From: Jagannadh Pariti To: htt...@li... Subject: [Http-webtest-general] WebTest and JavaScript --0-1582144184-1035993939=:7195 Content-Type: text/plain; charset=us-ascii I figure in my previous postings that I should have been more clear with my question.The web page I want to test includes JavaScript for some fields. If those particular fields do not have a value in them, an alert box comes up, after pressing a Submit button. I want to be able to generate those alert boxes. Is there anyway to do that? --------------------------------- Post your free ad now! Yahoo! Canada Personals --0-1582144184-1035993939=:7195 Content-Type: text/html; charset=us-ascii I figure in my previous postings that I should have been more clear with my question.The web page I want to test includes JavaScript for some fields. If those particular fields do not have a value in them, an alert box comes up, after pressing a Submit button. I want to be able to generate those alert boxes. Is there anyway to do that? --------------------------------- Post your free ad now! Yahoo! Canada Personals --0-1582144184-1035993939=:7195-- --__--__-- Message: 2 Date: Wed, 30 Oct 2002 17:53:44 +0100 From: Johannes la Poutre To: Jagannadh Pariti CC: htt...@li... Subject: Re: [Http-webtest-general] WebTest and JavaScript Jagannadh, > I figure in my previous postings that I should have been more clear with my > question.The web page I want to test includes JavaScript for some fields. If those > particular fields do not have a value in them, an alert box comes up, after pressing a > Submit button. I want to be able to generate those alert boxes. Is there anyway to do > that? If I understand you correctly, you want to use HTTP::WebTest to mimic a graphical user agent (that is, a web browser) with all of its behaviour. That means that you acttually have to parse the results as a browser would do, including JavaScript. This is not what WebTest does. The webtest modules can only act on a retrieved document from the web (which can be anything) and perform lots of sanity tests on that content. This means that you can perfectly monitor expected behaviour of a known website. Example: WebTest requests a URL, like http://my.site/start.html WebTest inspects the result (e.g. looks for a terminating tag) WebTest generates a report (there are a lot of more elaborate examples in the documentation - recommended!). However, this has nothing to do with the fact whether this content renders properly on a standard web browser. In other words, WebTest is not a QA tool for acceptance tests , just a generic and versatile monitoring tool to see if an existing situation doesn't change in an unexpected way. If you want to test your (cgi-) form application for certain responses, nearly everything is possible with WebTest (just send a malformed request and check for the expected error message). If that means that this response contains specific JavaScript code (like a custom error message) you can just check for this. On the other hand, if you want to display popups, generated from a web browser by means of JavaScript, you should use your web browser. At least, that's what I think... Cheers, Joe. --__--__-- _______________________________________________ Http-webtest-general mailing list Htt...@li... https://lists.sourceforge.net/lists/listinfo/http-webtest-general End of Http-webtest-general Digest --------------------------------- Post your free ad now! Yahoo! Canada Personals |