Creating an empty stub

You can create an empty stub. You can add content later by using the stub editor.

Before you begin

This method requires a transport and an operation. See Options for creating test resources.

Procedure

  1. Open the HCL DevOps Test Integrations and APIs (Test Integrations and APIs) Test Factory perspective.
  2. Select the operation for which to create the stub.
  3. Click the Create New Stubs button () on the toolbar of the Test Factory perspective.

    Alternatively, right-click the operation and click New > Stubs > Stub on the shortcut menu.

    Note: If at least one stub has already been created, you can right-click the Stubs folder or an existing stub in that folder and select New > Stub.

    The Create new Stub dialog is displayed.

  4. In the Name field, enter a name for the stub.
  5. Click OK.

    The stub is opened for editing.

    For information about using the Stub Editor to modify or enhance an empty stub, refer to Modifying message-based stubs.

  6. After making any required changes to your stub, you can save it by clicking the Save button () on the Test Integrations and APIs toolbar.

    Alternatively, click File > Save on the menu bar or press CTRL+S.

Results

The stub is now ready to run.

For information about running message-based stubs, refer to Publishing and running stubs.