# Process E2E Results

### Overview

The **Process E2E Results Component** processes test results from the `AfterAll` component and sends an email notification with details of the test execution. It also stores results in specified success or failure storage locations.

### Usage

This component is used in test automation workflows to handle and report test outcomes via email and structured storage.

#### Input Ports

| Port | Description                                          |
| ---- | ---------------------------------------------------- |
| `in` | Receives test results from the `AfterAll` component. |

#### Output Ports

| Port | Description                                                                  |
| ---- | ---------------------------------------------------------------------------- |
| None | The component does not produce output messages but stores and sends results. |

#### Properties

| Property         | Type     | Description                                         |
| ---------------- | -------- | --------------------------------------------------- |
| `successStoreId` | `string` | Storage ID where successful test results are saved. |
| `failedStoreId`  | `string` | Storage ID where failed test results are saved.     |

#### Input Data Schema

| Property     | Type     | Description                                      |
| ------------ | -------- | ------------------------------------------------ |
| `recipients` | `string` | Comma-separated list of email recipients.        |
| `testCase`   | `string` | Name of the test case being processed.           |
| `result`     | `string` | Test results data from the `AfterAll` component. |

#### Processing Logic

1. **Receives Test Results**: Accepts and parses test result data.
2. **Determines Outcome**: Identifies whether the test passed or failed based on the presence of errors.
3. **Stores Results**:
   * If successful, stores in `successStoreId`.
   * If failed, stores in `failedStoreId`.
4. **Sends Email Notification**:
   * If failed, sends an email with detailed test case errors.
   * If the test timed out, sends a timeout notification.
5. **Formats Report**: Generates an HTML-formatted summary of the test execution with failure details.

### Notes

* **Supports Failure Analysis**: Captures failed assertions and logs details.
* **Email Notifications**: Notifies test owners of failed tests and timeouts.
* **Structured Storage**: Keeps test records organized in designated storage locations.

This component is crucial for automated test result processing, error reporting, and structured test case management.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.appmixer.com/connector-configuration/utils/test/processe2eresults.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
