You are here: Integrating > Generating and exporting tests

About test generation

Overview

Test generation allows you to generate test plans from your use cases. You can also export the tests to an ALM target.

Blueprint generates a test for each path variation that can be taken in a use case. For example, if you have a simple use case with one alternate flow, there are 2 possible paths that can be taken. Therefore, Blueprint generates 2 tests for this use case. One of the tests would cover the main flow of the use case, and the second test would take the alternate flow.

Follow the example below to learn more about how test generation works in Blueprint.

Example

Here's the simple use case that we will use to generate a test plan:

A test plan was generated with the following options:

Here's the an example of the generated test plan in .csv format:

Because the example only contains one alternate flow, there are 2 path variations in this use case. Therefore, there are a total of 2 tests generated for this use case. There are a number of columns that provide you with data:

Here's an example of the one of the tests after exporting to HP ALM:

Tasks

Generating a test plan

When you generate a test plan, you can view the generated tests in .csv format. You can also export the tests to an ALM system if your project administrator has configured an ALM target and granted you access to it.

To generate a test plan from one or more use cases:

  1. ClosedClick the Test Plans button on the ribbon (Import/Export tab, Export group).

    The Select Project screen of the Test Plan Generation dialog is displayed.

  2. ClosedSelect the project that contains the use cases that you want to generate tests for, and then click Next.

    The Select Revision screen appears.

  3. ClosedSelect whether you want to generate tests from data in live artifacts, or data from a baseline or review, and then click Next.

    The Select Use Cases screen appears.

  4. ClosedPlace a check mark beside all use cases that you want to generate tests for, and configure the use case options if required.

    The following options are available:

    • Selected use case only (default): If this option is chosen, only the selected use cases are included in the test plan.
    • Selected use case and children: If this option is chosen, the test plan also generates tests for all included use cases and external flow use cases.
      • Generate only for 10 (default) levels: Defines the number of levels to include in the tests.
    • Break loop-backs: If selected, loop-backs are broken in order to reduce the number of tests in the test plan. The resulting test plan still provides full test coverage but does not cover all permutations of conditions.

  5. ClosedClick Next to generate the tests.

    Please wait while the test plan is generated. The Review Test Plans screen is displayed after the test generation is complete.

  6. ClosedClick Download tests to CSV to save the tests as a .csv file.

    You can open this file in Microsoft Excel to review the test plan.

  7. ClosedClick Next or Finish.

    The Next button is only available if your project contains ALM targets. If your project contains ALM Targets, you can click Next to export the tests to your ALM Target.

  8. On the Select Target screen, select the target that you want to export the tests to, and then click Finish. Or, click the Cancel button to close the dialog without exporting the tests to an ALM target.

Learn More

Managing ALM targets and security

Importing and Exporting