You are here:
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.
- 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.
- 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.
- 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.
- 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.
-
End-to-end tests: For commands to run your tests, see UTAM Java Readme and UTAM JavaScript Readme. Example,
mvn test -Dtest=<TestClassName>.

