- Primeros pasos
- Gestión de proyecto
- Operaciones y utilidades del proyecto
- Configuración de Test Manager
- Integración de herramientas de ALM
- Integración de API
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
-
Inicia sesión en Test Manager como administrador.
-
Abra su proyecto.
-
Navigate to Project Settings > Integration.
-
Click New Connection and select WebHook from the dropdown.
-
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 SecretandHMACSHA256. -
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.
-
-
Haz clic en Guardar.
-
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. |
|
|
Eliminar |
Eliminar la conexión seleccionada y sus requisitos asociados. |
|
Artículos relacionados