Re: [Http-webtest-general] WebTest and JavaScript
Brought to you by:
m_ilya,
richardanderson
From: Johannes la P. <joe...@us...> - 2002-10-29 08:45:54
|
On Mon, 28 Oct 2002, Jagannadh Pariti wrote: > > In regards to my previous email, if WebTest can test web pages with JavaScript, what is a code example of testing JavaScript? > Jag, Depending on what you want to test in your Javascript, you can always approach it just as text and look for occurences of strings or regexen (with the 'text_require', 'regex_require' etc. tests). The same is true for a pure javascript file - even, for that matter, I test on the string 'GIF98a' in a single pixel GIF image to be sure that the image is returned, not some server error: text_require = "GIF89a" text_forbid = "<html>" HTH! Cheers, Joe. |