ManualTestStep Object

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

The ManualTestStep object is used to create manual test steps from scripts. The object provides a scripting interface to individual test steps.

Members

Example

The following example demonstrates how to obtain the ManualTestStep object in script.

JavaScript, JScript

function ManualTest()
{
  var RootStep, TestStep;
  // Clears the test properties
  ManualTestBuilder.Reset();

  // Specifies the test name
  ManualTestBuilder.Name = "NewManualTest";

  // Obtains the root step of the manual test and specifies its properties
  RootStep = ManualTestBuilder.Root;

  // ...

  // Adds a new substep and specifies the test step properties
  TestStep = RootStep.AddSubstep();
  // ...

  // Adds more test steps

  // ...

  // Saves the test to a file
  ManualTestBuilder.Save("C:\\Work Folder\\ManualTest\\", false);

}

Python

def ManualTest():
  # Clears the test properties 
  ManualTestBuilder.Reset()
  # Specifies the test name 
  ManualTestBuilder.Name = "NewManualTest";
  # Obtains the root step of the manual test and specifies its properties 
  RootStep = ManualTestBuilder.Root;
  # ... 
  # Adds a new substep and specifies the test step properties 
  TestStep = RootStep.AddSubstep()
  # ...
  # Adds more test steps
  # ...
  # Saves the test to a file 
  ManualTestBuilder.Save("C:\\Work Folder\\ManualTest\\", False)

VBScript

Sub ManualTest

  ' Clears the test properties
  ManualTestBuilder.Reset

  ' Specifies the test name
  ManualTestBuilder.Name = "NewManualTest"

  ' Obtains the root step of the manual test and specifies its properties
  Set RootStep = ManualTestBuilder.Root

  ' ...

  ' Adds a new substep and specifies the test step properties
  Set TestStep = RootStep.AddSubstep
  ' ...

  ' Adds more test steps

  ' ...

  ' Saves the test to a file
  Call ManualTestBuilder.Save("C:\Work Folder\ManualTest\", False)

End Sub

DelphiScript

procedure ManualTest();
var RootStep, TestStep;
begin
  // Clears the test properties
  ManualTestBuilder.Reset;

  // Specifies the test name
  ManualTestBuilder.Name := 'NewManualTest';

  // Obtains the root step of the manual test and specifies its properties
  RootStep := ManualTestBuilder.Root;

  // ...

  // Adds a new substep and specifies the test step properties
  TestStep := RootStep.AddSubstep;
  // ...

  // Adds more test steps

  // ...

  // Saves the test to a file
  ManualTestBuilder.Save('C:\Work Folder\ManualTest\', false);

end;

C++Script, C#Script

function ManualTest()
{
  var RootStep, TestStep;
  // Clears the test properties
  ManualTestBuilder["Reset"]();

  // Specifies the test name
  ManualTestBuilder["Name"] = "NewManualTest";

  // Obtains the root step of the manual test and specifies its properties
  RootStep = ManualTestBuilder["Root"];

  // ...

  // Adds a new substep and specifies the test step properties
  TestStep = RootStep["AddSubstep"]();
  // ...

  // Adds more test steps

  // ...

  // Saves the test to a file
  ManualTestBuilder["Save"]("C:\\Work Folder\\ManualTest\\", false);

}

See Also

Creating Manual Tests From Scripts
Manual Testing
ManualTestBuilder Object

Highlight search results