Editing a Test Case Using Copilot


In Testsigma, Copilot gives you complete control over test cases while executing, which helps fix issues or errors in real time. It eliminates the need to rerun the entire test after a failure, making debugging and test stabilization faster and more efficient. This article discusses editing test cases live while executing them using Copilot.


Prerequisites

Before you begin, ensure that you have referred to:

  1. Documentation on creating test cases and install Testsigma Terminal application.

Steps to Edit a Test Case Using Copilot

  1. In the left navigation bar, go to Create Tests > Test Cases. Test Cases
  2. Create a new test case or open an existing one, and click Copilot in the Action Panel. Action Panel
  3. In the Copilot overlay:

    • Select a Data Set Name from the dropdown menu if the test case is data-driven. DataSet Name
    • To execute the test case until a failed step, enable Run till failed step toggle. Run till failed step
    • Select the test step to debug up to. Debug Point
  4. Click Launch. A new window opens with the Copilot. Launch
  5. The test steps execute until the selected debug point.
  6. When debugging is complete, click Exit Copilot to close the Copilot.
NOTE:
  • When execution pauses at a debug point or a step failure, the Global Debugger Toolbar becomes active, providing options to Resume, Step Over, Skip Over, or Restart the session. This paused state gives you access to Copilot’s live authoring tools to edit, reorder, or update steps while the session remains live.
  • Clicking Stop stops the current execution but does not close the Copilot. To close the Copilot, open Testsigma Terminal application and click Quit Session. Quit Live Editor