This topic explains how you can temporary disable operations in scenarios not to simulate them during the test run.
Disabling Operations
-
Open your scenario in the Scenario editor. The Scenario Explorer lists all operations in the scenario.
-
To show Page operations in the scenario, enable grouping by pages. To do this, click Pages on the editor’s toolbar.
To show Connection operations in the scenario, enable grouping by connections. To do this, click Connections on the editor’s toolbar.
To show requests to additional page resources, click Show Other Requests on the editor’s toolbar.
-
Select the needed operation in the editor. Use CTRL+click and SHIFT+click for multi-selection.
-
Right-click the operation and clear the Enable check box in the context menu.
– or –
Right-click the operations and then click Disable Select check box.
LoadComplete will disable the selected operations and grey them out in the Scenario editor. LoadComplete will not simulate them during the test runs.
If a disabled operation has child operations, LoadComplete will not simulate them during the test run either.
To learn how to exclude all requests to a specific host, see Excluding Servers From Scenario Simulation.
Enabling Operations
-
Open the scenario in the Scenario editor. The Scenario Explorer lists all operations in the scenario.
-
To show Page operations in the scenario, enable grouping by pages. To do this, click Pages on the editor’s toolbar.
To show Connection operations in the scenario, enable grouping by connections. To do this, click Connections on the editor’s toolbar.
To show requests to additional page resources, click Show Other Requests on the editor’s toolbar.
-
Select the needed disabled operation in the editor. Use CRTL+click and SHIFT+click for multi-selection.
-
Right-click the operation and select the Enable check box in the context menu.
– or –
Right-click the operations and then click Enable Selected.
LoadComplete will enable the selected operations. When you run the scenario, it will simulate all enabled operations.
If you enable WebSocket server messages in the recorded scenario (LoadComplete disables them by default), LoadComplete will treat these messages as synchronous messages. It will track them during the test run and compare them with recorded messages to check whether the server returns expected data.
Toggling Operation State
-
Select the needed operations in the editor. Use CRTL+click and SHIFT+click for multi-selection.
-
Right-click the operations and then click Toggle Selected.
LoadComplete will enable the disabled operations and disable the enabled operations.
See Also
Editing Scenarios
Scenario Editor - Common Tasks
Excluding Servers From Scenario Simulation
Support for WebSocket Protocol (HTML5)