Test Cases for Web Applications


Using Testsigma, you can easily create test cases for web applications using Atto and the AI-powered Copilot. This article walks you through all four approaches to help you get started quickly.


Prerequisites

Before you begin, ensure that:

  1. You have referred to the Documentation on creating projects.
  2. You have referred to the Documentation on creating folders.
  3. Testsigma Terminal is installed and the Copilot is ready.
  4. You have referred to the Documentation on creating Elements.

Steps to Generate Test Cases Using Atto

Please refer to the documentation on generating test cases using Atto for web applications.


Steps to Generate Test Cases Using Copilot

  1. From the left navigation bar, go to Create Tests > Test Cases. Test cases
  2. In the Test Case Explorer section, expand a Feature and click the + icon next to the required Scenario. This opens a dialog box. New test case
  3. In the dialog box, validate the target feature and scenario, enter the name in the Test Case Name input box, and click Create. Create
  4. In the Test Case Details page, enter the URL in which you want to perform the actions and capture the test steps, and click Create Step. Create step
  5. Click Copilot. Copilot
  6. In the Copilot overlay, click Launch. Launch
  7. The Copilot opens a new browser window and executes the URL.
  8. In the Copilot dialog, click Rec and perform the actions on the page that you want to capture as test steps. Rec
  9. Once you have recorded all the necessary steps, click Stop recording. Stop recording
  10. Click Exit Copilot. A dialog box opens. Exit Copilot
  11. In the Stop & Exit Copilot dialog, click Stop Copilot. Stop copilot

All the recorded test steps will now be available in the Test Case Details page, ready for review and execution.

NOTE:
  • In the Copilot dialog, you can click Generate Steps to automatically generate test scenarios based on the current page. Select a scenario from the list and Copilot will instantly create the test steps for it. generate steps
  • To learn more about the features available in the Copilot dialog, please refer to the documentation on Copilot Test Authoring for Web Application.

Steps to Create Test Cases Using Recorder

  1. From the left navigation bar, go to Create Tests > Test Cases. Test cases
  2. In the Test Case Explorer section, expand a Feature and click the + icon next to the required Scenario. This opens a dialog box. New test case
  3. In the dialog box, validate the target feature and scenario, enter the name in the Test Case Name input box, and click Create. Create
  4. In the Test Case Details page, click Record at the top right corner. Record
  5. This will open a new window. Enter the URL from which you want to capture the test cases. The Testsigma Recorder will appear and be ready to start recording. Testsigma Recorder
  6. Perform the actions on the page that you want to capture as test steps.
  7. Once you have recorded all the necessary steps, click Stop. Stop

All the recorded test steps will now be available in the Test Case Details page, ready for review and execution.


Steps to Create Test Cases Using NLPs

  1. From the left navigation bar, go to Create Tests > Test Cases. Test cases
  2. In the Test Case Explorer section, expand a Feature and click the + icon next to the required Scenario. This opens a dialog box. New test case
  3. In the dialog box, validate the target feature and scenario, enter the name in the Test Case Name input box, and click Create. Create
  4. In the Test Case Details page, enter the URL in which you want to perform the actions and capture the test steps, and click Create Step. create step
  5. For example, here are the test steps to log in to the Simply Travel website:

    • Navigate to https://simply-travel.testsigma.com/
    • Click on Login / Sign Up Button
    • Click on Login Button
    • Enter robert@gmail.com in the Email Address Input field
    • Click on Continue Button
    • Enter •••••••• in the Password Input field
    • Click on Submit Button Simply travel