Remember Me
forgot your password?

Automated Website Testing

You just finished building your company's website. You have tested it yourself and had other company employees test it. The website now goes live. A few weeks later you start getting emails from irate customers who complain that they are unable to place their orders because certain steps in the "Buy Now" process give errors. You quickly fix the problem. A few days later you get complaints about some other issue and you again react quickly to fix the website. This continues for a few months till the complaints finally halt and things stabilize. At this point you make some enhancements to your website. A few days later a customer email alerts you to the fact that in the process of making this enhancement you "broke" something else on the website. Again you spend time to find and fix the problem but by now you are perplexed and not a little frustrated. These issues have cost you many customers in the last few months and potentially spread ill will across the broader customer community. It seems to you that the only way to have detected these issues before they went "live" was to have employed a large army of software testers, something your company is unable to afford.

Enter automated software testing. While nothing can replace good human testers, broad test coverage requires some degree of software automation for it to be economically feasible. Automated testing tools can provide a huge workforce multiplier and do a very good job complimenting human testers. Every change to your website no matter how small requires thorough testing to ensure that nothing else was affected. This becomes very time consuming very quickly due to the large number of possible cases to test. A strategy whereby tests are automated using software becomes an economic necessity.

There are two classes of automated testing tools. The first kind, functional and regression testing tools, helps to make sure that the website behaves as it should: for example if a customer clicks on button X, page Y is displayed without errors. Functional and regression testing tools are able to automate a large number of scenarios to ensure that your website works as intended. The second type, load testing tools gauge how well your website performs when subjected to a large stress, such as a large number of simultaneous users. I will be discussing load testing in a separate article.

I will now give you an overview of the basic characteristics of functional testing. Before you can begin any kind of functional test automation you will need to identify the test scenarios you wish to automate. Once this is done, you will need to generate test scripts that cover these scenarios.

A functional testing tool will typically record user interactions with a website. As you perform various operations on your website or application, the tool records every step. When you finish recording, it generates an automated script from your interactions with your website. Alternatively you could use the tool to construct the script by hand. Typically testers tend to do a combination of the two. They will use the recorder to generate the basic framework of their scripts and then tweak the scripts by hand to incorporate special cases.

Scripts can be graphical and/or text based in nature. A good functional testing tool does not require users to have a programming background. Users not proficient in programming will work predominantly with graphical scripts. In most tools graphical scripts will typically show all interactions in a tree structure and users can edit any node of the tree to modify the script. Some users however, who have programming backgrounds may wish to program their scripts. These users will typically work with a text script written in a standard language such as JavaScript or VBScript.

Once you have generated your script you will need to insert checks in your scripts to test if your website is functioning correctly. Such checks are usually called checkpoints. A checkpoint verifies that values of a property obtained when testing the website match expected values. Checkpoints enable you to set the criteria for comparing expected values with obtained values. The expected value of a property is derived from recording interactions with the web site. It is viewed and modified from checkpoints. The current value is retrieved during replay (i.e. during the execution of the test case).

There are many different kinds of checkpoints. A page checkpoint verifies the source of a page or frame as well as its statistical properties. You can check for broken links, verify link URLs, image sources, the hierarchy of HTML tags or even the entire HTML source of the Web page or frame. You can also set thresholds for the loading time of a page. A text checkpoint verifies that a given text is displayed or is not displayed in a specified area on a web page. A web object checkpoint verifies the properties of a web object e.g. the value of an HTML INPUT field. A database checkpoint verifies the contents of a database used by your website.

When you replay a test script, the testing tool will open the recorded application and perform the recorded steps in the same sequence they were specified in the script. As it replays the script it will also run through all the checkpoints you have inserted into the script. In addition, you can test your application's behavior with varying data inputs. For example you can try to submit a page after entering different values in the edit box of a web page. At the end of the replay a detailed report is typically be generated.

Functional test automation allows you to automate the repetitive testing of a large number of scenarios across your website. Functional testing tools are an important weapon in your development arsenal whose use provides a huge productivity gain and allows for small testing groups to accomplish significantly more work. There is a very strong economic case for the use of Functional Testing Tools as part of the development and deployment cycle of a website.

Thomas Berten

About the Author:
Umair Khan is Founder and Chairman of
Verisium, Inc., a provider of products for automated functional and regression testing, load testing, bug tracking and test and requirement management.


Verisium is the maker of vTest, an automated functional and regression testing tool for web applications.

Rate this Article: 5 / 5 stars - 1 vote(s)
Print Email Re-Publish

Add new Comment



Captcha

  • Latest Software Articles
  • More from Thomas Berten

