ProjectSuite.TestItems Property (Specific to ProjectSuite Object)

Applies to TestComplete 14.40, last modified on April 22, 2021

Description

This property returns the TestItems object which provides a scripting interface to projects to be executed by the current TestComplete project suite. For more information on project suite test items, see Test Items Page.

Declaration

ProjectSuite.TestItems

Read-Only Property A TestItems object

Applies To

The property is applied to the following object:

Property Value

A TestItems object that represents the collection of test items for the given TestComplete project suite.

Example

The following example demonstrates how to obtain the list of project suite test items and how to post the name of the currently running test item to the log.

JavaScript, JScript

function Test()
{

  var TestItems;
  …
  TestItems = ProjectSuite.TestItems;
  Log.Message("The " + TestItems.Current.ProjectName + " test item is currently running.");
  …

}

Python

def Test():
  TestItems = ProjectSuite.TestItems
  Log.Message("The " + TestItems.Current.ProjectName + " test item is currently running.")

VBScript

Sub Test

  Dim TestItems
  …
  Set TestItems = ProjectSuite.TestItems
  Call Log.Message("The " & TestItems.Current.ProjectName & " test item is currently running.")
  …

End Sub

DelphiScript

procedure Test();
var TestItems;
begin
  …
  TestItems := ProjectSuite.TestItems;
  Log.Message('The ' + TestItems.Current.ProjectName + ' test item is currently running.');
  …

end;

C++Script, C#Script

function Test()
{

  var TestItems;
  …
  TestItems = ProjectSuite["TestItems"];
  Log["Message"]("The " + TestItems["Current"]["ProjectName"] + " test item is currently running.");
  …

}

See Also

Test Items Page (Project Suite Editor)
TestItems Object (Specific to ProjectSuite Object)

Highlight search results