Free since 2005 · No login required
AT

Academic Tutorials

Learn at your own pace

site-mobile-top-banner · 320x50

Is there any way to test browser-based programs? Can I test HTML pages?

If you use TestComplete Standard, you can test web pages via their GUI. Run TestComplete and try to record your actions over a web page. The resultant script will look very similar to the one recorded on any other ordinary, non-Open application. As web testing depends on the connection speed, you should place delays in your script where ever they are needed. It can be calls to BuiltIn.Delay(…) and different loops for waiting on changes in the window of your Internet browser. Another aspect of web testing is that web pages intensively use graphics. You can use Regions.Find() to locate the necessary areas on a page and then click, double-click, drag them or perform other operations. TestComplete Enterprise provides more web testing possibilities than TestComplete Standard. In addition to mouse click and keystroke simulation, the Enterprise edition can access the page’s HTML objects from scripts. You can actually refer to HTML elements from scripts using the same names that are used on your page. TestComplete 4 provides you with access to elements of web pages displayed in Internet Explorer ver. 4 - 7 or in WebBrowser controls that reside in any application (that is, TestComplete supports any browser created on the base of the WebBrowser control). TestComplete 5 and later lets you also work with web pages displayed in Firefox ver. 1.5.0.1 - 2.0. TestComplete contains specific program objects to test combo boxes, list boxes and check boxes displayed on the page. Also, it provides two events that let you perform specific actions before navigating to a new page or upon downloading a page. For more information about web testing, see the “Web Testing” help topic. The Enterprise edition of TestComplete 6 provides web checkpoints that let you easily perform various verifications over web pages. TestComplete Enterprise also includes the HTTP Load Testing project item that allows you to perform load, stress and scalability testing of web servers.