Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send an alert on error #169

Closed
ASaiAnudeep opened this issue Apr 17, 2024 · 3 comments · Fixed by test-results-reporter/parser#84 or #233
Closed

Send an alert on error #169

ASaiAnudeep opened this issue Apr 17, 2024 · 3 comments · Fixed by test-results-reporter/parser#84 or #233
Labels
enhancement New feature or request

Comments

@ASaiAnudeep
Copy link
Member

ASaiAnudeep commented Apr 17, 2024

We need a new error condition - https://test-results-reporter.github.io/guides/conditions.html

{
  "targets": [
    {
      "name": "teams",
      "condition": "pass",
      "inputs": {
        "url": "<teams-success-channel-incoming-webhook-url>"
      }
    },
     {
      "name": "teams",
       "condition": "error",
      "inputs": {
        "url": "<teams-error-channel-incoming-webhook-url>"
      }
    }
  ],
  "results": [
    {
      "type": "testng",
      "files": ["path/to/testng-results.xml"]
    }
  ]
}

we can also support a new input to handler errors.

{
  "targets": [
    {
      "name": "teams",
      "condition": "pass",
      "error_report": true,
      "inputs": {
        "url": "<teams-success-channel-incoming-webhook-url>",
        "error_report": true,
      }
    }
  ],
  "results": [
    {
      "type": "testng",
      "files": ["path/to/testng-results.xml"]
    }
  ]
}
@ASaiAnudeep ASaiAnudeep added the enhancement New feature or request label Apr 17, 2024
@leelaprasadv
Copy link
Contributor

@ASaiAnudeep how will it be different from failure? Is this for error during the reporting?

@ASaiAnudeep
Copy link
Member Author

ASaiAnudeep commented Apr 17, 2024

This focuses on errors that we encounter while parsing the results or doing any other kind of operation. So we get a generic alert to the given target mentioning - something went wrong while reporting results. The teams would be notified proactively about issues.

@ASaiAnudeep
Copy link
Member Author

this is duplicate of - #51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants