| || |
Testing a web page with various links
whats the best approach to testing a webpage with various links. For example, if i were to select a tab on a page that listed 10 types of dogs would I have to test all 10 dogs or test half of them?
It depends. Do you know if the links are hard-coded or drawn from a database? If they're dynamically generated, are there any unusual characters in the link title that could impact the ability of the browser to go to the link? Do the links go to a site external to the one you're testing, or to another part of the same site?
In your dogs example, say one of the types listed is Lhasa Apso and another is Greyhound. Greyhound is probably going to work. Lhasa Apso might not if the space in the name isn't URL encoded or otherwise modified.
If all the links go to the same page, but with some different selector, do you get the correct breed? What if you can sort the list? Does that take you to the correct page after you change the default ordering?
There's never a "best" approach - just approaches that work better or less well for your particular situation.
Agree with katepaulk. It depends on what you want do with these links and how these links generated. About FredMan's recommendation of Xenu, I want to say Xenu only check the broken links in you site. If you only want to check if these links are alive or they link to any other pages which at least could be visited.
About 15 years ago HP made a graphical tool for looking at the links. It was very impressing looking and working. My clients liked it a lot. HP stopped working on it. I wish it would come back. I think it was called Astra. I told HP about this recently. I hope others that have used the product way back in time would also request its resurrection.