Defining Test Configurations

You can reuse a test to test different use-cases. For each use-case you create a test configuration that uses a different data set. When working with a manual test, the data set of a test configuration contains values for your defined test parameters. When working with a UFT or a business process test, the data set can use an external test resource file.

In the following exercise, you will create a test configuration for each of the following credit cards: American Express, Visa, and MasterCard. You will then define the actual parameter values to be used when running these instances.

To define test configurations:

  1. Display the Test Configurations tab for the Credit Cards test.

    1. In the test plan tree, expand the Payment Methods folder, and select the Credit Cards test.

    2. Click the Test Configurations tab.

      By default, ALM created the Credit Cards test configuration.

  2. Rename the test configuration name to American Express.

    1. Under Name, click Credit Cards. Type American Express.

    2. Under Description, type: Test configuration for American Express.

  3. Assign data to the test configuration.

    1. Click the Data tab.

    2. Under Actual Value, click the top cell. Click the arrow and click in the box. Type: 2222-3333-4444-5555. Click OK.

    3. Under Actual Value, click the second cell. Click the arrow and click in the box. Type: American Express. Click OK.

  4. Add a new test configuration for Visa.

    1. Click the New Test Configuration button. The New Test Configuration dialog box opens.

    2. Type the following:

      Name: Visa

      Description: Test configuration for Visa.

    3. Click OK. The test configuration is added to the Test Configuration tab.

    4. Make sure the Visa test configuration is selected.

    5. Click the Data tab. Under Actual Value, click the top cell. Click the arrow and click in the box. Type: 3333-4444-5555-6666. Click OK.

    6. Under Actual Value, click the second cell. Click the arrow and click in the box. Type: Visa. Click OK.

  5. Add a new test configuration for MasterCard.

    1. Click the New Test Configuration button. The New Test Configuration dialog box opens.
    2. Type the following:

      Name: MasterCard

      Description: Test configuration for MasterCard.

    3. Click OK. The test configuration is added to the Test Configuration tab.

    4. Make sure the MasterCard test configuration is selected.

    5. Click the Data tab. Under Actual Value, click the top cell. Click the arrow and click in the box. Type: 4444-5555-6666-7777. Click OK.

    6. Under Actual Value, click the second cell. Click the arrow and click in the box. Type: MasterCard. Click OK.

  6. Version Control: Check in the test configurations.

    Check in the test and its test configurations. In the test plan tree, rightclick the Credit Cards test, and select Versions > Check In. Click OK to confirm.