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 two possible paths that can be taken. Therefore, Blueprint generates two 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 two path variations in this use case. Therefore, there are a total of two tests generated for this use case. There are a number of columns that provide you with data:

Here is 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 wizard 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, a collection, or a baseline or review, then click Next.

    The Select Use Cases screen appears.

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

    The following options are available:

    • Selected use case only (default): Only the selected use cases are included in the test plan.
    • Selected use case and children: The test plan also generates tests for all included use cases and external flow use cases.

      By default, up to 10 levels of external flow use cases are generated. As part of this step, you can modify 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.

    test plan generation job created and queued

    The Test Plan Generation wizard closes and a dialog is displayed, confirming that the project export job has been placed in the Job Management queue.

  6. Click OK to close the dialog.

  7. To continue, you will need to access the completed job.

    The amount of time the queued job requires depends on how extensive use-case selections were, and how busy the job queue is.

    You can access the job one of two ways:

    • Notifications: When the job has completed, a notification icon () appears in the status bar, in the bottom leftmost part of the application window. (see "About notifications" for more information.)

      Click the notification icon. If a Completed job status appears, click anywhere in the dialog.

      test generation notification message

    • The Job Management queue: Locate the job in the Job Management dialog (Menu button, Manage, Jobs). (see "About job management" for more information.)

      Confirm its status is Completed. Click the job row, then click Show Result.

    After accessing the completed job, the Test Plan Generation wizard is displayed, resuming at the Review Test Plans screen.

  8. ClosedClick Download generated test(s) to save the tests as a .csv file.

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

  9. If your project does not have any ALM targets, click Close.

    If your project has ALM Targets, click Next to export the tests to an ALM system.

    Project administrators manage your ALM Targets.

  10. On the Select Target screen, select the ALM system that you want to export the tests to, and then click Finish.

    Clicking the Cancel button closes the dialog without exporting the tests.

Learn More

Managing ALM targets and security

Importing and Exporting