Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

327
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda