Now we can add information about the record-time action to the description file.
Open the description.xml file in your XML or text editor and add the following code to it:
XML
[description.xml]
<?xml version="1.0" encoding="UTF-8"?>
<ScriptExtensionGroup Name = "My Extensions">
<Category Name = "Checkpoints">
<ScriptExtension Name = "Clipboard Checkpoint" Author = "SmartBear Software" Version = "1.0 test" HomePage = "smartbear.com">
<Script Name = "clcCode.js">
<RecordAction Name = "Clipboard Checkpoint" Icon = "clc-icon.bmp" Routine = "RecordExecute"/>
</Script>
<Description>
Provides support for clipboard checkpoints.
</Description>
</ScriptExtension>
</Category>
</ScriptExtensionGroup>
As you can see, we added the RecordAction element. These elements are used to declare record-time actions. We specified the following values for the element’s attributes:
Attribute | Value | Description |
---|---|---|
Name | Clipboard Checkpoint | The caption of the item that TestComplete will add to the Recording toolbar. |
Icon | clc-icon.bmp | The file name of the item’s icon. |
Routine | RecordExecute | The name of the script routine that is executed when a user selects the Clipboard Checkpoint item from the Recording toolbar. |
See Also
Script Extensions
Script Extension Files
Structure of the Description File