Configure optional settings
To tailor Salesforce Engine 3.0 to your needs, you can configure the following optional settings:
Disable performance optimization
By default, Tricentis Tosca uses the test configuration parameter OptimizeForSalesforce which decreases execution time by about 40% on average. This parameter is automatically set to True.
If this performance optimization causes issues, you can disable it.
To do so, create the TCP OptimizeForSalesforce on the Tosca object that you want to configure and set its value to False.
Disable Salesforce Classic objects
By default, the Salesforce Engine 3.0 enables the objects defined in Salesforce Classic to appear as tabs in the Salesforce Module.
If you do not want to view the objects defined in Salesforce Classic, you can disable the setting Scanner include classic objects.
To do so, go to Project > Settings > TBox > Engines > XBrowser > Salesforce and change the value of the setting Scanner include classic objects to False.
Enable Salesforce Lightning objects
By default, the Salesforce Engine 3.0 disables the objects defined in Salesforce Lightning to appear as tabs in the Salesforce Module if they are not defined in Salesforce Classic.
If you want to view the objects defined exclusively in Salesforce Lightning, you can enable the setting Scanner include lightning objects.
To do so, go to Project > Settings > TBox > Engines > XBrowser > Salesforce and change the value of the setting Scanner include lightning objects to True.
Exclude frames
To improve the performance of your Salesforce test, the Salesforce Engine 3.0 includes the frame HTML tag elements when loading the HTML DOM structure. Frame is a HTML tag element that loads another HTML page within the document. It puts another web page within the parent page.
If you want to skip the HTML tag elements in the HTML DOM structure, use the setting Exclude frames.
To do so, go to Project > Settings > TBox > Engines > XBrowser > Salesforce and change the value of the setting Exclude frames to True.
Exclude Shadow DOM
By default, the Salesforce Engine 3.0 includes the shadow-root HTML tag elements when loading the HTML DOM structure. Shadow DOM is used to encapsulate the internal DOM structure of a web component.
If you want to skip the shadow-root HTML tag elements in the HTML DOM structure, use the settings Exclude ShadowDoms and Exclude frames.
To do so, go to Project > Settings > TBox > Engines > XBrowser > Salesforce and change the value of the settings Exclude ShadowDoms and Exclude frames to True.
Disable URL-based identification
By default, the Salesforce Engine 3.0 identifies the Salesforce interface (Classic or Lightning Experience) based on the URL of the Salesforce application you scanned.
If you encounter issues due to this UI identification, you can disable it.
To do so, go to Project > Settings > TBox > Engines > XBrowser > Salesforce and change the value of the setting URL based UI type identification to False.
Ignore invisible HTML elements
To improve the performance of your Salesforce tests, you can use the Ignore invisible HTML elements setting or TCP. When you do this, XScan adds the IgnoreInvisibleHtmlElements steering parameter to your Modules and ignores invisible controls. Don't use this setting or TCP if you want to steer invisible elements in your Salesforce application.
To ignore invisible HTML elements, do one of the following:
-
If you haven't scanned your Salesforce application yet, go to Project > Settings > TBox > Engines > XBrowser and change the value of the Ignore invisible HTML elements setting to True.
-
If you've already scanned your Salesforce application, add the IgnoreInvisibleHtmlElements setting or TCP to your Salesforce TestCase or ExecutionList and set the value to True.