GetID Method

Applies to TestComplete 15.44, last modified on November 10, 2022
The manual testing functionality is deprecated. Do not use it for creating new tests. It will be removed in a future TestComplete release.

Description

Use this method to obtain a manual testing step identifier. The step identifiers are displayed in the ID edit box of the Manual Testing editor.

Declaration

ManualTestingStepInfoObj.GetID()

ManualTestingStepInfoObj An expression, variable or parameter that specifies a reference to a ManualTestingStepInfo object
Result String

Applies To

The method is applied to the following object:

Result Value

The method returns a string that holds the step identifier.

Example

The following code snippet obtains information on a manual test step and posts the step ID to the test log.

JavaScript, JScript

function ManualTestStepInfo()
{
  var ID, Info;
  // Specifies the test step ID
  ID = "STEP_1";
  // Obtains information on the test step
  Info = ManualTests.NewManualTest.GetStepInfo(ID);
  // Posts the test step’s ID to the test log
  Log.Message(Info.GetID);

  ...

}

Python

def ManualTestStepInfo():
  # Specifies the test step ID
  ID = "STEP_1"
  # Obtains information on the test step
  Info = ManualTests.NewManualTest.GetStepInfo(ID)
  # Posts the test step's ID to the test log
  Log.Message(Info.GetID)

VBScript

Sub ManualTestStepInfo

  ' Specifies the test step ID
  ID = "STEP_1"
  ' Obtains information on the test step
  Set Info = ManualTests.NewManualTest.GetStepInfo(ID)
  ' Posts the test step’s ID to the test log
  Log.Message Info.GetID

  ...

End Sub

DelphiScript

procedure ManualTestStepInfo();
var ID, Info;
begin
  // Specifies the test step ID
  ID := 'STEP_1';
  // Obtains information on the test step
  Info := ManualTests.NewManualTest.GetStepInfo(ID);
  // Posts the test step’s ID to the test log
  Log.Message(Info.GetID);

  ...

end;

C++Script, C#Script

function ManualTestStepInfo()
{
  var ID, Info;
  // Specifies the test step ID
  ID = "STEP_1";
  // Obtains information on the test step
  Info = ManualTests["NewManualTest"]["GetStepInfo"](ID);
  // Posts the test step’s ID to the test log
  Log["Message"](Info["GetID"]);

  ...

}

See Also

Manual Testing
Executing Manual Tests
About Manual Test Editor
Manual Testing Events
ManualTesting Object

Highlight search results