- Primeros pasos
- Gestión de proyecto
- Documentos
- Trabajo con el análisis de impacto de cambios
- Creación de casos de prueba
- Asignar Casos de prueba a los Requisitos
- Clonación de casos de prueba
- Exportar casos de prueba
- Vincular casos de prueba en Studio a Test Manager
- Delete test cases
- Casos de prueba manuales
- Documentar casos de prueba con Task Capture
- Parámetros
- Habilitar la gobernanza a nivel de proyecto
- Deshabilitar la gobernanza a nivel de proyecto
- Habilitar el control a nivel de caso de prueba
- Deshabilitar el control a nivel de caso de prueba
- Gestionar aprobadores para casos de prueba controlados
- Gestionar casos de prueba gobernados en el estado En trabajo
- Gestionar casos de prueba controlados en el estado En revisión
- Gestionar objetos controlados en estado Firmado
- Gestionar comentarios para casos de prueba controlados
- Aplicar filtros y vistas
- Importar conjuntos de pruebas de Orchestrator
- Creating test sets
- Añadir casos de prueba a un conjunto de pruebas
- Asignar usuarios predeterminados en la ejecución del conjunto de pruebas
- Habilitación de la cobertura de actividad
- Habilitar Healing Agent
- Configurar conjuntos de pruebas para carpetas de ejecución y robots específicos
- Anular parámetros
- Clonación de conjuntos de pruebas
- Exportar conjuntos de pruebas
- Aplicar filtros y vistas
- Preguntas frecuentes: paridad de características: Test Manager frente a Orchestrator
- Ejecución de pruebas manuales
- Ejecución de pruebas automatizadas
- Ejecutar casos de prueba sin un conjunto de pruebas
- Ejecutar pruebas mixtas
- Crear ejecuciones pendientes
- Aplicar una orden de ejecución
- Volver a ejecutar ejecuciones de prueba
- Programar ejecuciones
- Solución de problemas de ejecuciones automatizadas
- Pruebas de accesibilidad para Test Cloud
- Operaciones y utilidades del proyecto
- Configuración de Test Manager
- Integración de herramientas de ALM
- Integración de API
- Agentes de codificación para pruebas
- Solución de problemas
Best practices for structuring SAP test automation projects in Test Manager and Studio: project structure, reusable components, and activity choices that reduce maintenance effort.
Building automated test cases for SAP applications is fast and reliable, but SAP's complexity can affect both the stability of your automations and the effort needed to maintain them over time. These guidelines keep SAP test projects simple to understand, easy to extend, and cheap to maintain. For the Studio-side steps that connect an automation to a test case, see Automate test cases.
Recommended project structure
A well-structured SAP test automation project gives each part a single, clear responsibility:
- Execution template: a WinGUI-specific template that handles environment cleanup and starts SAP before a test case runs.
- Helpers: reusable workflows that fetch credentials and log in to SAP.
- Reusable components: automation building blocks, typically one per SAP transaction, callable from multiple test cases.
- Test cases: the top-level workflows that assemble helpers and reusable components into an end-to-end scenario.
Separating test data from automation logic
The data a test case needs stays apart from the sequence of steps that executes it:
- Preparing test data: assigning the test data (order type, sales organization, distribution channel, and similar values) at the start of the test case.
- Sequencing automations with verifications in between: invoking each reusable component in order, with a Verify Expression step after each one confirming the expected result before moving on.
A Given-When-Then structure isn't needed for SAP test cases — the data preparation and automation sequence shown below is sufficient.
Using SAP transactions as reusable components
SAP transactions are natural boundaries for reusable automation sequences:
- Starting each component from the SAP Easy Access window.
- Using SAP-specific activities where available — they enrich the standard UI Automation activities (Click, Get Text, and others) with SAP-aware behavior.
- Exiting the transaction to return to the SAP Easy Access window before the component finishes, so the next transaction in the sequence can continue from a known starting point.
The Heatmap measures coverage per SAP transaction. If your automation isn't structured with one reusable component per transaction, coverage shown in the Heatmap can look inflated or incomplete relative to what you actually verified.
Using a WinGUI execution template
A WinGUI-specific execution template running before every test case puts the environment in a known state:
- Closing any SAP instance that's still running, for example with Kill Process on
saplogon.exe. - Logging in to SAP using a reusable helper workflow.
Choosing Simulate over Hardware Events
Simulate is the recommended input mode for SAP automation, set at the project level under Project Settings > UI Automation Modern > Targeting methods - SAP. It's faster and more reliable than Hardware Events for most SAP controls.
Controls that don't support Simulate
Some fields raise a "writing text with Simulate is not supported" error. Switching that specific activity's Input mode to Hardware Events resolves it, without changing the project-level default.
Choosing SAP-dedicated activities over generic activities
SAP-specific activities are generally the better choice over generic UI Automation activities — they're built to understand SAP controls and are more resilient to change than generic equivalents.
Navigation and screen activities:
- Transacción de llamada
- Clic en imagen en pantalla
- Hacer clic en botón de barra de herramientas
- Seleccionar elemento de menú
- Inicio de sesión en SAP
- Inicio de sesión en SAP
Table and tree activities:
- Expand ALV Hierarchical Table (ABAP List Viewer)
- Expandir árbol ALV
- Expandir árbol
- Ámbito de la celda de la tabla
Data and status activities:
- Lectura de barra de estado
- Seleccionar fechas en el calendario
End-to-end test case example
A single end-to-end test case can chain SAP transactions inside one session: logging in with SAP Logon, assigning the test data with Multiple Assign, then running the reusable component for each transaction in sequence — for example, VA01, VKM1, VL10H, VT01N, VT02N, VL02N, VI01, VF01, and BF03 — returning to SAP Easy Access before the next transaction starts.
Resumen
Keeping SAP test automation projects simple reduces the effort needed to maintain them over time:
- A project structure that's easy to understand.
- Repeatable logic moved into reusable components, each with a single responsibility.
- No time spent building for requirements you don't need yet.
- Recommended project structure
- Separating test data from automation logic
- Using SAP transactions as reusable components
- Using a WinGUI execution template
- Choosing Simulate over Hardware Events
- Controls that don't support Simulate
- Choosing SAP-dedicated activities over generic activities
- End-to-end test case example
- Resumen