agentleFS
vigneshbarani24vigneshbarani24/sap-superpowers/skills/delivery/testing-strategy/SKILL.md

testing-strategy

Skill9 starsChanged 7 months agoMITView on GitHub

Use when designing, planning, or executing a testing strategy for an SAP implementation, upgrade, or change project. Triggers on any request involving test planning, UAT, test cases, test automation, defect management, or sign-off readiness.

37 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use react-patterns, api-design and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • benshapyroSkill

    react-patterns

    Modern React patterns for TypeScript applications including hooks, state management, and component composition. Use when building React components, managing state, or implementing React best practices.

    Also in 4 projects that use this

  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 10 projects that use this

  • OpenAISkill

    observability

    Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.

    Also in 5 projects that use this

  • Microsoft AzureSkill

    git-workflow

    Squad branching model: dev-first workflow with insiders preview channel

    Also in 6 projects that use this

  • MicrosoftSkill

    error-handling

    统一错误处理系统。在添加 API 端点、修改错误处理、添加前端 API 调用、编写错误相关测试时使用。

    Also in 3 projects that use this

  • CloudAI-XSkill

    database-design

    Designs database schemas, indexing strategies, query optimization, and migration patterns for SQL and NoSQL databases. Use when designing tables, optimizing queries, fixing N+1 problems, planning migrations, or when asked about database performance, normalization, ORMs, or data modeling.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 33 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    NEVER SIGN OFF WITHOUT UAT COMPLETION: No UAT = no go-live approval.

    line 14
  2. Distinctive:

    NEVER SKIP NEGATIVE TESTS: Every test case has a negative counterpart.

    line 15
  3. Distinctive:

    All P2 (high) defects are resolved OR formally risk-accepted in writing by the business owner

    line 54
  4. Distinctive:

    If any of these conditions is unmet, the status is NOT signed off.

    line 56
  5. Distinctive:

    Evidence required: Test strategy document, test case matrix with pass/fail status, defect log, performance test report, signed UAT sign-off …

    line 165
  6. Distinctive:

    If any item above is unchecked, this skill is NOT complete.

    line 167
  7. Very specific:

    After completing this skill, invoke: data-migration Conditions for handoff: Testing strategy signed off and UAT complete.

    line 173

“Common” is measured: kept by at least 6 in 10 of the 33 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

SAP Testing Strategy

This skill enforces a complete, evidence-based testing strategy — preventing premature sign-off, skipped test levels, and UAT conducted without proper test case coverage.


Iron Laws

  1. NEVER SIGN OFF WITHOUT UAT COMPLETION. No UAT = no go-live approval. A "mostly done" UAT is a failed UAT. Partial UAT does not count.
  2. NEVER SKIP NEGATIVE TESTS. Every test case has a negative counterpart. Testing only happy paths is testing only half the system.
  3. NEVER TEST WITH PRODUCTION DATA WITHOUT ANONYMIZATION. Raw production data in test systems is a GDPR/data protection violation. Anonymize first, always.
  4. NEVER DECLARE A DEFECT CLOSED WITHOUT RETEST EVIDENCE. A developer saying "it's fixed" is not evidence. A tester confirming the fix with a retest pass is evidence.
  5. TEST COVERAGE IS MEASURED, NOT ESTIMATED. "We tested everything important" is not a coverage metric. Count test cases executed vs. planned. Report the percentage.

Rationalization Table

Agent Will Try To...Why It Seems ReasonableWhy It FailsCounter
Skip unit testing and jump to E2E"SAP standard code doesn't need unit tests"Custom ABAP, BAdIs, and enhancements absolutely need unit tests. Bugs caught at unit level cost 10x less than E2E bugs.Checklist Step 1: Unit test coverage is mandatory for all custom code.
Run UAT without a formal test case library"The business users know the process"Business users test what they remember, not what the system must do. Coverage gaps guarantee post-go-live defects.Hard Gate: UAT cannot begin without signed-off test case library.
Use production data directly in testing"It's the most realistic data"GDPR violation. Also — prod data corrupted by test activity is a catastrophic incident.Iron Law 3: Anonymized data or synthetic data only. No exceptions.
Mark defects closed based on developer word"The developer has fixed it in the system"Configuration drift, transport errors, and regression mean developer confidence ≠ working system.Iron Law 4: All defects require documented retest before closure.
Skip performance testing because "SAP handles it""SAP is enterprise-grade, it scales"SAP scales. Your custom code, Z-tables, and integration points may not. Volume testing is mandatory.Checklist Step 5: Performance test mandatory for all high-volume processes.
Report test completion without defect resolution"We've run all the test cases"Running tests and passing tests are different things. Open critical defects block sign-off.Verification: Zero open P1/P2 defects required for sign-off.

Red Flags

Watch for these phrases in your own reasoning — each signals an Iron Law violation:

  • "The business can test informally..." → No formal test cases = no coverage measurement. Stop.
  • "We can fix that after go-live..." → Deferring defects is acceptable only when formally risk-accepted. Stop and document.
  • "UAT is mostly done..." → Partial UAT is not UAT. State the actual percentage. Stop.
  • "This is standard SAP, it doesn't need testing..." → Standard SAP + your config + your data = unique system. Test it. Stop.
  • "We tested it in dev, it'll work in prod..." → Environments differ. Transport issues are real. Stop.
  • "Performance testing can wait..." → You won't have time after go-live. Stop.
  • "The users signed off verbally..." → Verbal sign-off is not sign-off. Written evidence only. Stop.

