Documentation

Looking for something in particular?

Automation V3: Mapping Your First Component

To start creating a mapping with Component Based Model for testing (CBMT), start Test Builder for a Test Case and map your Salesforce Lightning Web Components(LWC), Screen Flows, or Vlocity. There’s no change in the existing user experience. You can right-click the element you want to interact with and select Add to Test Case.

If the element meets the Web Component criteria and matches the component in a Lightning Web Component, Screen Flow, or Vlocity, then the Test Builder editor displays the field sections relevant to CBMT–Web Component mapping otherwise  the Web Element mapping is displayed.

Fig: Creating a mapping with CBMT.

Set the desired values for testing the element and select Add to save the Test Step or Add & Do to save and execute the Test Step. You will notice a new java file(accountParent.java) has been added to the Page Objects section of Files in the project.

This Page Object stores the selected field information on the page as Web Component/Web Element.

Also, Web Component mappings are linked with a static Component ID of the standard component which is created in Provar Standard component Library.

For example: @WebComponentMapping(componentId = “5cd71547-c934-470c-9115-a10fe7f0307f”)

To start creating mappings with CBMT, start Test Builder for a Test Case and map your Salesforce Lightning Web Components(LWC) or Screen Flows or Vlocity. There is no change in the existing user experience. You can right-click on the element you want to interact and select Add to Test Case.

If the element meets the Web Component criteria and matches the component in a Lightning Web Component(LWC) or Screen Flow or Vlocity, then the Test Build editor displays the field sections relevant to CBMT-Web Component mapping else Web Element mapping is displayed.


Feedback

Was this article helpful for you?
Documentation library

Trying to raise a case with our support team?

We use cookies to better understand how our website is used so we can tailor content for you. For more information about the different cookies we use please take a look at our Privacy Policy.

Scroll to Top