Creating Activation Test Cases

To create an activation test case:

  1. Select Studio, then select Show Design Perspective.

  2. Select Studio, select New, select Activation, then select Activation Test Case.

    The Studio Model Entity wizard appears with the project name selected by default.

  3. Enter a name for the activation test case.

  4. (Optional) Select a location for the entity.

    By default, Design Studio saves the entity to your default workspace location. You can enter a folder name in the Folder field or select a location different from the system-provided default. To select a different location:

    1. Click the Folder field Browse button.

    2. Navigate to the directory in which to save the entity.

    3. Click OK.

  5. Click Finish.

    In the Studio Projects view, the new Activation Test Case entity appears under your project folder.

  6. Double-click the Activation Test Case entity to display the Activation Test Case editor.

  7. Click the Service Actions tab.

  8. In the Test Execution area, do the following:

    • In the Test Order Primary Key Pattern field, do the following:

      • To identify the test case with an auto-generated integer, enter 0.

        See "About Test Case Configuration" for more information.

      • To identify the test case with the name of the test appended with a random, auto-generated, integer, enter 1.

    • In the Timeout (seconds) field, enter the number of seconds for a work order to process before it is dropped from the work order processing queue.

    • From the Order Completion Status list, set the notification for a work order that notifies you whether the work order was completed or failed.

    • From the Environment list, select the activation environment for a work order in which it will get processed.

  9. In the Service Actions area, click Add to open the Service Action Selection dialog box.

  10. On the Service Action Selection dialog box, you can do any one of the following:

    • Select a service action for testing. Do any one of the following and repeat for additional service actions:

      • To view all available service actions, enter an asterisk into the search field.

      • To filter for specific service actions, enter any character or string of characters contained in the service action name to display only the service actions containing those characters.

      • Select the service action you want for the test case and click OK.

        The service action name and description appear in the editor.

    • Create a service action for testing. Do the following:

      1. Click New to create a service action entity for testing.

        The Service Action Wizard appears.

      2. Enter an action or select a previously defined action from the list (for example, ADD, MOD, DEL, or QUERY).

      3. Enter a name for the entity (for example, SUBSCRIBER, GSM-SUBSCRIBER, ROUTE, TRUNK, or LINE).

      4. (Optional) Deselect Use recommended name and location to manually edit the name of the entity and browse for a location.

      5. Click Finish.

        In the Studio Projects view, the new service action entity appears in the Service Actions folder.

  11. Select a service action in the Service Actions area to populate the Service Actions Parameters area with associated data.

    If there is a service action parameter of type XML, then click the XML Value button to specify the .xml file associated with the parameter. See "Using XML Value in Service Action" for more information.

  12. Click Add to enable addition of custom parameters, or select specific parameters and click Remove to remove them.

  13. (Optional) For a service action parameter of type XML, click the XML Value button to specify the .xml file associated with the parameter.

  14. Select the Order Data tab of the Activation Test Case editor.

  15. Click Add in the Global Parameters area to enable addition of a global parameter.

    Enter the parameter name and value. Repeat this for any additional global parameters you want to add.

    Note:

    A global parameter's value equals identical values of several service action parameters in the work order. For example, if several parameters listed in the Service Actions tab have the value Toronto, you can represent these by a global parameter, eliminating the need to enter a value for each separately.
  16. In the Extended Work Order Properties area, click Add to enable addition of an extended work order property.

    Enter the property name and value. Repeat this for any additional extended work order properties you want to add.

  17. Save your test case.

    You are now ready to set up and run your activation test case.

Related Topics

Running Activation Test Cases

Testing ASAP Cartridges in Design Studio

Activation Test Case Editor

Using XML Value in Service Action

To use the XML value in a service action that has the XML value parameter:

  1. On the Activation Test Case editor, in the Service Actions area, add service actions.

    See "Creating Activation Test Cases" for more information.

  2. In the Service Actions area, click a service action.

    In the Service Action Parameters area, the service action parameters appear.

  3. Click the row which has Type as XML.

    The XML Value button is enabled.

    Note:

    The XML Value button is enabled only for an XML type.
  4. Create an .xml file.

  5. In the Package Explorer view, add the .xml file under the model folder in the current cartridge project.

  6. Select Project, then select Clean.

  7. In the Service Action Parameters area, click the row which has an XML type.

  8. Click the XML Value button.

    The XML Parameter Type Source dialog box appears.

  9. Select the .xml file which contains the appropriate parameter values.

  10. Click OK.

    In the Service Action Parameters area, the path of the .xml file appears in the Value column.