dcsimg
JavaScript to use browser to test URLs
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Prasad_Iyer
Posted On:   Friday, June 18, 2004 03:19 PM

Hi, I was wondering if its possible to do something like this in JavaScript: - launch a browser window, preferably IE - pause for 60 secs to allow user to login - iterate thru a bunch of URLs (reading them from a text file) and test these urls one-by-one in the same browser window (so that the URLs use the currently active session) - for each URL being tested, dump out the HTML source of each output in some kind of a log file (append all the "source" outputs to the same file) I am writing a web-testing tool in Java and I do most of the above steps without using a browser, I just open a HttpURLConnection with the URL and de   More>>

Hi,

I was wondering if its possible to do something like
this in JavaScript:

- launch a browser window, preferably IE
- pause for 60 secs to allow user to login
- iterate thru a bunch of URLs (reading them
from a text file) and test these urls one-by-one
in the same browser window (so that the URLs use
the currently active session)
- for each URL being tested, dump out the HTML
source of each output in some kind of a log file
(append all the "source" outputs to the same file)

I am writing a web-testing tool in Java and I do
most of the above steps without using a browser,
I just open a HttpURLConnection with the URL and
depend on the response headers/status codes for
checking the output, I wanted to add an extra
layer of reliability by testing every URL in
an actual browser window, so any info/help on
this would be greatly appreciated, Thank you
very much !

   <<Less

Re: JavaScript to use browser to test URLs

Posted By:   Firat_Tiryaki  
Posted On:   Sunday, June 20, 2004 12:45 PM

check out this FAQ ;


http://www.jguru.com/faq/view.jsp?EID=741153

About | Sitemap | Contact