You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Azure DevOps:能否在测试套件的测试点项中创建上下文菜单项?

能否在Azure DevOps测试套件的测试点项中添加上下文菜单项?

可以实现该需求,你需要在扩展配置文件中正确指定对应categories字段值,该字段归属Azure Test Plans模块,具体配置要点如下:

  • 上下文菜单分类指定:在扩展的贡献配置(通常为vss-extension.json)中,定义ms.vss-web.action类型的贡献时,需将categories设置为["test-point-context-menu"],这个分类属于Azure Test Plans的测试点上下文菜单体系。
  • 完整配置示例:
{
  "manifestVersion": 1,
  "id": "custom-test-point-menu-extension",
  "version": "1.0.0",
  "name": "测试点自定义菜单",
  "publisher": "your-publisher-id",
  "demands": ["ms.vss-test-web.test-plan-web-extension"],
  "contributions": [
    {
      "id": "test-point-custom-action",
      "type": "ms.vss-web.action",
      "targets": ["ms.vss-test-web.test-point-context-menu"],
      "properties": {
        "name": "我的自定义测试点操作",
        "icon": "images/action-icon.png",
        "description": "针对测试点执行自定义业务逻辑",
        "uri": "action-page.html",
        "categories": ["test-point-context-menu"]
      }
    }
  ],
  "files": [
    {
      "path": "action-page.html",
      "addressable": true
    },
    {
      "path": "images",
      "addressable": true
    }
  ]
}
  • 关键依赖声明:必须在扩展配置的demands中添加ms.vss-test-web.test-plan-web-extension,确保扩展仅在Azure Test Plans环境中加载。

部署该扩展后,在测试套件的测试点列表中右键对应项,即可看到你定义的自定义上下文菜单项,与你提供的示例截图效果一致。

内容的提问来源于stack exchange,提问作者vijay sai

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.22 13:02:11