Loading
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          UTAM Testing Workflow

          UTAM Testing Workflow

          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.

          1. Environment setup: Install the Salesforce CLI and configure your preferred test runner (example, WebDriverIO, TestNG, Maven) to work with the UTAM framework. See Install Saleforce CLI, Guide for Java, and Guide for JavaScript.
          2. PO creation: Create custom UTAM POs for your complex Omniscripts and Flexcards. These POs define the UI elements (inputs, buttons, steps) and the actions you can perform on them. SeeSalesforce Page Objects.
          3. Test scripting: Write test classes in Java or TypeScript that import the necessary Omnistudio and custom POs, then define a logical sequence of user actions that include login, navigate, data input, and component interaction.
          4. Assertion: Use assertion libraries (example, TestNG Assert) to confirm that elements display correctly, input values are retained, and UI logic (example, error messages) works as expected.
          5. End-to-end tests: For commands to run your tests, see UTAM Java Readme and UTAM JavaScript Readme. Example, mvn test -Dtest=<TestClassName>.
           
          Loading
          Salesforce Help | Article