Test creation with Test Genie

Test Genie is an AI-powered capability in HCL DevOps Test Hub (Test Hub) that automatically translates your natural language instructions into usable test scripts for web applications.

Traditionally, creating automated tests requires manually recording interactions against a live application or writing a test code. Test Genie accelerates this process so that you can define test steps by using plain text prompts. You provide a descriptive prompt, such as adding specific items to a shopping cart and proceeding to checkout, and the AI generates the corresponding test assets.

To improve the accuracy of the generated test steps, Test Genie uses the application context. When you initiate a generation request, the system passes your natural language steps along with the application URL and any application descriptions to the AI model. This context helps the AI understand the target interface and correctly map your instructions to the underlying web elements.

Supported AI providers

To use Test Genie, you must configure at least one AI provider in the Infrastructure > Cloud Credentials page of Test Hub. Test Genie supports the following AI providers:

  • OpenAI
  • Anthropic
  • Ollama

For optimal results, you can use OpenAI with the GPT-5-mini model.

Capabilities and limitations

Test Genie streamlines the initial creation of test scripts, but it operates within specific boundaries regarding test validation and test modification. The following points describe the scope of Test Genie:

  • Generative scope: Test Genie generates the navigational and transactional steps of a test, such as clicking buttons, entering text, and navigating between pages. It also provides test generation details, including the model used and token usage metrics.
  • Iterative modifications: You can use AI prompts to modify or append steps to a test that Test Genie has already generated. To modify the AI-generated steps, you must submit a revised prompt and then generate the test again.
  • Verification points: The AI does not automatically generate or insert verification points into the test script. You must manually add verification points to the generated steps to validate application behavior and data.
  • Datasets: Test Genie does not create datasets or automatically link existing dataset files to the generated test. You must configure datasets manually.