Creating a suite with AI-generated scenarios and tests

You can create a scenario-based suite and then generate tests for all scripts in a single run by using AI-powered Test Genie. This bulk generation helps to streamline test creation for multiple scripts in a single run.

Before you begin

You must have completed the following tasks:

Procedure

  1. Log in to Test Hub.
    The Projects page of the initial team space is displayed.
  2. Click My projects > project_name to open the target project.
    The Overview page of the project is displayed.
  3. Click Author > Test Editor.
    The Test Editor page and test navigator panel are displayed.
  4. Perform any of the following actions:
    • Click Create Asset > Create Suite on the Test Editor page.
    • Click the Action Menu icon and select Suite.
    • Right-click the application in the test navigator panel and select New > Suite.

    The Edit Branch dialog is displayed if there is no edit branch active. Otherwise, go to step 6.

  5. Select an existing edit branch or create a new edit branch.
  6. Perform the following steps in the Create Suite dialog to create a suite:
    1. Enter a name for the suite in the Asset Name field.
    2. Select an existing application to save the suite asset you create.
    3. Click Next.
    4. Select Create suite using requirements and designs from the Select Source list.
      The Context and AI Provider sections are displayed to gather suite-generation inputs.
    5. Enter the details of the suite in Summary.
    6. Optional: Enter the test scenario details by specifying the number of scenarios to generate or describing a specific scenario in Scenarios.
    7. Optional: Upload screenshots of the UI for which you are generating tests in Reference Images.
    8. Select an AI provider from the configured AI Provider list.
    9. Click Done.
      The suite generation progress is displayed, and after the suite is generated, the Reload button is displayed in Test Editor.
  7. Click Reload.
    The new suite is displayed with generated empty tests that contain Open steps and AI-generated intents. You can click the Show AI Intent icon Show AI Intent to view the step details that are generated for test creation.
  8. Optional: Open each empty test to edit the AI-generated intent in the Test Genie tab and save the changes.
  9. After validating intents, click the Generate Tests icon Generate Tests from the suite toolbar.
    The Generate Test dialog is displayed.
  10. Enter the application URL in Start URL if it is not displayed.
  11. Select an AI provider from the configured AI Provider list.
  12. Click Generate.
    All tests in the suite are generated in one flow, and tests are uploaded incrementally as each test generation is completed.

Results

You have created a suite with AI-generated scenarios and generated tests for all scripts in the suite.

What to do next

You can perform the following tasks: