mcpField
A
advpr-test-automation

advpr-test-automation

github.com/thalysjuvenalTesting & quality19148 installsUpdated 6w ago
Repository

About advpr-test-automation

A guidance skill for writing and running ADVPR regression tests of TOTVS Protheus business rules. It helps developers choose routine-specific test patterns, organize TestSuites, and prepare code for headless runs.

Key features

  1. 01FWTestHelper assertions
  2. 02TestSuite organization
  3. 03UI and headless execution
  4. 04Patterns for routine types
  5. 05Headless routine preparation

Use cases

  1. 01Creating or debugging ADVPR scripts
  2. 02Setting up a TestSuite
  3. 03Diagnosing headless TimeOut failures

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/thalysjuvenal/advpl-specialist --skill advpr-test-automation

After installing, type/advpr-test-automationin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

api-fwtesthelper.md
best-practices.md
gps-de-testes.md
patterns-execauto.md
patterns-mvc.md
patterns-processing.md
patterns-reports.md
patterns-routine-prep.md
patterns-smartlink.md
patterns-smartview.md
patterns-totvs-message.md
patterns-webservice.md
reference.md

Details

From the project README

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

Comments

Markdown supported