Running Activation Test Cases

After you have created an activation test case (test work order), you can run it in different environments. The purpose is to test, within Design Studio, the activation order completion for a cartridge to verify that a work order is sent to the ASAP environment.

You can run test cases for your project in 2 different ways:

  • From the Activation Test Case editor (a single test case of your project can be run in a selected environment).

  • From the Activation Project editor (either a single test case can be run, or multiple test cases of your project can be run at the same time in a selected environment.

When running activation test cases, see the following topics:

About Test Case Configuration

Every time you run a test case, a random, unique integer is generated (for example, 770250909). If in the Test Execution section of the Activation Test Case editor you leave the Primary Key Pattern field blank or enter {0}, the generated integer will be used as primary key to identify the test case (for example, 770250909). If you enter {1} as the pattern, the test case name will be used as primary key (for example, TESTCASE001).

If you enter {1}-{0} in the Primary Key Pattern field, the primary key be the name and generated integer concatenate (for example, TESTCASE001-770250909). You can concatenate other integers or letters (for example, a user name) with the basic patterns to build specific patterns for creation of primary keys. The following table shows some examples of patterns you could use for TESTCASE001 (and its generated integer) to create various primary keys.

Pattern Generated integer Primary Key
(blank) 3782695 3782695
{0} 3782695 3782695
{1} 3782695 TESTCASE001
{1}-{0} 3782695 TESTCASE001-3782695
USER 3782695 USER
USER-{0} 3782695 USER-3782695
{1}-USER-{0} 3782695 TESTCASE001-USER-3782695

Related Topics

Running Activation Test Cases

Creating Activation Test Cases

Testing ASAP Cartridges in Design Studio

Running Test Cases from the Activation Test Case Editor

To run a test case from the Activation Test Case editor:

  1. In the Test Execution area of the Activation Test Case editor, specify the following:

    • The Test Order Primary Key Pattern (for primary key).

    • The desired Timeout value for the test (default is 30 seconds)

    • The Order Completion Status you expect based on the parameters used (either orderCompleteEvent or orderFailEvent).

      The activation order passes the test if it meets the expected result. For example, if the expected result for the order is to fail but it completes instead, then the order has failed the test.

    • The Environment in which you want to run your test.

  2. Click Run to run the test.

    A test status of PASS or FAIL appears in the Console view. Additionally, information will appear for problems encountered when running the test. If no problems are encountered and the order has passed, then Design Studio submits the work order to the ASAP environment.

Related Topics

Running Activation Test Cases

Creating Activation Test Cases

Testing ASAP Cartridges in Design Studio

Running Test Cases from the Project Editor

To run test cases from the Project editor:

  1. In the Activation Project editor, click the Testing tab.

    All test cases you created for the project are displayed and are ready to be run at the same time.

    Alternatively, you could prepare to run one or multiple test cases by deselecting the Include all from Project check box, clicking Select, and then selecting one or more specific test cases from a selection dialog box.

  2. From the Environment list, select the environment in which you want to run your tests.

  3. Do any one of the following:

    • Click Run All to run all test cases from your project simultaneously.

    • Click Run to select only one test case from the list.

    A test status of PASS or FAIL appears in the Console view. Additionally, information will appear for problems encountered when running the test. If no problems are encountered and the order has passed, then Design Studio submits the work order to the ASAP environment.

Note:

When selecting Run All to run all test cases at once, you have two options for displaying the test results:
  • Option 1: Display the results for each test case in a separate console (by leaving the Separate Console for each Test Case check box checked in the Project editor). You can access a specific console by clicking the down-arrow beside the Display Selected Console icon. This displays a list of all available consoles currently on the system, including the consoles for each test case, and enables you to view the results for any each case. For example, if you are viewing results for Test007 and want to view and compare the results for Testcase_Check, then simply click the down-arrow and select Testcase_Check from the list. The results for the selected test case will appear in a separate console.

  • Option 2: Display the results for all test cases in one console (by deselecting the Separate Console for each Test Case check box in the Project editor). The results for all test cases will appear in one console.

Note:

For additional information on consoles and associated icons, refer to the Eclipse online help.

Related Topics

Running Activation Test Cases

Creating Activation Test Cases

Testing ASAP Cartridges in Design Studio