agentleFS
thalysjuvenalthalysjuvenal/advpl-specialist/skills/advpr-test-automation/SKILL.md

advpr-test-automation

Skill183 starsChanged 2 months agoMITView on GitHub

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.

The file

Files
SKILL.md

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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.