on Articles

Web application testing – overview

Tweet about this on TwitterShare on FacebookShare on Google+Share on LinkedInShare on RedditShare on StumbleUpon

One of the often forgotten aspect of development is web application testing. This article is an overview of web application testing and is trying to show what types of testing you should do in order to achieve better results.

Web application testing is done by following a Test instructions document which explains the whole testing process in details.

Testing can be divided into several main areas:

Functionality testing

Testing for – all the links in web pages, database connection, forms used in the web pages for submitting or getting information from user, Cookie testing.

Checking if the application meets all the requirements and if all developed parts work as defined in Requirement specification documents.

Check all the links:

Test forms in all pages:

Forms are the integral part of any web site. Forms are used to get information from users and to keep interaction with them. So what should be checked on these forms?

Cookies testing:

Cookies are small files stored on user machine. These are basically used to maintain the session mainly login sessions. Test the application by enabling or disabling the cookies in your browser options. Test if the cookies are encrypted before writing to user machine. If you are testing the session cookies (i.e. cookies expire after the sessions ends) check for login sessions and user stats after session end. Check effect on application security by deleting the cookies.

Validate HTML/CSS:

If you are optimizing your site for Search engines then HTML/CSS validation is very important. Mainly validate the site for HTML syntax errors. Check if site is crawlable to different search engines.

Database testing:

Data consistency is very important in web application. Check for data integrity and errors while you edit, delete, modify the forms or do any database related functionality.
Check if all the database queries are executing correctly, data is retrieved correctly and also updated correctly. Check that no database errors are shown to the user.

More on database testing could be load on database, we will address this in web load or performance testing below.

Usability testing

Usability testing includes:

Web site should be easy to use. Instructions should be provided clearly. Check if the provided instructions are correct means whether they satisfy purpose of the web application.
Main menu should be provided on each page. It should be consistent.

Test of navigation:

Navigation means how the user follows the flow of web pages, different controls like buttons, boxes or how user is using the links on the pages to find different pages.

Content checking:

Content should be logical and easy to understand. Check for spelling errors. Use of dark colors annoys users and should not be used in site theme. You can follow some standards that are used for web page and content building. These are common accepted standards like as I mentioned above about annoying colors, fonts, frames etc.
Content should be meaningful. All the anchor text links should be working properly. Images should be placed properly with proper sizes and alt and title attributes.
These are some basic standards that should be followed in web development. Your task is to validate all for UI testing

Other user information that help the user

Like search option, sitemap, help files etc. Sitemap should be present with all the links in web sites with proper tree view of navigation. Check for all links on the sitemap.
“Search in the site” option will help users to find content pages they are looking for easily and quickly. These are all optional items and if present should be validated.

Interface testing

The main interfaces are:

Interface testing includes checking the interactions between interfaces, error handling, negative scenarios like interrupting database transactions etc.

One of the most popular Interface testing tool is Selenium .

selenium logo

Primarily it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can also be automated as well.

Compatibility testing

Compatibility of your web site is very important testing aspect. It includes:

Performance testing

Web application should sustain to heavy load. Web performance testing should include:

Test application performance on different internet connection speed.
In web load testing test if many users are accessing or requesting the same page. Can system sustain in peak load times? Site should handle many simultaneous user requests, large input data from users, Simultaneous connection to database, heavy load on specific pages etc.

Stress testing: Generally stress means stretching the system beyond its specification limits. Web stress testing is performed to break the site by giving stress and checked how system reacts to stress and how system recovers from crashes.
Stress is generally given on input fields, login and sign up areas.

All performance tests are conducted using jMeter software which can be fine-tuned for any situation.

Security testing

Following are some test cases for web security testing:

I hope that this overview will help you build even better applications.

How do you test your web applications? What tool are you using? Please share your thoughts in comment area.

Tweet about this on TwitterShare on FacebookShare on Google+Share on LinkedInShare on RedditShare on StumbleUpon

  • Sally McPherson

    You also have to test that the code doesn’t have syntax errors that make the browser crash with the error code.

    Best is to print out the listing and check it with marker pencil using red color.

    You also have to test for memory gobbler problem. Some scripts make the memory gobbler problem worse than others but there is always a memory gobbler in the code. You have to tame the gobbler to eat less memory or to regurgitate it back so other scripts can eat it.