Skip to main content

Architecture

Functional Architectureโ€‹

AI@Test follows a closed-loop architecture: the AI agent issues instructions to SAP through a protocol layer, reads back the result, and either validates success or initiates a self-healing correction โ€” repeating until the test step passes or a defect is logged.

๐Ÿ” CLICK TO ENLARGE

AI@Test โ€” Execution Loop
Self-healing closed-loop architecture
๐Ÿค–
4IT AI@Test
Agent ยท LLM ยท Orchestrator
MCP Protocol
โ†’
๐Ÿ”Œ
MCP Layer
35+ tools ยท Session ยท Actions
COM / Browser
โ†’
๐Ÿ–ฅ๏ธ SAP GUI Desktop
Dynpro ยท ALV ยท Popups
๐ŸŒ SAP Fiori App
Browser ยท Launchpad ยท UI5
User action
โ†’
๐Ÿข
SAP S/4HANA
Any module ยท Any transaction
Status / Error
โ†’
๐Ÿ“ก
Result to MCP
Status bar ยท Popup ยท Screen
Analysis
โ†’
๐Ÿ”„
AI Resolution
Diagnose ยท Correct ยท Retry
๐Ÿ” Self-Healing Loop

When the AI Resolution step produces a correction, the loop restarts from the MCP Layer with the corrected action โ€” up to the configured number of retry iterations. When a step passes, the agent advances to the next test step.

โœ…
Pass
Next step executed
๐Ÿ“ธ
Evidence
Screenshot saved
๐Ÿ›
Defect
Jira / qTest push
๐Ÿ“„
Report
PDF with AI analysis

Prerequisitesโ€‹

For SAP GUI Desktop automationโ€‹

RequirementDetails
Operating systemWindows only (COM scripting is a Windows-only technology)
SAP GUI versionSAP GUI 7.60 or higher with SAP GUI Scripting enabled
Scripting activationIn SAP GUI: Options โ†’ Accessibility & Scripting โ†’ Scripting โ†’ Enable scripting
BASIS approvalSAP GUI scripting is disabled by default in most corporate landscapes โ€” BASIS team must enable it at system and user level
Active sessionSAP GUI must be open and logged into the target system before the agent starts
sap-bridge runningThe AI@Test bridge service must be running on the same Windows machine as SAP GUI
note

SAP GUI automation requires a visible desktop session. It cannot run headless or in a Linux container. For CI/CD pipelines, use a Windows-based runner with a permanent SAP GUI session or connect to a Citrix / RDP session.


For SAP Fiori automationโ€‹

RequirementDetails
BrowserGoogle Chrome (recommended) or Microsoft Edge โ€” Chromium-based browsers only
SAP Fiori LaunchpadThe target Fiori Launchpad must be accessible via HTTPS from the agent machine
User credentialsA test user with the necessary Fiori authorizations for the applications under test
Network accessThe agent machine must have HTTP/HTTPS access to the SAP Fiori frontend server
Browser automationChrome DevTools Protocol (CDP) is used โ€” no browser extension required
Fiori app compatibilitySupports SAP UI5-based Fiori apps (freestyle, List Report, Object Page patterns). Custom non-UI5 apps require case-by-case assessment
tip

For Fiori testing, a headless Chrome instance can be used, making it compatible with Linux-based CI/CD environments such as GitHub Actions or Azure DevOps.


Integration with AI@KBโ€‹

When an AI@KB system report is available for the target SAP system, AI@Test can use it to design test cases grounded in the actual system configuration:

  • Document types, delivery types, billing types, and pricing conditions are read from the AI@KB extract
  • Test cases are tailored to the specific variant configured in your system โ€” not generic templates
  • Transactional data volumes and active configuration objects inform which test paths are relevant

This integration significantly reduces the time to produce a meaningful end-to-end test suite at the start of a project or before a major system change.