DSA Organizations Views Warehouse Control Systems Integral to 2010 Success

By: Thomas Cutler | 22/12/2009
DSA Organizations Views Warehouse Control Systems Integral to 2010 Success

Payroll software more than software as a service

By: Daniel Adams | 22/12/2009
ADP is the UK’s leading supplier of payroll services, time and management systems, HR software solutions and related services for all types of businesses. Contact us at ADP to find out more about payroll services, time & attendance systems and HR software solutions. Call 0800 180 4994.

How to speed up your computer - 4 simple tips to make your system run like a 747jet again

By: Jimmie | 22/12/2009
Are you looking for a way to speed up your computer? This is the right article for you to speed up your system in a simple and fast way. After optimizing your PC, you will be surprise on the remarkable improvement your computer gets. You could try the following 4 tips to make your slow PC run faster again.

Get More From PlayStation 2

By: Sarah Reddingworth | 22/12/2009
Do you have a PlayStation 2? Do you want to get more out of it? This amazing gaming console brought out to the world in 2000 is one which has taken the world. Now you can discover how to extend it!

How to convert MOD to AVI MPEG WMV MP4 VOB 3GP?

By: lazerer | 22/12/2009
How to convert MOD files to AVI MPEG WMV MP4 VOB 3GP? Follow this guide and you will find it can’t be much easier to make your MOD files playable on computer, iPhone, iPod, Blackberry, Zune, PSP, Creative Zen, etc.

How to Rip DVD on a Mac (including Snow Leopard)

By: Kindour | 22/12/2009
The following guide is going to show you how to rip DVD's to all sorts of video and audio formats on Mac OS X (including Snow Leopard) using DVD Ripper for Mac. It also shows several tips and tricks you need to pay attention to while using this Mac DVD Ripper to rip DVD on your Mac machine.

How to organize photos collection by removing duplicate files?

By: John SWA Smith | 22/12/2009
How to organize photos collection by removing duplicate files? There was a time when we used to take pictures using cameras with films which had to be developed to get the required pictures and it used to be difficult to get their soft copy. But now with digital photography you can simply load pictures into your computer using a data cable or a memory card, and it also save photographers the trouble of keeping hard copies of their photo albums in a safe place.

Australia Accounting Software Secondary Functions

By: Steele Rudd | 22/12/2009
In addition to the core modules and functionalities of accounting software products and applications, there are also certain secondary modules and functionalities that have been incorporated to make these products as useful as they can be in providing a holistic solution to your organisation’s accounting needs.

Closet Organizer Systems to Store in Any Room

By: Thomas Berten | 11/04/2008 | Technology
Closet organizers are extremely popular around the world and pretty easy to install. All that is needed are a few basic tools that you can usually find in most homes and reliable transportation. Closet organizers are sets of racks, boxes, shelves, hooks, and storage bins that change a closet from being a dark mess of clothing and equipment to a clearer, organized area where everything is in its place.

Low Vision: the Next Frontier

By: Thomas Berten | 19/07/2007 | Health
Las Vegas eye doctor for the visually impaired retains the independence of macular degeneration, glaucoma and diabetes patients to drive, read, see the computer and TV.

Eye News you Can Use

By: Thomas Berten | 15/06/2007 | Health
Cataract Surgery Technology Update

Learn How to be Funny

By: Thomas Berten | 29/05/2007 | Fitness
Laughter is the best medicine. I'm sure everyone has heard of that saying before and it's because it largely stands true. Knowing how to be funny is a great gift to have, when used in the right situations of course!

Mesothelioma: a Brief Overview

By: Thomas Berten | 29/09/2006 | Diseases & Conditions
Mesothelioma is a cancer caused by asbestos. In this article Andy Bowen discusses the disease and gives a description of the causes, symptons and treatments.

You Too Can Make Money Online!

By: Thomas Berten | 20/09/2006 | Internet
Making money online is a huge market and one that anyone can be involved in should they dedicate a bit of time and effort.

Tips On Finding a Quality Realtor That Works for You

By: Thomas Berten | 18/09/2006 | Finance
Before starting a business relationship with yourself a realtor must...

How to Find the Perfect Rental Unit

By: Thomas Berten | 18/09/2006 | Finance
This 4 step guide to finding the perfect rental unit is quick and easy to understand.

Submit Your Articles Free: Signup
Article Categories




Use of this web site constitutes acceptance of the Terms Of Use and Privacy Policy | User published content is licensed under a Creative Commons License.
Copyright © 2005-2008 Free Articles by ArticlesBase.com, All rights reserved. (0.41, 7, w1)