Modifying a Web UI test created by using Test Genie

You can modify the natural language instructions that you provided to generate a test by using the AI-powered Test Genie. After modifying the instructions, you can regenerate the test to update it.

Before you begin

You must have completed the following tasks:
  • Ensured that you are a Team Space Owner, Project Owner, or Member with a Tester role to create or edit a test resource.
  • Read and understood the information in Edit branch overview.
  • Ensured that you have created a Web UI test by using Test Genie. See Creating a Web UI test with Test Genie.

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 project that contains the test assets.
    The Overview page of the project is displayed.
  3. Click Author > Test Editor.
    The Test Editor page and the test navigator panel are displayed.
  4. Click the .yaml file to open the test.
    The test steps are displayed on the Test Editor page.
  5. Click the Edit button displayed on the Test Editor page.

    The Edit button appears only when no active edit branch is selected.

    The Edit branch dialog is displayed.
    If the Edit branch dialog is not displayed, then go to step 7.
  6. Select an existing edit branch or create a new edit branch.
  7. Click the Test Genie tab.
    The instructions you entered during the test creation are displayed in the Steps text box under the Test Genie tab.
  8. Review, modify, or add to your natural language instructions in the text box.
  9. Click Generate.
    The Generate Test dialog is displayed.
  10. Perform the following steps in the dialog:
    1. Enter or modify the web address of the application under test in the Start URL field as required.
    2. Modify the AI provider from the configured AI Provider list if required.
  11. Perform one of the steps as required:
    • If you want to first clear the steps that are already generated, retain the selection in the Reset script before generation checkbox.
    • If you want to append the new steps after the last step in the generated test, clear the Reset script before generation checkbox.
  12. Click Generate.
    The test generation process starts.
  13. Click the Results tab and then click the Show in progress page icon Show in progress page.
    The Progress page is displayed. If the page contains many jobs, you must create a filter with the rule AI Assisted Generation to filter for AI-assisted jobs.
  14. Select View AI interactions from the listed actions in the Actions column of the AI-assisted job.
    A new tab opens with the console output. You can view the AI interactions and session logs on the progress page by refreshing the view.
  15. Switch to the test editor tab after the execution job is complete in the Progress page.
    The Reload button is displayed with the following warning: A newer version of this resource is available.
  16. Click Reload.
    The modified test steps are displayed.

Results

You have modified a test that was created by using Test Genie.

What to do next

You can perform the following steps: