Steer Related Lists
This chapter explains how to steer the Related Lists of various Salesforce applications.
Related Lists have two kinds of layouts:
-
Table layout: available in both Salesforce Classic and Salesforce Lightning Experience.
-
Card layout: only available in Salesforce Lightning Experience.
The screenshots below show the same Related List in different layouts and Salesforce interfaces.
Related List card layout
When scanned, the Related List card layout produces the following table structure in Tricentis Tosca:
Primary Column | Title | Phone | Action | |
---|---|---|---|---|
John Smith | CTO | Jo.Smith@tricentis.com | (002)123-4567 | Edit/Delete |
Jack Smith | CFO | Jack@mail.com | (002)-1237654 | Edit/Delete |
Lou Lee | lee.l@test.com | (002)321-4567 | Edit/Delete |
Related List table layout in Salesforce Lightning Experience
When scanned, the Related List table layout from Salesforce Lightning Experience produces the following table structure in Tricentis Tosca:
Contact Name | Title | Phone | Action | |
---|---|---|---|---|
John Smith | CTO | Jo.Smith@tricentis.com | (002)123-4567 | Edit/Delete |
Jack Smith | CFO | Jack@mail.com | (002)-1237654 | Edit/Delete |
Lou Lee | lee.l@test.com | (002)321-4567 | Edit/Delete |
Related List table layout in Salesforce Classic
The Related List table layout from Salesforce Classic produces the following table structure in Tricentis Tosca when scanned:
Action | Contact Name | Title | Phone | |
---|---|---|---|---|
Edit/Delete | John Smith | CTO | Jo.Smith@tricentis.com | (002)123-4567 |
Edit/Delete | Jack Smith | CFO | Jack@mail.com | (002)-1237654 |
Edit/Delete | Lou Lee | lee.l@test.com | (002)321-4567 |
Steer Related Lists and embedded controls
Tosca XScan identifies both Related List layouts as tables, so you can steer Related Lists as standard Table controls.
Embedded controls in the table are steered as standard Engine 3.0 controls. For example, you can steer Actions drop-down menus as standard ComboBoxes.
In this example, you select the Edit option from the Actions drop-down menu in the first row of the All Accounts Related List.
Steer embedded controls of Related Lists |
Compatibility between layouts and Salesforce interfaces
Table layout
The Modules created with the table layout in Salesforce Lightning Experience and the table layout in Salesforce Classic are compatible. Therefore, if you migrate from Salesforce Classic to Salesforce Lightning Experience, you don't need to make manual changes in your Tosca Modules and TestCases.
Tricentis recommends that you identify the table columns by ColumnName instead of ColumnNumber because the order of columns is different in Salesforce Classic and Salesforce Lightning Experience table layouts. |
Card layout
The card layout and the table layout differ in column naming. The first column of the card layout is called Primary Column and the last column is called Action.
To maintain the compatibility between card and table layout, use the following values for the first and last column:
-
Specify the first column as $1.
-
Specify the last column as $last.
In this example, you want to verify the first cell of the first entry in the related list and click on the button in the second row. You want to run your TestCase on both types of related lists.
Related list - table
Related list - card To do so, you specify the following values in your TestCase:
Related list in a TestCase |