Skip to content

Commit cd7cf7b

Browse files
Merge pull request #1089 from testsigmahq/dev
dev >> main
2 parents 29cbfe3 + b9b62e1 commit cd7cf7b

4 files changed

Lines changed: 442 additions & 165 deletions

File tree

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Analyzer Agent in Testsigma"
33
page_title: "Analyzer Agent in Testsigma"
4-
metadesc: "The Analyzer Agent in Testsigma is your intelligent assistant that autonomously reviews test executions | This article discusses the Analyzer Agent in Testsigma"
4+
metadesc: "The Analyzer Agent in Testsigma analyzes a failed test step and returns the error type, root cause, visual evidence, and suggestions | This article discusses the Analyzer Agent in Testsigma"
55
noindex: false
66
order: 4.815
77
page_id: "analyzer-agent-in-testsigma"
@@ -25,79 +25,79 @@ contextual_links:
2525

2626
---
2727

28-
The Analyzer Agent in Testsigma analyzes failed test steps and provides actionable insights. It identifies the error type, determines the root cause, provides visual evidence captured during execution, and suggests possible fixes. This article discusses how to analyze step failures and take action using the Analyzer Agent.
28+
The Analyzer Agent analyzes a failed test step and returns the error type, the root cause, the visual evidence captured during execution, and a set of suggestions. Apply a suggestion to update the step, or report the failure to your bug tracking tool, without leaving the results page.
2929

3030
---
3131

3232
> <p id="prerequisites">Prerequisites</p>
33-
>
33+
>
3434
> Before you begin, ensure that:
35-
> 1. At least one test plan has been executed.
36-
> 2. The test plan contains failed test cases.
37-
35+
> 1. At least one test plan or dry run has been executed.
36+
> 2. The run contains a failed test step.
3837
3938
---
4039

4140
## **Steps to Analyze Step Failures**
4241

