GetNotes Method

Applies to TestComplete 15.47, last modified on January 20, 2023
The manual testing functionality is deprecated. Do not use it for creating new tests. It will be removed in a future TestComplete release.

Description

The GetNotes method returns the notes to the manual test step. They are shown in the Step notes and comment edit box of the Manual Testing editor.

Declaration

ManualTestingStepInfoObj.GetNotes()

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

A string that holds the notes and comments to the step.

Example

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

JavaScript, JScript

function ManualTestStepInfo()
{

  var ID, Info, Notes;
  // Specifies the test step ID
  ID = "STEP_1";
  // Obtains information on the test step with the specified ID
  Info = ManualTests.NewManualTest.GetStepInfo(ID);
  // Obtains the test step description
  Notes = Info.GetNotes();
  Log.Message(Notes);

  ...

}

Python

def ManualTestStepInfo():
  # Specifies the test step ID
  ID = "STEP_1"
  # Obtains information on the test step
  Info = ManualTests.NewManualTest.GetStepInfo(ID)
  # Obtains the test step description
  Notes = Info.GetNotes()
  Log.Message(Notes)

VBScript

Sub ManualTestStepInfo

  ' Specifies the test step ID
  ID = "STEP_1"
  ' Obtains information on the test step with the specified ID
  Set Info = ManualTests.NewManualTest.GetStepInfo(ID)
  ' Obtains the test step description
  Notes = Info.GetNotes
  Log.Message Notes

  ...

End Sub

DelphiScript

procedure ManualTestStepInfo();
var ID, Info, Notes;
begin

  // Specifies the test step ID
  ID := 'STEP_1';
  // Obtains information on the test step with the specified ID
  Info := ManualTests.NewManualTest.GetStepInfo(ID);
  // Obtains the test step description
  Notes := Info.GetNotes;
  Log.Message(Notes);

  ...

end;

C++Script, C#Script

function ManualTestStepInfo()
{

  var ID, Info, Notes;
  // Specifies the test step ID
  ID = "STEP_1";
  // Obtains information on the test step with the specified ID
  Info = ManualTests["NewManualTest"]["GetStepInfo"](ID);
  // Obtains the test step description
  Notes = Info["GetNotes"]();
  Log["Message"](Notes);

  ...

}

See Also

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

Highlight search results