Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

309
Views
How to integrate cypress slack notifications using reportportal results?

I tried to integrate cypress and slack. I'm able to get simple notifications such as pipeline status, alert, push or merge request. My requirement is to get notification like this. Also I'm not able to integrate reportportal, I need to get more detailed for slack notification.

I tried to follow these instructions

My cypress.json file look like this.

 "reporterOptions": {
    "configFile": "reporterOpts.json",
    "reporterEnabled": "spec, mocha-junit-reporter, @reportportal/agent-js-cypress, mochawesome",
    "reportportalAgentJsCypressReporterOptions": {
      "endpoint": "https://reportportal.mlsdevcloud.com/api/v1/",
      "token": "445151-w6djb-ae48-awd86wd",
      "launch": "no launch",
      "project": "demo",
      "description": "UAT",
      "autoMerge": true
    },
    "mochaJunitReporterReporterOptions": {
      "mochaFile": "cypress/results/results-[hash].xml"
    }
  },
  "reports": [
    {
      "targets": [
        {
          "name": "slack",
          "inputs": {
            "url": "https://hooks.slack.com/services/T/secreatToken/"
          }
        }
      ],
      "results": [
        {
          "type": "junit",
          "files": ["cypress/results/results-[hash].xml"]
        }
      ]
    }
  ]
And this is suggested json file.

{
  "reports": [
    {
      "targets": [
        {
          "name": "teams",
          "inputs": {
            "url": "<teams-incoming-webhook-url>"
          },
          "extensions": [
            {
              "name": "report-portal-analysis",
              "inputs": {
                "url": "<report-portal-base-url>",
                "api_key": "<api-key>",
                "project": "<project-id>",
                "launch_id": "<launch-id>"
              }   
            }
          ]
        }
      ],
      "results": [
        {
          "type": "testng",
          "files": ["path/to/testng-results.xml"]
        }
      ]
    }
  ]
}

how to pass

"launch_id": ""

it is generated every time when build is triggered.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!