4342
1. From the left navigation bar, click **Run Results**.
44-
![Run Results](https://s3.amazonaws.com/website-static-docs.testsigma.com/new_images/projects/Updated_Doc_Images/Nav_Run_Results_from_Dashboard.png)
4543

46-
2. Select the test plan that contains failed test steps.
44+
2. Select the run that contains failed test steps.
4745

4846
3. Open the test case with failures and select the failed test step.
4947

50-
4. In the **Step Details** panel, click **Analyze with Agent**. This will open the **Analyzer Agent** overlay.
51-
![Analyze with Agent](https://s3.amazonaws.com/website-static-docs.testsigma.com/new_images/projects/Updated_Doc_Images/Analyze_with_Agent_from_Results.png)
48+
The step header shows the error message. Click **Read more** to see the full message. The **Analysis** tab shows the error code, such as **#NO_SUCH_ELEMENT**, along with the **Visual Evidence** section.
49+
50+
4. Click **Analyze with Agent** in the action bar at the bottom of the page.
51+
![](https://s3.amazonaws.com/static-docs.testsigma.com/new/projects/applications/Analyze_with_Agent_Results.png)
5252

53-
5. Wait for the **Analyzer Agent** to complete the analysis.
53+
5. Review the analysis, which displays:
54+
<!-- Image Placeholder: Analysis -->
55+
- **Error Type**: The category of failure identified during execution, such as ELEMENT_NOT_FOUND.
56+
- **Root Cause**: An explanation of why the step failed, based on the error message and the captured evidence.
57+
- **Visual Evidence**: The screenshot captured at the time of execution. Click **Expand Images** to view it at full size, or the download icon to save it.
58+
- **Suggestions**: A numbered list of ways to resolve the failure.
5459

55-
6. Review the analysis in **Analyzer Agent** overlay, which displays:
56-
![Analysis](https://s3.amazonaws.com/website-static-docs.testsigma.com/new_images/projects/Updated_Doc_Images/Analysis_from_Analyzer_Agent.png)
57-
- **Error Type**: Displays the category of failure identified during test execution.
58-
- **Root Cause**: Describes the underlying reason for the failure based on execution analysis.
59-
- **Visual Evidence**: Displays screenshots captured during recording and execution to support failure analysis.
60-
- **Suggested Fixes**: Displays recommended actions to resolve the failed test step.
60+
[[info | **NOTE**:]]
61+
| To ask a follow-up question about the failure, enter it in **Debug with Atto** and click **Analyze**.
62+
63+
**Additional Information**: Responses are generated by Atto AI. Review the analysis before acting on it. Use the feedback icons or **Give Feedback** to tell us how useful it was.
6164

6265
---
6366

6467
## **Apply Fix Using Analyzer Agent**
6568

66-
1. From the **Analyzer Agent** overlay, select the fix you want to apply.
67-
![Select Fix](https://s3.amazonaws.com/website-static-docs.testsigma.com/new_images/projects/Updated_Doc_Images/Select_Fix_Option.png)
69+
1. In the **Suggestions** list, select the suggestion you want to apply.
70+
71+
[[info | **NOTE**:]]
72+
| You can select only one suggestion at a time.
6873

6974
2. Click **Apply Fix**.
70-
![Apply Fix](https://s3.amazonaws.com/website-static-docs.testsigma.com/new_images/projects/Updated_Doc_Images/Apply_fix_from_Agent_Suggestion.png)
75+
![](https://s3.amazonaws.com/static-docs.testsigma.com/new/projects/applications/Analyze_with_Agent_Results.png)
7176

72-
3. Wait for the **Analyzer Agent** to generate the required fix.
77+
Atto generates the fix and returns an **Update Test Step** card explaining what it found, followed by the current version of the step and the proposed version.
7378

74-
4. Click **Add Step**, **Update Step**, or **Update Step Settings**, as suggested by the **Analyzer Agent**.
75-
![Update as per suggestion](https://s3.amazonaws.com/website-static-docs.testsigma.com/new_images/projects/Updated_Doc_Images/Update_Add_Step_Setting.png)
79+
3. Compare the two versions of the step.
7680

77-
5. Verify that the changes are applied to the test step.
78-
![Verify the changes](https://s3.amazonaws.com/website-static-docs.testsigma.com/new_images/projects/Updated_Doc_Images/Verify_the_Updated_Test_Step_from_Atto.png)
81+
4. Click **Update Step** to apply the change.
7982

80-
6. Rerun the test plan to validate the fix.
83+
5. Rerun the test to validate the fix.
8184

8285
---
8386

8487
## **Report a Bug Using Analyzer Agent**
8588

86-
1. From the **Analyzer Agent** overlay, click **Report Bug**.
87-
![Report Bug](https://s3.amazonaws.com/website-static-docs.testsigma.com/new_images/projects/Updated_Doc_Images/Report_Bug_From_Agent.png)
89+
1. In the **Analyzer with Atto** panel, click **Report Bug**. The **QA Agent** panel opens.
8890

89-
2. Select the bug tracking application from **QA Agent** overlay.
90-
![Select Bug Tracking App](https://s3.amazonaws.com/website-static-docs.testsigma.com/new_images/projects/Updated_Doc_Images/Select_Bug_Tracking_App_from_Overlay.png)
91+
2. Select your bug tracking tool from the dropdown at the top right.
92+
![](https://s3.amazonaws.com/static-docs.testsigma.com/new/projects/applications/Bug_Reporting_Tools.png)
9193

92-
3. Review the prefilled bug details, such as **Team**, **Project**, and **Title**.
93-
![Review Details](https://s3.amazonaws.com/website-static-docs.testsigma.com/new_images/projects/Updated_Doc_Images/Review_Prefilled_Bug_Details.png)
94-
95-
> The fields displayed vary based on the selected bug tracking tool.
96-
97-
4. Click **Report Bug**.
98-
![Report](https://s3.amazonaws.com/website-static-docs.testsigma.com/new_images/projects/Updated_Doc_Images/Report_Bug_Button_QA_Agent.png)
94+
3. Do one of the following:
95+
- To raise a new issue, open the **Create New** tab, review the prefilled details, and click **Report Bug**.
96+
- To attach the failure to an issue that already exists, open the **Link To Issue** tab, search for the issue, and click **Link To Ticket**.
9997

10098
[[info | **NOTE**:]]
101-
| To link the failure to an existing issue, click **Link to Issue**, search for the issue in the selected bug tracking application, and then click **Link to Ticket**.
99+
| The fields displayed vary based on the selected bug tracking tool.
102100

103-
---
101+
**Additional Information**: If the tool returns no projects, check that the credentials configured for it have access to the projects you expect. For Jira, the panel reads "For given JIRA Credentials, the projects list is empty. Please make sure it has the right access to required projects on JIRA".
102+
103+
---
Lines changed: 93 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Auto-Healing Insights"
33
page_title: "Auto-Healing Insights"
4-
metadesc: "Review Auto-Heal Insights in Testsigma to see which elements were healed, how locators were updated, and decide if the changes should be made permanent."
4+
metadesc: "Review how auto-healing behaved during a run in Testsigma | See which locator failed, what replaced it, and decide whether to keep the change."
55
noindex: false
66
order: 4.918
77
page_id: "auto-healing-insights"
@@ -10,32 +10,109 @@ contextual_links:
1010
- type: section
1111
name: "Contents"
1212
- type: link
13-
name: "Steps to View Auto-Heal Insights"
14-
url: "#steps-to-view-auto-heal-insights"
13+
name: "Prerequisites"
14+
url: "#prerequisites"
15+
- type: link
16+
name: "Identify Healed Steps in a Run"
17+
url: "#identify-healed-steps-in-a-run"
18+
- type: link
19+
name: "Review the Heal on the Analysis Tab"
20+
url: "#review-the-heal-on-the-analysis-tab"
21+
- type: link
22+
name: "View Autoheal Details"
23+
url: "#view-autoheal-details"
24+
- type: link
25+
name: "Read the Locator Trace"
26+
url: "#read-the-locator-trace"
27+
- type: link
28+
name: "When a Heal Fails"
29+
url: "#when-a-heal-fails"
30+
- type: link
31+
name: "Fix the Locator Yourself"
32+
url: "#fix-the-locator-yourself"
33+
---
34+
35+
---
36+
37+
Review how auto-healing behaved during a run to see which locator failed, what replaced it, and whether to keep the change. Insights open from the healed step on the results page.
38+
39+
---
40+
41+
> <p id="prerequisites">Prerequisites</p>
42+
>
43+
> Before you begin, ensure that:
44+
> 1. Auto-healing is enabled for the project.
45+
> 2. A run has been completed in which at least one step was healed.
46+
47+
---
48+
49+
## **Identify Healed Steps in a Run**
50+
51+
1. Open the test case results for the run.
52+
53+
2. Select the healed step.
54+
![](https://s3.amazonaws.com/static-docs.testsigma.com/new/projects/applications/Auto_Healing_Insights_New.png)
55+
56+
[[info | **NOTE**:]]
57+
| A healed step reports **Passed**, because the step completed. The run itself carries a **Healed** status in the run list, which distinguishes it from a run that passed without intervention.
58+
1559
---
1660

61+
## **Review the Heal on the Analysis Tab**
62+
63+
The **Analysis** tab shows a **Healed this step** card explaining what happened: "Existing locator failed during execution, and we've auto-healed it using AI. The element locator was updated with a new XPath to ensure your test continues to run smoothly."
64+
65+
Choose one of the following:
66+
![](https://s3.amazonaws.com/static-docs.testsigma.com/new/projects/applications/Healed_Details_in_Results.png)
67+
- Click **Approve as Primary** to make the healed locator the locator the test uses from now on.
68+
- Click **Ignore** to leave the original locator in place. The heal still applied to this run only.
69+
70+
[[info | **NOTE**:]]
71+
| In the **Visual Evidence** section, the current run panel carries a **Healed** badge, and the **Element** field has an edit icon for correcting the locator directly.
72+
73+
---
74+
75+
## **View Autoheal Details**
76+
77+
Open the **Autoheal Details** panel to see exactly which locator changed.
78+
79+
The panel shows:
80+
![](https://s3.amazonaws.com/static-docs.testsigma.com/new/projects/applications/Auto_HeaL_Accept_Reject.png)
81+
- The element that was healed, named at the top.
82+
- The prompt "Do you want to update the autohealed element in all the linked test cases?" with **Update** and **Ignore** buttons.
83+
- The healing method and how long it took, such as "Autohealed using CSS Selector" and "32s 912ms".
84+
- The locator that failed, struck through, followed by the locator that replaced it.
85+
86+
Click **Update** to apply the healed locator across every test case linked to the element, or **Ignore** to leave those test cases unchanged.
87+
88+
**Additional Information**: Use the feedback icons under "Is this autoheal helpful?" to tell us whether the heal was correct. The same feedback icons appear on the auto-healed banner above the step list.
89+
1790
---
1891

19-
Once you’ve executed your tests using Auto-Heal, you can review detailed insights to understand how the feature worked during execution. The Auto-Heal Insights section helps you identify which elements were healed, how their locators were updated, and whether any of those updates should be made permanent.
92+
## **Read the Locator Trace**
93+
94+
Every auto-heal event records a locator trace: the full sequence the engine worked through to arrive at a heal, and whether that heal succeeded or failed.
2095

21-
This article discusses how to view and manage Auto-Heal insights after test execution.
96+
Use the trace to understand why a particular locator was chosen, or why no replacement could be found.
97+
98+
**Additional Information**: The locator trace is provided by the Auto Heal V2 architecture.
2299

23100
---
24101

25-
## **Steps to View Auto-Heal Insights**
102+
## **When a Heal Fails**
103+
104+
A heal attempt that fails gets the same root cause treatment as a failed step. Open the **Root cause** block on the **Analysis** tab and click **Explain this failure** to see why the engine could not resolve the element.
26105

27-
1. Click the test step where the element was auto-healed to view insights.
106+
[[info | **NOTE**:]]
107+
| This requires Analyzer V2. Without it, a failed heal reports that it did not succeed, but no explanation is generated.
28108

29-
2. Go to the **Step Result** and click **Auto-Heal Details**. This opens the **Auto-Heal Details** overlay.
30-
![Auto-Heal Details](https://s3.amazonaws.com/website-static-docs.testsigma.com/new_images/projects/Updated_Doc_Images/Auto_heal_insights_1.png)
109+
---
31110

32-
3. Review the **Auto-Heal Insights**.
33-
![Auto-Heal Insights](https://s3.amazonaws.com/website-static-docs.testsigma.com/new_images/projects/Updated_Doc_Images/Auto_heal_insights_2.png)
111+
## **Fix the Locator Yourself**
34112

35-
4. To update the element value permanently, click **Update**.
36-
![Update](https://s3.amazonaws.com/website-static-docs.testsigma.com/new_images/projects/Updated_Doc_Images/Auto_heal_insights_3.png)
113+
If you would rather not accept the healed locator, you have two alternatives:
37114

38-
5. On the **Update Element** dialog, click **Update** again to confirm.
39-
![Update](https://s3.amazonaws.com/website-static-docs.testsigma.com/new_images/projects/Updated_Doc_Images/Auto_heal_insights_4.png)
115+
- **Update element** corrects the locator directly. In the **Visual Evidence** section, the **Element** field on the current run side carries an edit icon for this.
116+
- **Relearn step** re-captures the step so a fresh locator is recorded.
40117

41-
---
118+
---

0 commit comments

Comments
 (0)