wood burning stoves 2.0*
The moose likes Testing and the fly likes Functional testing of webpage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Functional testing of webpage" Watch "Functional testing of webpage" New topic

Functional testing of webpage

Ranch Hand

Joined: Mar 10, 2005
Posts: 31

In general what are the testing done on a webpage Under Functional testing. How functional and Usability testing differs in a webpage testing.

For example(Social Networking website)- I have to login in to my webpage, only registered users are allowed, and I can create groups in that one, under the groups I can have contacts, Search functionalities are provided and we can send messages also to the registered members. As we take this as the scenario what are all the Functionality testing done here.

How much Importance is to check the cookies while testing webpages & how to test the cookies?

Please help me in the above issue.

Thanks in Advance.
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
I do the great majority of my web application functional testing using HTTPUnit. This is a tool which allows familiar JUnit tests to send HTTP requests, fetch web pages and make assertions about their contents, set and check cookes, follow links, click buttons, fill in and submit forms and so on.

This is different from usability testing in that all it tests is that the web application performs as expected, not that the way it performs makes sense or enables actual users to do what they need.

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Ranch Hand

Joined: Mar 10, 2005
Posts: 31
Thanks for your descrbtion. Can you explain me more, actually we where not using any tools, only manual testing is done, in this case what are the thinks have to be covered in Functional testing.
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
Functional testing is "does it do what it should do to do". This depends entirely on the design and specification of the web application. If your specification says that after three failed login attempts a warning message is shown, then part of functional testing would be to try bad passwords three times and check that a warning message is shown. If the spec says that selecting "report 1" and clicking "show" should show the first 20 lines of today's sales report, then part of functional testing would be to test this.

Usability testing is "how well does it do it". It is much less dependent on the specification. Instead it concentrates on whether the on-screen instructions make sense, whether the operations a user needs are available at the right time and in the right place, and so on. Typically usability testing is done by showing the user interface to users and observing how they (try to) use it and the kind of problems and questions they have.

In your original example, testing cookie behaviour is very much functional testing. And (as I mentioned above) I would do it using HTTPUnit. If you really prefer to do manual testing (which soulds like a lot of repetetive work, to me), I believe there is a plugin for firefox which will show you what cookies are being set.
Ranch Hand

Joined: Mar 10, 2005
Posts: 31
Thank you so much Frank Carver for your detailed Explanation.
[ September 05, 2006: Message edited by: P.Sivaraj ]
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
Another popular tool for writing functional tests for web applications is Selenium: http://www.openqa.org/selenium/

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
jerry werder

Joined: Sep 04, 2006
Posts: 15
i think that you asked the question is a black box testing.
maybe you can test it with 6 step:
1. UI testing
2. function testing
3. interface testing
4. compatibility testing
5. load and pressure testing
6. security testing

many free ebooks about CS<br /><a href="http://www.drivehq.com/file/ShowFolder.aspx?G=1&shareID=43383&refID=27244" target="_blank" rel="nofollow">http://www.drivehq.com/file/ShowFolder.aspx?G=1&shareID=43383&refID=27244</a>
I agree. Here's the link: http://aspose.com/file-tools
subject: Functional testing of webpage
Similar Threads
Concurrency Testing
Testing Framework
Multiple Data instances - clarification
Next Generation Java Testing - any new tools?
Functional Testing using jmeter