AutomatedQA: Award-winning tools for software testing and quality assurance

Home » Products » TestComplete » TestComplete - Script Extensions

TestComplete - Script Extensions

TestComplete functionality can be extended with two types of plug-ins: compiled plug-ins, which are created with TestComplete’s SDK, and script extensions, which are light-weight plug-ins that are created using the VBScript or JScript scripting languages.

Unlike “traditional” compiled plug-ins, script extensions do not require programming experience or a special IDE like Visual Studio or Delphi. Scripts are very easy to create and can be written in any text editor and since TestComplete supports VBScript and JScript for test automation, you can create script extensions directly in TestComplete! In addition, major TestComplete built-in program objects can be used in the script extension code.

The functionality that can be added to TestComplete by script extensions is limited compared to that of compiled plug-ins, but that doesn’t mean that they are less powerful. With script extensions you can create:

Custom actions that will be added to TestComplete’s toolbars during test design and test recording. The purpose of these actions is to help the testers record or create tests. The actions can be programmed to perform almost anything you do from TestComplete scripts: display forms, interact with processes, windows and onscreen objects, etc., and even things beyond that, for example, generate script code.

In fact, the functionality that an action can provide is limited only by the ingenuity of the script extension’s creator. For example, you can create actions that will:

Insert custom checkpoints,
Display wizards to create data-driven tests,
Insert custom object validation code,
Insert “wait for object” code to synchronize the test run with the tested application’s state
Display instructions to guide testers through test creation,
Recommend test types for the selected object,
And much more!

Custom action on the Recording toolbar

Custom scripting objects that will be added to TestComplete’s object model. These objects can be used in test scripts the same way TestComplete’s built-in objects are used. They are displayed in the Code Completion window during code editing and they can be evaluated and inspected during code debugging. They can also be used in other script extensions!

Custom object in Code Completion

Custom objects also provide a convenient way to organize common routine libraries that can be used in different TestComplete projects. Unlike shared script units, which need to be imported in each project, script extensions are only installed in TestComplete once. After that, all of the objects an routines exposed by the extension become available to all of your projects.

Script extensions are deployed as archived packages that consist of one or more script files. Each package can contain a number of extensions, each providing a number of scripting objects and/or toolbar commands. A special description file included in the package provides a definition of the available extensions as well as objects and commands exposed by each extension and their attributes, all in a friendly XML format. TestComplete uses this file to obtain information about the extension being installed.

 
For more information on TestComplete and other Quality Assurance products from AutomatedQA, write to us at sales@automatedqa.com.

 
Copyright © 1999-2009, AutomatedQA, Corp. All Rights Reserved.
Home | Legal | About | Contact | Site Map | Print