test-suite
2024.10
true
Test Suite 用户指南
Last updated 2024年11月11日
Webhooks
Test Manager provides webhooks that allow external tools to subscribe to events in Test Manager.
目前,支持以下事件。
- 创建缺陷:每当用户从测试用例结果中调用“创建缺陷”任务时,都会触发此事件。它允许外部缺陷管理工具从测试结果中接收带有日志信息的缺陷报告。
- 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.
Test Manager 使用以下有效负载触发已注册的 Webhook:
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.
Test Manager fires registered webhooks with the following 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
}
管理 WebHook 连接
下表列出了可以用来管理 WebHooks 连接的操作。
操作 |
描述 |
程序 |
---|---|---|
编辑 |
编辑连接设置。 |
|
删除 |
删除选定的连接及其关联的要求。 |
|
相关文章