ProjectSuite Object

Applies to TestComplete 15.69, last modified on November 13, 2024

Description

The ProjectSuite object provides a program interface to the properties of the current TestComplete project suite and to the local variables defined in this project suite.

Members

Example

The following example demonstrates how to obtain the collection of variables specified in the current project suite and how to modify one of the project suite variables.

JavaScript, JScript

function ProjectSuiteSample()
{
  …

  if (ProjectSuite.Variables.VariableExists("TVar1"))
    ProjectSuite.Variables.TVar1 = "New Value";
  …

}

Python

def ProjectSuiteSample():
  if (ProjectSuite.Variables.VariableExists("TVar1")):
    ProjectSuite.Variables.TVar1 = "New Value"

VBScript

Sub ProjectSuiteSample

  …

  If ProjectSuite.Variables.VariableExists("TVar1") Then
    ProjectSuite.Variables.TVar1 = "New Value"
  End If

  …

End Sub

DelphiScript

procedure ProjectSuiteSample();
begin
  …

  if ProjectSuite.Variables.VariableExists('TVar1') then
    ProjectSuite.Variables.TVar1 := 'New Value';
  …

end;

C++Script, C#Script

function ProjectSuiteSample()
{
  …

  if (ProjectSuite["Variables"]["VariableExists"]("TVar1"))
    ProjectSuite["Variables"]["TVar1"] = "New Value";
  …

}

See Also

Project Object

Highlight search results