Test Automation for Salesforce | Provar Logo Test Automation for Salesforce | Provar Retina Logo
  • SOLUTIONS
    • SALESFORCE
    • SERVICEMAX
  • RESOURCES
    • RESOURCES
    • FAQS
  • COMPANY
    • COMPANY
    • EVENTS
    • CAREERS
    • PARTNERS
    • CONTACT US
  • SUPPORT
  • BLOG
  • REQUEST A DEMO
Assert Page Error Messages on Add/Edit Product

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 in the usual way 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 of this is added as a separate item in the Message List.

For example, the following error message has 3 rows:

When any of these rows is 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 in the usual way.

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, the 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:

Share this:

  • Twitter
  • LinkedIn
Karolina Nowak 2018-07-10T15:15:18+00:00

Leave A Comment Cancel reply

  • Introduction
  • General Information
    • About Provar
    • System Requirements
    • Installing Provar
    • Granting Org Permissions to Provar
    • Updating Provar
    • Provar Support Process
  • Licensing Provar
    • License Types
    • License Activation
  • Tutorials
    • Start Here
    • Quickstart Guide
    • Quickstart Extension
    • Data Driven Testing
    • Testing with Different Profiles
    • Lightning Testing
  • Testing With Provar
    • Provar Desktop
    • Creating and Importing Projects
    • Adding a Connection
    • Creating Test Cases
    • Adding UI Test Steps
    • Using Functions
    • Managing Test Steps
    • API Testing
    • Using Test APIs
      • Test APIs Introduction
      • BDD APIs
      • Control APIs
      • Force.com APIs
        • Apex Bulk
        • Apex Execute
        • Extract Salesforce Layout
      • List Compare API
      • String APIs
      • UI Testing APIs
        • UI Action
        • UI Assert
        • UI Connect
        • UI Fill
        • UI Handle Alert
        • UI Navigate
        • UI On Screen
        • UI With Row
      • Custom APIs
        • Importing and Executing JAR Files
        • Creating Custom APIs
    • Environment Management
    • Debugging Tests
    • Running Tests
    • Test Cycles
    • Reporting
    • Exporting Test Cases
    • Exporting Projects
    • Callable Tests
      • Introduction to Callable Tests
      • Managing Parameters
      • Reusing a SFDC Connection
    • Data Driven Testing
      • DDT Introduction
      • Read Data From Excel
      • Write Data Into Excel
    • Tooltip Testing
    • Defining a Namespace Prefix on a Connection
    • Defining Proxy Settings
    • Namespace Org Testing
    • Searching Provar with Find Usages
    • Secrets Management and Encryption
    • Testing Browser Options
  • Salesforce Testing
    • Assert Page Error Messages on Add/Edit Product
    • Internationalization Support
    • Lightning Testing
    • List and Table Testing
    • Service Cloud Console Testing
    • Visualforce Testing
      • Introduction to Visualforce Testing
      • Introduction to XPaths
      • Maintaining Page Objects
      • Page Object Operations
      • Mapping Non-Salesforce Fields
      • Creating an XPath
  • Applications Testing
    • Database Testing
      • Database Testing Setup
      • Database Operations
    • Document Testing
    • Email Testing
      • Email Testing Setup
      • Email Testing Examples
    • Force.com Testing
    • Mobile Testing
      • Mobile Emulation
      • Mobile Testing with Appium
      • Perfecto mobile
      • ServiceMax FSA Mobile Testing
    • OrchestraCMS Testing
    • Salesforce CPQ Testing
    • ServiceMax Testing
    • Skuid Testing
    • Vlocity Testing
    • Webservices Testing
      • Web Services Introduction
      • Creating a Web Service Connection
      • Web Services Testing
  • DevOps
    • Introduction to Test Scheduling
    • Apache Ant, Java JDK and Environment Variables
    • Generating a Build File
    • ANT Task Parameters
    • ANT Licensing
    • Version Control and DevOps
    • Setting Up Continuous Integration
    • Masking Credentials in Jenkins
    • Running Provar on Linux
    • Salesforce DX
  • Version Control
    • Git
      • Introduction to Git Integration
      • Creating a Provar Repository
      • Git and Provar Projects
      • Working with Git
    • Team Foundation Server
  • Integration
    • Micro Focus (HP) ALM
    • Jira
    • Salesforce Test Integration Package
  • Best Practices
    • Supported Testing Phases
    • Automation Planning
    • Test Case Design
  • Troubleshooting
    • Add Floating License Firewall Exception
    • Add Gmail Firewall Exception
    • Add Permissions To Edit Provar.ini File
    • Common Install or Update Issues
    • Configure Provar UI in High Resolution
    • Enable Prompt To Choose Workspace
    • Increase System Memory For Provar
    • JavascriptException error via IE
    • Out of Memory error during CI Execution
    • Override Chrome Driver Version
    • Overriding the Chrome Install Location
    • Refreshing Org Cache Manually
    • Resolving Jenkins License Missing Error
    • Resolving Metadata Timeout Errors
    • Salesforce Connection Issues
    • Show Hidden Provar Files On Mac
    • Solving Administrator has Blocked Access to Client Errors
    • Test Builder Does Not Launch
    • Test Case Does Not Run on IE Browser
    • Test Case Steps Do Not Display
    • Test Execution Fails – Firefox Not Installed
  • FEATURES
  • RESOURCES
  • FAQs
  • BLOG
  • SUPPORT
  • HELP
  • CONTACT US
Copyright Provar 2019    |   All Rights Reserved
TwitterYouTubeLinkedinVimeo