6.8 Managing Tests

6.8.1 Editing Tests

To edit a test scenario:

  1. In the Explorer pane, expand the Elements root element > Experience Manager Adapter > Administration > Test Administration > Tests.

  2. Right-click a test, then click Properties to open the Status property page.

  3. In the left pane, click Test to open the Test property page.

  4. Use the Scenario icons to add a private scenario or a shared scenario, edit a scenario, or remove a scenario.

    Scenario Icon

    Function

    Add Shared Scenario

    Add Private Scenario

    Edit Scenario

    Remove Scenario

    Move Scenario Up or Down

  5. Click the Apply button to save the changes.

6.8.2 Copying Tests

Do the following to copy tests:

Creating a Test by Copying an Existing Test

To create a test by copying an existing test:

  1. In the Explorer pane, expand the Elements root element > Experience Manager Adapter > Administration > Test Administration > Tests.

  2. Right-click a test, then click Test > Copy.

  3. In the Test|Copy dialog box, type a new test name.

    It is not possible to edit the scenarios in this dialog box.

  4. Click the Copy button.

    The dialog box closes and the new test name displays in the Explorer pane:

Editing the Scenarios in a Copied Test

To edit the scenarios in a copied test:

  1. Right-click the test element in the Explorer pane, then click Properties to open the Status property page.

  2. In the left pane, click the Test tab to open the Test property page.

  3. Use the Scenario icons to add a private scenario or a shared scenario, edit a scenario or remove a scenario.

  4. Click the Apply button to save the changes.

6.8.3 Debugging Tests

Use the Script Debugger to develop and test scripts. See the Operations Center 5.6 Scripting Guide for details on its features.

To load the Debugger:

  1. In the Explorer pane, expand the Elements root element > Experience Manager Adapter > Administration > Test Administration > Tests.

  2. Right-click a test, then click Test > Debugger to open the Debugger in a new window.

6.8.4 Adding a Test Timeout Parameter

The test.timeout parameter can be used to cancel a test that runs longer than a specified amount of time. When a test exceeds the timeout, the test is cancelled and the current scenario is set to CRITICAL. The current scenario is allowed to finish running, but subsequent scenarios are cancelled.

To set the test.timeout parameter:

  1. In a text editor, open the /OperationsCenter_ExperienceManager_install_path/config/monitor.properties file.

  2. Set or edit the test.timeout parameter to the number of milliseconds to time out when exceeded by a test. The default is 30 minutes.

  3. Save your changes.

6.8.5 Deleting Tests

To delete a test:

  1. In the Explorer pane, expand the Elements root element > Experience Manager Adapter > Administration > Test Administration > Tests.

  2. Right-click a test, then click Test > Remove to open a confirmation dialog box.

  3. Click the Yes button to remove the test from the Explorer pane.