add-regression-point

Add regression points to existing PageObjects with locator constants and methods.

176|2|Updated May 21, 2026
One-click install
npx skills add https://github.com/DanielSuo117/velocitai --skill add-regression-point
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-regression-point
Source: https://github.com/DanielSuo117/velocitai/tree/main/zh/skills/add-regression-point
Command: npx skills add https://github.com/DanielSuo117/velocitai --skill add-regression-point

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

为已有 PageObject 增量添加回归测试点,避免重复改写测试用例,同时快速提升测试覆盖范围。

Core Features & Use Cases

  • Stepwise guidance: 访问真实页面抽取新元素定位符、在 PageObject 中添加定位符常量与新业务方法,并确保 is_page_loaded 的稳定性。
  • 回归测试扩展:在对应角色的测试用例中调用新方法,确保跨角色流程的回归点覆盖。
  • 同步文档:更新 docs 相关条目以反映新增的回归点和定位符。

Quick Start

通过提供目标 PageObject 名称、页面 URL 以及新增回归点,即可自动为 PageObject 增量添加定位符、更新回归测试入口并同步文档。

Frequently Asked Questions about add-regression-point

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add regression test points to existing PageObjects without rewriting test cases?

To add regression test points to existing PageObjects, extract new element locators from the live page, inject locator constants and business methods into the PageObject, and update regression test calls to expand coverage incrementally.

What is the process for extending test coverage across multiple roles using PageObjects?

Extending test coverage across multiple roles involves adding new business methods to the PageObject, calling those methods within role-specific regression test cases, and synchronizing related documentation to reflect the updated test automation points.

Do I need existing PageObjects to add regression points to my test automation?

Yes, you need existing PageObjects as a prerequisite. This process applies to teams that already have PageObjects and need to extend test coverage by adding new points and methods across multiple roles incrementally.

How do I update documentation when adding new locators and regression points?

When adding new locators and regression points, update the corresponding docs entries to reflect the newly added regression points and locator constants to ensure test automation documentation stays synchronized with the PageObject code.

Can I ensure is_page_loaded stability when adding new business methods to a PageObject?

When adding new business methods to a PageObject, you must ensure is_page_loaded stability by verifying the page state after extracting new element locators and before executing the newly added regression test points.