Generate Test Cases For Web


You can generate test cases for web and mobile web applications using Testsigma’s Generative AI capabilities. You can provide input from multiple sources, including Jira, Figma, Xray, videos, and files (such as Images, PDFs). This article discusses generating test cases for web and mobile web apps using Gen AI capabilities in Testsigma.


Prerequisites

Before you begin, ensure that,


Steps to Generate Test Cases

  1. From the left navigation bar, go to Atto’s Home.
  2. Click Generate with AI.
  3. In the Generate Test Cases section, select Jira Requirements.
  4. In the Add Jira Tickets dialog:

    • From the Project dropdown, select the relevant Jira project.
    • Under Issue Type, select one of the following:

      • If you select Epic, choose the stories for which you want to generate test cases.
      • If you select Story, choose all the stories for which you want to generate test cases.

    Jira Inputs

  5. In the Add Jira Tickets dialog, click Files from the ADD FILES menu. Files
  6. In the Files Upload dialog:

    • Click Add Files.
    • Click Browse, and select one or more supported files.
    • Click Add Files.
    • Click Save.

    Files Input

  7. In the Prompt box, enter a detailed prompt that describes test cases want to generate. Prompt
  8. The Read existing test case library checkbox is selected by default. Clear this checkbox if you do not want the system to consider existing test cases while generating new ones. Reac Existing test case library
NOTE:
  • Once the Read existing test case library option is enabled, it cannot be unselected during the same session. The selection remains applicable throughout the session. However, you can enable this option at any time during a session if it was not selected earlier.
  1. Click Generate with AI. Prompt
  2. Wait for Generator Agent to generate multiple test cases are generated based on the selected inputs.

Next Steps

  1. After the test cases are generated, expand a category and select a test case. Select a test case
  2. In the Test Case Details dialog, go to the Manual Steps tab and review the generated steps. Manual Steps
  3. Click Edit to manually add a step or block, or to modify existing steps. Edit
  4. If you want to refine the steps using Atto, enter a prompt and click Refine manual steps. Refine Manual Steps
  5. Click Generate Automated Steps to convert the manual steps into NLP-based automated steps. Generate Automated Steps
  6. To execute the test before saving, hover over Run with Copilot and select the environment where you want to run the test steps. Copilot executes the steps automatically. Review the results to ensure everything works as expected, then click Save to Library to save the test case to your project. Run with Copilot
  7. To save the test directly, click Save to Library. In the Select Location dialog box, expand the required Feature and select the Scenario where you want to save the automated test case. Save to Library
NOTE: