Skip to content
Development
Skill

/advpr-test-automation

Use when the user wants to write, run, or troubleshoot automated regression tests for Protheus routines with ADVPR (Advanced Protheus Robot) -- covering FWTestHelper API, TestSuite/GPS de Testes setup, headless execution via FwExecSuite, and per-pattern scripting (MVC,

From plugin
advpl-specialist
19319 skills10 agents14 commands2 hooks

Claude Code

$ npx -y skills add thalysjuvenal/advpl-specialist --skill advpr-test-automation --agent claude-code

SKILL.md

advpr-test-automation.SKILL.md
name: advpr-test-automation
description: Use when the user wants to write, run, or troubleshoot automated regression tests for Protheus routines with ADVPR (Advanced Protheus Robot) -- covering FWTestHelper API, TestSuite/GPS de Testes setup, headless execution via FwExecSuite, and per-pattern scripting (MVC, ExecAuto/MSExecAuto, reports, processing routines, webservices, SmartLink, Smart View, single-message/TOTVS Message) plus routine preparation (screen bypass) and best practices. Also triggers on Portuguese phrasing like "teste automatizado", "robo de testes", "automacao de testes Protheus", "rodar suite de testes", "FWMyTestRunner", "GPS de testes", or "preparar rotina para teste automatico". The referenced files are written in Brazilian Portuguese.

ADVPR — Automação de Testes Protheus

This skill covers writing and running automated business-rule regression tests for TOTVS Protheus using ADVPR, the internal ADVPL-based test robot. It explains the `FWTestHelper` assertion API, how to register and organize test cases in a TestSuite (GPS de Testes), how to run suites with or without UI (`FWMyTestRunner` vs headless `FwExecSuite`), and per-routine-pattern scripting guidance for MVC, ExecAuto/MSExecAuto, reports, processing routines, webservices (REST/SOAP/Portal), SmartLink, Smart View, and TOTVS Message (single-message) flows. It also covers "routine preparation" -- adjusting legacy code so it runs screen-free during official headless execution -- and general ADVPR scripting best practices.

Activate this skill when the user wants to create or debug an ADVPR test script, set up a TestSuite, diagnose a TimeOut or unexpected-screen failure during headless execution, or needs guidance on which ADVPR pattern applies to a given routine type. It does not cover manual/interface-driven QA, unit testing of isolated ADVPL functions outside ADVPR, or general debugging of runtime/compilation errors unrelated to test automation (see `advpl-debugging`).

The referenced files are written in Brazilian Portuguese.

| Reference file | Read when | |---|---| | reference.md | Always -- ADVPR concept, patch prerequisite, FWMyTestRunner vs FwExecSuite headless execution, TimeOut causes | | api-fwtesthelper.md | Writing assertions/expectations -- full FWTestHelper method reference | | best-practices.md | Reviewing or writing ADVPR scripts -- recommended scripting conventions | | gps-de-testes.md | Creating/organizing a TestSuite and its test cases (GPS de Testes) | | patterns-execauto.md | Automating routines exposed via ExecAuto/MSExecAuto | | patterns-mvc.md | Automating MVC (ModelDef/ViewDef) routines | | patterns-processing.md | Automating batch/processing routines | | patterns-reports.md | Automating reports (TOTVS Report, R3, FWMSPrinter, Smart View) | | patterns-routine-prep.md | Adjusting a routine to bypass screens/alerts for official headless execution | | patterns-smartlink.md | Automating routines that integrate via SmartLink | | patterns-smartview.md | Automating Smart View-based routines (to *build* a Smart View business object rather than test one, see `smartview-development`) | | patterns-totvs-message.md | Automating routines that use the single-message (TOTVS Message) pattern | | patterns-webservice.md | Automating REST, SOAP, or Portal Protheus webservice endpoints |

Read more
@thalysjuvenal
Ships withadvpl-specialist

Plugin para Claude Code especializado em ADVPL e TLPP para desenvolvimento no ecossistema TOTVS Protheus — para desenvolvedores e consultores funcionais. Documentacao completa:

19319 skills10 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
193
Star history of thalysjuvenal/advpl-specialist on GitHub, a chart by star-history.com

Other skills on advpl-specialist.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about advpr-test-automation.

Which coding agents can use advpr-test-automation?
advpr-test-automation installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.