Web Testing With TestComplete
Web testing or functional testing of web applications is aimed at verifying the functionality and reliability of your web sites and web applications before they go live. TestComplete fully supports front-end web testing. It can simulate user actions through the browser and detect the web page’s state so that web applications can be tested on the front end with web testing while on the back end with load testing. Since web testing interacts with the client side of web applications, it can be performed regardless of their server side implementation — CGI, ASP, PHP and others.
TestComplete provides numerous features for automating your web testing efficiently:
Recording Web Tests With TestComplete’s point-and-click recorder, recording web tests is as easy as browsing through your web application. TestComplete automatically captures all actions that you perform inside the Internet browser, such as web page loading, link navigation, data retrieval and entry, form submission and other activities. Recorded web tests are object-aware rather than coordinate-based, so they are resistant to changes in the web page layout, screen resolution and many other factors.
Web Testing Checkpoints Built-in checkpoints help you thoroughly verify your web application during web testing. For example, you can verify that that your web site conforms to the Web Content Accessibility Guidelines. With web testing checkpoints, you can:
- Verify the entire web page contents, only its tag structure or only the contents of certain elements.
- Verify the contents and state of individual web page elements.
- Verify that all links on the web page are valid.
- Verify that all images on the web page have alternative text specified.
- Verify that the page contains MAILTO links.
- Check whether the page contains Java applets.
- And much more!
Support for Third-Party ASP.NET Controls TestComplete enables comprehensive GUI testing of ASP.NET applications by providing out-of-the-box support for third-party ASP.NET controls by Developer Express, Infragistics, Telerik and other vendors. This way, you can easily automate form entry and submissions, link navigation as well as control-specific operations like grid sorting, calendar date selection and much more. In addition, TestComplete’s checkpoints help you automatically verify the results of the entered data and the state of your ASP.NET UI elements.
Multiple Browser Support for Web Testing TestComplete supports various browsers for web testing, so that you can ensure your web application functions correctly in all of them. The supported browsers are:
- Microsoft Internet Explorer ver. 5—8 (both 32-bit and 64-bit versions).
- Mozilla Firefox ver. 3.0—3.6.
- Any application with an embedded Microsoft WebBrowser control.
- Netscape Navigator ver. 8.1.2 (using the Internet Explorer rendering engine).
Multiple Web Tree Models In order to cover the countless ways of organizing web page elements, TestComplete provides four different web tree object models that specify how web page elements are addressed during web testing:
- DOM — Mirrors the Document Object Model (DOM).
- Tag — Groups all available web page elements by tag names, providing easier access to elements of the same type (links, images, input controls, and others) during web testing.
- Tree — Reflects the parent-child hierarchy of the web page elements, providing easier access to nested elements during web testing.
- Hybrid — Combines the DOM and Tree models during web testing.

Choosing a suitable web tree model increases your web testing performance and reliability.
Access Internal Properties, Methods and Events when Web Testing
TestComplete can not only simulate clicks and key presses in your Internet browser, it also gives your web testing access to internal properties, methods and events of the tested web page’s elements, which allows you to perform custom web page verifications or implement advanced web testing techniques.
Calling Scripts from Web Pages When web testing, TestComplete lets you call scripts from web pages directly. For example, run a script attached to a button’s onclick event without actually clicking that button. This helps you create stable web tests during the earliest stages of your web application development, when the application’s UI implementation is likely to change, as well as to perform unit testing of your web applications.