Steer dual listboxes

In Salesforce, you use dual listboxes to move elements between two lists, for example Available and Chosen.

XScan identifies dual listboxes as ListBoxes. You can steer them as described in chapter "Listbox".

Dual listbox in Salesforce Lightning Experience

Steer list items separately

By default, XScan doesn't scan the list items of dual listboxes separately but you can do so manually.

To scan list items separately, follow the steps below:

  1. In XScan, switch to the Advanced View.

  2. Filter for ListBox and ListItem.

  3. Select the check boxes next to the list items that you want to scan.

List items in XScan

In this example, you want to move list items between two lists. You perform the following actions:

  • You move the item TEE to the Chosen list. To do so, you set its value to True.

  • You move the item qTest to the Chosen list. To do so, you use the property .Selected and set it to True.

  • You move the item Tosca to the Available list. To do so, you set its value to False.

  • You move the item Tosca BI to the Available list. To do so, you use the property .Selected and set it to False.

  • You verify if the item Tosca OSV is in the Chosen list and the item LiveCompare is in the Available list.

  • You buffer the value of the item Flood. The buffered value indicates which list includes this item. In this example, the buffer is set to False.

List items in a TestCase

As a result, some of your items are moved between the Available and Chosen lists.

Result of the TestCase

Select multiple list items

You can move multiple list items to the list of selected items at once. In this case, you don't need to scan list items separately.

To do so, list the items separated by semicolons in the Value field of the ListBox and set the ActionMode to Input.

Multiple list items

Steer read-only dual listboxes

In the read-only Details view, Salesforce Lightning Experience and Salesforce Classic display multiple list values differently:

  • In Salesforce Lightning Experience, value items are separated by a semicolon.

Multiple values in Salesforce Lightning Experience

  • In Salesforce Classic, value items are separated by a semicolon followed by a space.

Multiple values in Salesforce Classic

Therefore, to verify a Dual ListBox in read-only mode, you have to manually modify the separators between the value items in Tosca according to the Salesforce interface you use.