Applies to LoadComplete 4.97, last modified on May 20, 2019

Scenarios in LoadComplete consist of:

  • Operations that simulate traffic (connections, HTTP requests, WebSocket messages). You only can add them to a scenario by recording them or by copying and pasting them.

    The operations that simulate traffic must follow the hierarchy:

    • Pages must be child operations (direct or indirect) of the top-level Scenario node.

    • Connections must be child operations of Page operations.

    • Requests (HTTP requests and WebSocket messages) must be child operations (direct or indirect) of the Connection operations.

  • Operations that control the traffic flow (for example, the If operation, Loop operation, and so on). You add these operations to your scenario in the Scenario editor during the design time.

    These operations can reside on any level of the scenario hierarchy.

    Notes:

    • The Rendezvous Point operation can reside only on the Page level of the scenario hierarchy.

    • If the Scenario editor shows pages and connections, these operations cannot be placed between a page and a connection.

You can change operation order in scenarios and remove operations from the scenario.

Adding Operations to Scenarios
  1. Open your scenario in the Scenario editor. To do this, right-click the needed scenario in Project Explorer and then click Edit or double-click the scenario.

  2. Switch to the Operation Repository panel and select the needed operation.

  3. Switch to the Scenario Explorer panel.

  4. Move the mouse cursor to the place in the scenario where you want to place it. While you are moving the mouse pointer, LoadComplete will change the pointer to reflect the position to which it will insert the operation.

    Adding a new operation to the scenario
  5. Click in the panel to add the operation to the selected position.

Making Operations Children of Other Operations

Some operations can have child operations (for example, Loop, While, Group, Page, and so on). LoadComplete will simulate child operations within their parent operation body.

To add a new child operation to an operation in a scenario:

  1. Select the needed operation in the Operation Repository panel and move the mouse cursor to the parent operation in the scenario.

    – or –

    In your scenario, select an existing operation that you want to make a child to another operation and then drag it to the parent operation.

  2. The mouse pointer will indicate the insertion point for the operation:

    Adding a child operation

To make an operation a parent for other operations:

  1. Select the needed operation in the Operation Repository panel and move the mouse cursor to the operation you want to be a child of a new parent operation.

    – or –

    In your scenario, select an existing operation that you want to make a parent to another operation and then drag it to the child operation.

  2. The mouse pointer will indicate the insertion point for the operation:

    Adding a parent operation
Request operations only can be children (direct or indirect) of a Connection operation.

Connection operations only can be children of page operations.

Copying and Pasting Operations

You can also copy or cut operations to the clipboard and paste them from the clipboard.

To copy or cut operations:

  1. Select an operation in the Scenario Explorer (use Ctrl+click and Shift+click for multi-selection).

  2. Right-click the selected operations and then click Copy or Cut.

To paste operations from the clipboard:

  1. In the scenario, select the operation that will be the parent for the operations you want to paste. (For information on the scenario hierarchy, see above.)

  2. Right-click the parent operation and then click Paste.

    If the selected operation cannot be the parent of the operations you want to paste, the Paste command will not be available.
  3. LoadComplete will insert operations from the clipboard to the scenario as the children of the selected operation.

Copying and Pasting Requests, WebSocket Messages, and Connections

You cannot add new HTTP requests, WebSocket messages, and connections to your scenario directly. However, you can copy and edit existing ones.

To copy or cut requests, messages, or connections:

  1. Select the needed operation in the scenario (use Ctrl+click and Shift+click for multi-selection).

  2. Right-click the selected operations and then click Copy or Cut.

To paste requests or WebSocket messages from the clipboard:

  1. Important: Make sure that your scenario shows connections:

    Show connections in the scenario

    You can only insert requests and WebSocket messages as child items of the Connection operation.

  2. In the scenario, select a connection within which you want to simulate the requests or messages.

  3. Right-click the connection and then click Paste:

    Paste requests or WebSocket messages from the clipboard to the connection
    If the selected operation cannot be a parent of the operations you want to paste, the Paste command will not be available.
  4. LoadComplete will insert requests or WebSocket messages from the clipboard to the scenario as children of the selected connection.

To paste connections from the clipboard:

  1. Important: Make sure that your scenario shows pages:

    Show pages in the scenario

    You can only insert connections as child items of the Page operation.

  2. In the scenario, select a page within which you want the connection to be simulated.

  3. Right-click the page and then click Paste:

    Paste connection from the clipboard
    If the selected operation cannot be a parent of the operations you want to paste, the Paste command will not be available.
  4. LoadComplete will insert the connection and all its child operations from the clipboard to the scenario as a child of the selected page.

Changing Operation Order

To change the operation order in the scenario, drag the operation to the needed position in the scenario.

Deleting Operations

Right-click the operation in the scenario and then click Delete.

– or –

Select the operation and press Del.

See Also

Editing Scenarios
Recording User Scenarios
Operation Reference

Highlight search results