Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automate Website Testing 1

Status
Not open for further replies.

kliz0328

Programmer
Nov 7, 2005
138
US
I was just wondering if there was a way to automate the testing of a website rather than going in and having users, poke through every little in and out everytime an update is made. I was just wondering if there was a way to do this. I have heard some things about Visual Studio .Net Enterprise Architecture having this capability but cannot find anything on the web supporting this claim.
 
One way is, write scripts to launch the various URLs involved in the website by passing different GET and POST parameters. When you get back the output stream, look for keywords that prove that your returned page is fine.

Use some URL sniffer utility to see the parameters that are being passed to the server when you browse the site normally. Note down all this and mimic it with the script.



 
To add more, suppose you want to check if all your web pages are present on the server (or if they've been deleted or renamed by mistake). Make a list of all such URLs. Use any language and write a script to connect to each url and get back the return code. Check the returned http header for a 404 (page not found) code.


 
is there a way to write scripts that would launch the login URL, and enter a valid username/password ans submit the page?
 
do you know where to go to maybe see some java examples of this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top