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

推荐订阅源

P
Proofpoint News Feed
L
LangChain Blog
U
Unit 42
Apple Machine Learning Research
Apple Machine Learning Research
The Cloudflare Blog
Martin Fowler
Martin Fowler
T
Tenable Blog
IT之家
IT之家
H
Help Net Security
阮一峰的网络日志
阮一峰的网络日志
Forbes - Security
Forbes - Security
N
Netflix TechBlog - Medium
The Hacker News
The Hacker News
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
Tailwind CSS Blog
美团技术团队
NISL@THU
NISL@THU
T
Threatpost
GbyAI
GbyAI
T
Threat Research - Cisco Blogs
I
InfoQ
Jina AI
Jina AI
Microsoft Azure Blog
Microsoft Azure Blog
人人都是产品经理
人人都是产品经理
C
Check Point Blog
V
Vulnerabilities – Threatpost
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Spread Privacy
Spread Privacy
S
Securelist
大猫的无限游戏
大猫的无限游戏
P
Privacy & Cybersecurity Law Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
爱范儿
爱范儿
小众软件
小众软件
C
Cybersecurity and Infrastructure Security Agency CISA
Cisco Talos Blog
Cisco Talos Blog
Engineering at Meta
Engineering at Meta
S
Security Affairs
S
Secure Thoughts
T
Troy Hunt's Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
aimingoo的专栏
aimingoo的专栏
博客园 - 司徒正美
PCI Perspectives
PCI Perspectives
C
Cisco Blogs
MongoDB | Blog
MongoDB | Blog
Vercel News
Vercel News
月光博客
月光博客
Recorded Future
Recorded Future

博客园 - 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