![]() |
The manual testing functionality is deprecated but still available in TestComplete. While we recommend using other approaches for new tests, you can continue to create and run manual tests if needed.. |
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);
...
}
{
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
' 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;
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"]);
...
}
{
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