DelphiScript - Data Types

Applies to TestComplete 15.47, last modified on January 20, 2023

The TestComplete script interpreter is based on OLE objects. Thus, all its scripting languages, including DelphiScript, only use OLE-compatible types. Also, they do not support pointers. In DelphiScript all variables are of the OleVariant type. Typecasting is ignored. In variable and array declarations, types are ignored too and they can be skipped. For instance, each of the following declarations is correct:

DelphiScript

var i : Integer;

var j : MyCharacter;

var cx, cy;

var Nums : array [1..10];

The same rules apply to parameter types in procedure or function declarations: They are ignored and can be skipped. For example, the following code is correct:

DelphiScript

function TestPrinting (AStartPage, AEndPage) : Boolean;

begin

...

end;

Since DelphiScript does not support pointers, the ^ and @ operators have no effect. If TestComplete meets them while executing script, it posts an error message to the test log. User-defined types, records and classes are also not supported.

See Also

DelphiScript Description

Highlight search results