<HARD-GATE> UAT sign-off CANNOT be granted until: 1. A formal test case library exists with pass/fail status for every test case 2. UAT execution is 100% complete (every test case run, not estimated) 3. Zero open P1 (critical) defects remain 4. All P2 (high) defects are resolved OR formally risk-accepted in writing by the business owner 5. Formal UAT sign-off document is signed by the business representative If any of these conditions is unmet, the status is NOT signed off. Do not represent it as ready. </HARD-GATE>

Checklist

  1. Define the test pyramid — Identify scope at each level: unit, integration, E2E, UAT, performance, regression.
    • Evidence: Test pyramid diagram with scope statement per layer
    • Gate: All six levels documented with in-scope/out-of-scope rationale
  2. Build the test case library — Create test cases for every business process in scope, including positive and negative scenarios.
    • Evidence: Test case matrix with Process, Test Case ID, Description, Expected Result, Priority
    • Gate: Business process owner has reviewed and approved test case coverage
  3. Define test data strategy — Identify data requirements per test case. Determine anonymization approach for any production data used.
    • Evidence: Test data matrix; anonymization script or tool documented
    • Gate: Test data available in test system before execution begins
  4. Execute unit and integration testing — All custom development (ABAP, BAdIs, enhancements, APIs) unit-tested. Integration scenarios (iDocs, APIs, BTP) integration-tested.
    • Evidence: Unit test results; integration test logs; defect log with resolutions
    • Gate: No open P1/P2 defects before progressing to E2E
  5. Execute E2E and performance testing — Run end-to-end scenarios across modules. Execute volume and performance tests for high-volume processes.
    • Evidence: E2E test execution report; performance test results with benchmark vs. actual
    • Gate: E2E scenarios passing; performance within defined SLA
  6. Facilitate UAT — Business users execute the approved test case library. Tester logs defects in tracking tool.
    • Evidence: UAT test execution records; defect log; daily UAT status report
    • Gate: 100% test case execution; all P1/P2 defects resolved or formally risk-accepted
  7. Conduct regression testing — On each major defect fix, re-run affected regression scenarios to confirm no regressions introduced.
    • Evidence: Regression test run results; delta comparison from previous run
    • Gate: No new defects introduced by fixes
  8. Obtain formal UAT sign-off — Present UAT completion evidence to business. Obtain written sign-off.
    • Evidence: Signed UAT sign-off document with name, date, scope, and outstanding items
    • Gate: Signed document in hand before go/no-go recommendation

Deliverable Templates

Test Strategy Summary

PROJECT: [Name]
DATE: [Date]
VERSION: [Version]

TEST PYRAMID SCOPE
------------------
Unit Testing:        [In scope / Out of scope] — [Rationale]
Integration Testing: [In scope / Out of scope] — [Rationale]
E2E Testing:         [In scope / Out of scope] — [Rationale]
UAT:                 [In scope] — [Business users, dates, location]
Performance Testing: [In scope / Out of scope] — [Rationale]
Regression Testing:  [In scope] — [Trigger conditions]

TEST DATA STRATEGY
------------------
Source:              [Origin of test data]
Anonymization:       [Tool / approach]
Volume:              [Record counts per entity]

AUTOMATION SCOPE
----------------
Tool:                [Tosca / Selenium / SAP TAO / None]
Automated scenarios: [List]
Manual scenarios:    [List]

DEFECT MANAGEMENT
-----------------
Tool:                [JIRA / Azure DevOps / SAP Solution Manager]
Priority definitions: P1=[definition] P2=[definition] P3=[definition] P4=[definition]
SLA: P1=[hours] P2=[hours] P3=[hours] P4=[hours]

SIGN-OFF AUTHORITY
------------------
UAT sign-off:        [Name, role]
Go-live approval:    [Name, role]

Test Case Matrix

| ID    | Module | Process          | Test Case                    | Type     | Priority | Status  | Tester | Pass/Fail | Defect Ref |
|-------|--------|-----------------|------------------------------|----------|----------|---------|--------|-----------|------------|
| TC001 | FI     | Invoice Posting  | Post vendor invoice — valid  | Positive | P1       | Pending | [Name] |           |            |
| TC002 | FI     | Invoice Posting  | Post invoice — missing field | Negative | P1       | Pending | [Name] |           |            |
| TC003 | MM     | Purchase Order   | Create PO — standard         | Positive | P1       | Pending | [Name] |           |            |
| TC004 | MM     | Purchase Order   | Create PO — blocked vendor   | Negative | P2       | Pending | [Name] |           |            |

Verification

This skill is complete ONLY when ALL of the following are true:

  • Test pyramid documented with all six levels addressed
  • Test case library reviewed and approved by business process owners
  • Test data strategy documented with anonymization approach confirmed
  • Unit and integration testing completed with defect log
  • E2E testing completed with performance benchmarks met
  • UAT execution is 100% complete (not estimated, counted)
  • Zero open P1 defects; P2 defects resolved or formally risk-accepted in writing
  • Formal UAT sign-off document signed and dated

Evidence required: Test strategy document, test case matrix with pass/fail status, defect log, performance test report, signed UAT sign-off form.

If any item above is unchecked, this skill is NOT complete. Do not claim sign-off readiness.


Next Skill

After completing this skill, invoke: data-migration Conditions for handoff: Testing strategy signed off and UAT complete. Data migration execution requires its own testing (reconciliation, trial run) — invoke the data-migration skill next.


Cross-References

  • go-live-readiness — Testing sign-off is one input to the go/no-go matrix; invoke after this skill
  • cutover-planning — Test completion gates cutover execution
  • development-workflow — Unit test standards for custom development
  • sap-test-designer agent — Use for automated test case generation from process specs

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.