Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

313
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda