惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Security Archives - TechRepublic
Security Archives - TechRepublic
I
InfoQ
阮一峰的网络日志
阮一峰的网络日志
云风的 BLOG
云风的 BLOG
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
AWS News Blog
AWS News Blog
S
SegmentFault 最新的问题
T
Tailwind CSS Blog
The Hacker News
The Hacker News
GbyAI
GbyAI
P
Palo Alto Networks Blog
博客园 - 三生石上(FineUI控件)
Y
Y Combinator Blog
Stack Overflow Blog
Stack Overflow Blog
博客园 - Franky
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Cyberwarzone
Cyberwarzone
H
Help Net Security
S
Securelist
月光博客
月光博客
博客园 - 【当耐特】
T
Threatpost
T
Tenable Blog
G
GRAHAM CLULEY
博客园 - 司徒正美
I
Intezer
MyScale Blog
MyScale Blog
T
Threat Research - Cisco Blogs
P
Privacy & Cybersecurity Law Blog
The GitHub Blog
The GitHub Blog
C
CERT Recently Published Vulnerability Notes
T
Tor Project blog
Google DeepMind News
Google DeepMind News
C
Cybersecurity and Infrastructure Security Agency CISA
罗磊的独立博客
腾讯CDC
P
Privacy International News Feed
博客园_首页
The Cloudflare Blog
Cisco Talos Blog
Cisco Talos Blog
A
About on SuperTechFans
V
Vulnerabilities – Threatpost
A
Arctic Wolf
B
Blog RSS Feed
Recorded Future
Recorded Future
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google DeepMind News
Google DeepMind News
S
Security Affairs
Microsoft Security Blog
Microsoft Security Blog
L
LangChain Blog

博客园 - danzhang

第十三年的MVP勋章:感谢这片技术社区 Azure DevOps Server:2026年6月份补丁(无法移除用户) 在Github的企业Enterprise中开通Copilot 在Azure DevOps Server中实现用户端原地址透传(X-Forwarded-For) Azure DevOps Server:2026年4月份补丁(安装详细步骤) Azure DevOps:应用远程MCP服务器,提升工作效率 Azure DevOps Server:2026年3月份补丁 Azure DevOps Server:扩充数据库服务器的磁盘 Azure DevOps Server:使用团队日历 Azure DevOps Server:2026年二月补丁(Patch 8) Azure DevOps:迭代看板简洁视图 Azure DevOps:移除TFVC中过时的签入策略 Azure DevOps Server 正式版本发布 Azure DevOps Server:复制markdown文档中的代码块 Azure DevOps Server:允许讨论但不允许修改工作项 Azure DevOps Server 2022.2 补丁(Patch 7) 在Azure DevOps Server中分析Git代码库的健康状况 Azure DevOps Server 25H2 安装手册 Azure DevOps Server 25H2 最新版本发布 使用Azure DevOps MCP服务器,在开发过程中应用GitHub Copilot人工智能 在VS Code中使用Playwright实现自动化测试(UI测试) Azure DevOps Server 2022.2 补丁(Patch 6) 在Azure DevOps的工作项中使用markdown
使用Azure DevOps MCP和Playwriht,将功能测试用例转换为自动化测试用例
danzhang · 2025-08-31 · via 博客园 - danzhang

1. 概述

在软件开发过程中,通过对业务需求和系统设计的分析,测试团队通常积累了大量的功能测试用例(人工测试);在版本发布过程中,测试人员依据这些功能测试用例对系统版本展开测试,从而提升软件版本的质量;由于开人力的不足和自动化测试用例维护的成本较高,开发团队的自动化测试用例较少,开发团队的自动化测试用例覆盖率不高。

将人工测试的用例库转化为自动化测试用例,往往需要投入大量的开发工作量,大部分开发团队会因此望而却步。

面对这个问题,如果我们结合Azure DevOps MCP Server和Playwright两个工具,可以快速将你的功能测试用例转换为自动化测试用例,几乎不需要编写一行代码,瞬间就可以生成结构完善的自动化测试用例。

2. 操作步骤

在本文下面的示例操作中,笔者使用VS Code,连接到Azure DevOps,将其中的一个测试用例工作项的测试步骤,转化为一个Playwright自动化测试用例脚本。如果配置Azure DevOps MCP Server和Playwright,你需要参考上面的博客。

使用自己的Azure DevOps账户登录Azure DevOps后,在Github Copilot的聊天窗口中,可以完成下面的操作:

  • 获取测试用例的步骤信息
    在聊天窗口中输入文字:获取测试用例2的测试步骤
    image
    下图是Azure DevOps中的测试用例工作项中的步骤信息
    image

  • 生成测试用例脚本
    在聊天窗口中输入文字:将这个测试用例转换为Playwright脚本
    image

  • 执行测试用例
    将大数据模型生成的Playwright自动化测试脚本复制到测试框架中,就可以执行这个用例了。
    image

这样编写自动化测试用例脚本,是不是太简单了?
只能再次感叹,人工智能又抢走了自动化测试人员的饭碗!

https://www.cnblogs.com/danzhang
Azure DevOps MVP 张洪君

image