UiPath Documentation
test-manager
2022.4
false
Guía de usuario de Test Manager
Importante :
La localización de contenidos recién publicados puede tardar entre una y dos semanas en estar disponible.

Webhooks

Test Manager proporciona webhooks que permiten que herramientas externas se suscriban a eventos en Test Manager.

Actualmente, se admiten los siguientes eventos.

  • Create Defect: This event is triggered whenever a user invokes the "Create Defect" task from a test case result. It allows external defect management tools to receive defect reports with log information from test results.
  • Defect KPIs: This event is invoked when the defect KPIs on the Test Manager dashboard are refreshed. This allows to include statistics from external defect management systems to be displayed on the Test Manager dashboard.

Contratos

En esta sección puedes encontrar los detalles de la carga útil de solicitud y respuesta para cada evento.

Crear defecto.

Test Manager activa webhooks registrados con la siguiente carga útil:

Use the Test Manager REST API to fetch details about the failed test to add information to the created defect.

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.

KPI de defectos

Test Manager activa webhooks registrados con la siguiente carga útil:

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 una conexión de Webhook

  1. Inicia sesión en Test Manager como administrador.

  2. Abra su proyecto.

  3. Navigate to Project Settings > Integration.

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

  5. Configura los siguientes ajustes de conexión:

    • Name: Enter a name for your WebHook connection.

    • Descripción (opcional): añade una descripción como referencia.

    • 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. Haz clic en Guardar.

  7. Haga clic en la conexión para expandir el panel y copie la clave API para su uso posterior.

Administrar conexiones de WebHooks

La siguiente table muestra las acciones que puedes tomar para gestionar tus conexiones WebHook.

Acción Descripción Procedimiento

Editar

Editar su configuración de conexión.

  1. Inicia sesión en Test Manager como administrador.
  2. Abra su proyecto.
  3. Go to Project Settings.
  4. En la lista de integración, haz clic en una conexión Webhook para expandir el panel.
  5. Haz clic en Editar para configurar la conexión.
  6. Haz clic en Guardar para confirmar.

Eliminar

Eliminar la conexión seleccionada y sus requisitos asociados.

  1. Inicia sesión en Test Manager como administrador.
  2. Abra su proyecto.
  3. Go to Project Settings.
  4. En la lista de integración, haz clic en una conexión Webhook para expandir el panel.
  5. Haz clic en Eliminar para eliminar la conexión.
  6. Haz clic en Aceptar para confirmar.

Artículos relacionados

  • Contratos
  • Crear defecto.
  • KPI de defectos
  • Configurar una conexión de Webhook

¿Te ha resultado útil esta página?

Conectar

¿Necesita ayuda? Soporte

¿Quiere aprender? UiPath Academy

¿Tiene alguna pregunta? Foro de UiPath

Manténgase actualizado