UiPath Documentation
test-manager
latest
false
Importante :
A localização de um conteúdo recém-publicado pode levar de 1 a 2 semanas para ficar disponível.

Guia do usuário do Test Manager

Webhooks

O Test Manager fornece webhooks que permitem que ferramentas externas assinem eventos no Test Manager.

Atualmente, os seguintes eventos são suportados.

  • Criar Defeito: este evento é acionado sempre que um usuário invoca a tarefa "Criar Defeito" a partir de um resultado de caso de teste. Permite que ferramentas de gerenciamento de defeitos externas recebam relatórios de defeitos com informações de log de resultados de testes.
  • KPIs de defeitos: esse evento é invocado quando os KPIs de defeitos no painel Test Manager forem atualizados. Isso permite incluir estatísticas de sistemas de gerenciamento de defeitos externos, a serem exibidas no painel Test Manager.

Contratos

Nesta seção, você pode encontrar os detalhes do payload de solicitação e resposta para cada evento.

Criar defeito.

O Test Manager dispara webhooks registrados com o seguinte payload:

Use a API REST do Test Manager para obter detalhes sobre o teste com falha para adicionar informações ao defeito criado.

Request:
CreateDefectFromTestCaseLogRequest{
testExecutionId    string($uuid)
testCaseId    string($uuid)
variationId    string
nullable: true
linkToTestCaseLog    string
nullable: true
}
Response:
Returns a defect payload to allow Test Manager to add a link to the created defect in the test case log.
Request:
CreateDefectFromTestCaseLogRequest{
testExecutionId    string($uuid)
testCaseId    string($uuid)
variationId    string
nullable: true
linkToTestCaseLog    string
nullable: true
}
Response:
Returns a defect payload to allow Test Manager to add a link to the created defect in the test case log.

KPIs de defeitos

O Test Manager dispara webhooks registrados com o seguinte payload:

Request:
api/kpis/project/<projectid>/defectstatus
Response:
KPIConnectorDefectsDto{
totalDefects    integer($int32)
criticalDefects    integer($int32)
moderateDefects    integer($int32)
openDefects    integer($int32)
closedDefects    integer($int32)
status    ConnectorKPIStatusstring
Enum:
Array [ 3 ]
criticalDefectsLink    string
nullable: true
}
Request:
api/kpis/project/<projectid>/defectstatus
Response:
KPIConnectorDefectsDto{
totalDefects    integer($int32)
criticalDefects    integer($int32)
moderateDefects    integer($int32)
openDefects    integer($int32)
closedDefects    integer($int32)
status    ConnectorKPIStatusstring
Enum:
Array [ 3 ]
criticalDefectsLink    string
nullable: true
}

Configurar uma conexão de webhook

Register a webhook endpoint in Test Manager so that external tools receive event payloads — such as defect creation or KPI updates — from your project.

  1. Faça login no Test Manager como Administrator

  2. Abra seu projeto.

  3. Navigate to Project Settings > Integration.

  4. Select New Connection and select WebHook from the dropdown.

  5. Defina as seguintes configurações de conexão:

    • Name: Enter a name for your WebHook connection.
    • Descrição (opcional): adicione uma descrição para referência.
    • Payload URL: Add the endpoint server URL. For example: https://company-name-serverRegion.cloudapp.azure.com.
    • Authentication Header Type: Select a hashing method between Client Secret and HMACSHA256.
    • Secret: Enter your client secret value.
    • Allow Insecure SSL: Choose whether to allow endpoints with insecure SSL connections.
    • Supports Defect Dashboard: Choose if KPIs needs to be shown in the project dashboard.

  6. Selecione Salvar.

  7. Select the connection to expand the panel and copy the API Key for later use.

Gerenciando conexões de WebHooks

A tabela a seguir lista as ações que você pode adotar para gerenciar suas conexões do WebHook.

Ação

Description

Procedimento

Editar

Edite suas configurações de conexão.

  1. Efetue login no Test Manager como administrador.
  2. Abra seu projeto.
  3. Acesse Configurações do projeto .
  4. In the Integration list, select a WebHook connection to expand the panel.
  5. Select Edit to configure the connection.
  6. Selecione Salvar para confirmar.

Excluir

Exclua a conexão selecionada e seus requisitos associados.

  1. Efetue login no Test Manager como administrador.
  2. Abra seu projeto.
  3. Acesse Configurações do projeto .
  4. In the Integration list, select a WebHook connection to expand the panel.
  5. Select Delete to remove the connection.
  6. Select Ok to confirm.

Artigos relacionados

Resultado

The webhook connection is created. External tools can now subscribe to Test Manager events such as defect creation and KPI updates from the connected project.

Esta página foi útil?

Conectar

Precisa de ajuda? Suporte

Quer aprender? Academia UiPath

Tem perguntas? Fórum do UiPath

Fique por dentro das novidades