Exploring Test generation

  • Release version: Zurich
  • Updated July 31, 2025
  • 2 minutes to read
  • Summarize
    Summarized using AI
    This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.

    Summary of Exploring Test generation

    The Test generation application in ServiceNow revolutionizes test automation by using AI to create comprehensive test scripts from high-level, natural language test requirements. This reduces manual effort and technical complexity, enabling users to generate, refine, and finalize test cases efficiently without needing to save intermediate versions.

    Show full answer Show less

    The application supports multiple AI model providers, including Now LLM Service, Azure OpenAI, Google Gemini, and Anthropic Claude on AWS. Configuration of AI options is managed via AI Control Tower and Now Assist Admin console, ensuring flexible and controlled use of generative AI capabilities.

    User Roles and Access

    • systemadmin: Required for setup and writing Test generation tests.
    • atftestadmin: Needed to setup and write Automated Test Framework (ATF) tests and access Test generation functionalities.
    • atftestdesigner: Can write and debug ATF tests and utilize the Test generation application.
    • atfwsdesigner: Has access to web service modules for test development, can build web service and ATF tests, and use Test generation features.

    Key Benefits

    • Automated Test Creation: Generates tests from simple descriptions, saving time and effort.
    • Editable Test Scripts: Allows users to preview and refine generated tests before finalizing them.

    Next Steps

    To effectively apply Test generation in your ServiceNow environment, explore detailed usage instructions and reference materials available within the platform under "Using Test generation" and "Test generation references."

    If you are new to Test generation application, read this overview to learn what the app can do.

    Follow the gif to create tests from natural language leveraging AI power.

    Gif showing the working of Test generation

    Test generation overview

    Revolutionize your test automation with Test generation application. Simply outline your test requirements, and Test generation will generate a comprehensive test script. You can then refine the generated test to meet your exact specifications. It helps you achieve the following:
    • Test generation store application simplifies the process of creating test cases, significantly reducing manual effort and time.
    • You can only provide high-level test requirements, making the process more accessible and less technical.
    • Test generation application generates comprehensive test cases, ensuring thorough testing coverage.
    • You can keep modifying the prompt without saving the generated tests until the final objective has been attained.

    You can use Now LLM Service, Azure OpenAI, Google Gemini or Anthropic Claude on AWS as the AI model provider for all generative AI skills and AI agents. Use the Configuration Controls in AI Control Tower to define which options are available, then set the skill-level preferences in the Now Assist Admin console. For more information, see Large language models on the ServiceNow AI Platform®.

    Test generation users

    Test generation has the following users.
    Users Description
    system_admin This role is required for the setup of the Test generation store application and write Test generation tests.
    atf_test_admin This role is required to setup and write ATF tests, access the Test generation application, and write Test generation tests.
    atf_test_designer This role can write and debug ATF tests, access the Test generation application and write Test generation tests.
    atf_ws_designer This role can access web service modules for test development, build web service tests, write ATF tests, access the Test generation application and write Test generation tests.

    Test generation benefits

    Benefit Feature Users
    Automate test generation Generate a test using Test generation System Administrator
    Edit a generated test after the preview Edit a generated test using Test generation System Administrator

    What to explore next

    To learn more about using Test generation, see: