Assert Page Error Messages on Add/Edit Product
Provar supports the assertion of page error messages on the Add/Edit Product screen in Lightning.
You can assert error messages at the top level (next to the Cancel and Save buttons) and at the individual row level in the table.
You can assert page error messages by right-clicking on the message and selecting Add to Test Case, then setting the Interaction Type to Read/Assert.
Asserting top-level error messages
The Add/Edit Product screen can display multiple top-level errors, so Provar uses a Message List to store them.
When multiple errors occur, each error message appears as a bullet point in the top-level error message box next to the Cancel and Save buttons. Each row is added as a separate item in the Message List.
For example, the following error message has three rows:
When these rows are asserted, the following items are added to the Message List. Note that the header message Can’t save records with errors is also included:
You can assert any error in the error message box by mapping it as usual.
Here is an example test step asserting the Item 1 error message:
This appears in Provar Desktop as follows:
And the successful assertion appears in the Test Runner as highlighted:
You can follow the same approach for mapping the header message, Item 2, or any other errors in the same box.
To map multiple error messages (for example, asserting that Item 1 and Item 2 both have a specific message), simply add another Page Assertion to the existing test step:
Asserting row-level error messages
Provar can also assert the error messages that appear against a specific row. To test these, simply map the error message in the usual way.
For example:
- Provar Automation
- Installing Provar Automation
- Updating Provar Automation
- Using Provar Automation
- API Testing
- Behavior-Driven Development
- Creating and Importing Projects
- Creating Test Cases
- Custom Table Mapping
- Functions
- Debugging Tests
- Defining a Namespace Prefix on a Connection
- Defining Proxy Settings
- Environment Management
- Exporting Test Cases into a PDF
- Exporting Test Projects
- Override Auto-Retry for Test Step
- Managing Test Steps
- Namespace Org Testing
- NitroX
- Provar Desktop
- Provar Test Builder
- Refresh and Recompile
- Reintroduction of CLI License Check
- Reload Org Cache
- Reporting
- Running Tests
- Searching Provar with Find Usages
- Secrets Management and Encryption
- Setup and Teardown Test Cases
- Tags and Service Level Agreements (SLAs)
- Test Cycles
- Test Plans
- Testing Browser Options
- Tooltip Testing
- Using the Test Palette
- Using Custom APIs
- Callable Tests
- Data-Driven Testing
- Page Objects
- Block Locator Strategies
- Introduction to XPaths
- Creating an XPath
- JavaScript Locator Support
- Label Locator Strategies
- Maintaining Page Objects
- Mapping Non-Salesforce fields
- Page Object Operations
- ProvarX™
- Refresh and Reselect Field Locators in Test Builder
- Using Java Method Annotations for Custom Objects
- Applications Testing
- Provar Manager
- DevOps
- Introduction to Test Scheduling
- Apache Ant
- Configuration for Sending Emails via the Automation Command Line Interface
- Continuous Integration
- AutoRABIT Salesforce DevOps in Provar Test
- Azure DevOps
- Running a Provar CI Task in Azure DevOps Pipelines
- Configuring the Automation secrets password in Microsoft Azure Pipelines
- Parallel Execution in Microsoft Azure Pipelines using Multiple build.xml Files
- Parallel Execution in Microsoft Azure Pipelines using Targets
- Parallel execution in Microsoft Azure Pipelines using Test Plans
- Bitbucket Pipelines
- CircleCI
- Copado
- Docker
- Flosum
- Gearset DevOps CI/CD
- GitHub Actions
- Integrating GitHub Actions CI to Run Automation CI Task
- Remote Trigger in GitHub Actions
- Parameterization using Environment Variables in GitHub Actions
- Parallel Execution in GitHub Actions using Multiple build.xml Files
- Parallel Execution in GitHub Actions using Targets
- Parallel Execution in GitHub Actions using Test Plan
- Parallel Execution in GitHub Actions using Job Matrix
- GitLab Continuous Integration
- Travis CI
- Jenkins
- Execution Environment Security Configuration
- Provar Jenkins Plugin
- Parallel Execution
- Running Provar on Linux
- Reporting
- Salesforce DX
- Git
- Team Foundation Server
- Version Control
- Salesforce Testing
- Best Practices
- Troubleshooting
- Release Notes