---
schema_version: "1"
id: aef5c70a5fd932f71f159d6dd0a2e77b08530625672ca8d37a914c4420fa702d
title: Automated Testing with UTAM for Omnistudio
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_utam_flexcards_omniscripts.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_utam_flexcards_omniscripts.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 92e8d0ae73db19ab9a503506f407ea8d3045817d042750a8ef7716d798fcb61f
description: Omnistudio now supports automated UI testing for Omniscripts and Flexcards by using the UI Test Automation Model (UTAM) framework. Automated testing is crucial for ensuring the stability and integrity of Omnistudio deployments.
products:
  - Omnistudio
release: "264"
---
# Automated Testing with UTAM for Omnistudio

Omnistudio now supports automated UI testing for Omniscripts and Flexcards by using the UI Test Automation Model (UTAM) framework. Automated testing is crucial for ensuring the stability and integrity of Omnistudio deployments.

UTAM is a modern, open-source framework that helps you validate the entire customer experience. It validates by simulating UI interaction to test user actions (example, clicks, input), asserting correct element values, verifying expected navigation behaviors (example, moving between steps), and confirming accurate visual states (example, error messages, visibility). This test ensures customer journeys function correctly after deployments or code changes.

UTAM uses the Page Object Model (POM) pattern to abstract away underlying UI changes, creating stable, resilient tests that remain durable across Salesforce releases. This approach provides reliable, end-to-end validation of the customer experience. See [UTAM](https://utam.dev/guide/introduction) and [Salesforce Page Objects](https://www.npmjs.com/package/salesforce-pageobjects).

## Benefits of UTAM Testing

UTAM testing provides several key advantages for quality and stability:

- Durable and reliable UI testing: Your tests remain stable and reliable even when platform updates change the component structure. UTAM achieves this durability through Document Object Model (DOM) abstraction by separating the test logic from the UI code.
- Comprehensive user-journey validation: Tests Omniscripts and Flexcards end-to-end by simulating real user actions (form entries, button clicks, data checks, and conditional steps) and navigation.
- Reusable and maintainable tests: Uses the Page Object Model (POM) to organize UI test code into reusable Page Objects (POs), making tests easier to read, build, and maintain.

## Key UTAM Testing Concepts

These concepts explain the underlying architecture that ensures your tests remain stable during any Salesforce UI changes:

- Page Object Model (POM): POM is the main design pattern that UTAM uses. It separates the test logic (what you test) from the UI structure (where the element is present in the code).
- Abstraction and resilience: UTAM achieves test stability by abstracting the underlying DOM structure. Even if Salesforce modifies the HTML or CSS of an Omniscript or a Flexcard element, your test script remains stable and functions as expected.
- Page Objects (POs): POs are the central modules that represent specific UI components, such as an `OmniscriptStep` or an input field. The developer calls the stable methods defined in the POs . For example, `setValue()`, `click()`.
- Test Scripting: The developer writes code that calls the PO methods in a sequence, followed by an assertion to verify the outcomes. For example, verifying field values or error messages.

- **[UTAM Testing Workflow](https://help.salesforce.com/s/articleView?id=xcloud.os_utam_workflow.htm&release=264.0.0&type=5)**  
    The UI Test Automation Model (UTAM) testing workflow focuses on preparing the testing environment, writing UTAM Page Objects (POs), and running end-to-end tests for UI components.
- **[How to Write End-to-End Tests with UTAM for Flexcards](https://help.salesforce.com/s/articleView?id=xcloud.os_utam_how_to_write_tests_flexcard.htm&release=264.0.0&type=5)**  
    To fully automate and stabilize your guided user flows, structure and build end-to-end tests for Flexcards by using UTAM's commands.
- **[How to Write End-to-End Tests with UTAM for Omniscripts](https://help.salesforce.com/s/articleView?id=xcloud.os_utam_how_to_write_tests_omniscript.htm&release=264.0.0&type=5)**  
    To fully automate and stabilize your guided user flows, structure and build end-to-end tests for Omniscripts by using UTAM's commands.