Tricentis Tosca 16.0 Released on Feb-2023 ----- UFT has been upgraded from UFT 15.0.1 to UFT One 15.0.2, Beginning at November 2020.

Tuesday 12 July 2022

Identify controls by Properties

Indetifying controls by their properties is the default identification method in Tosca XScan.

The Identify by properties pane contains all the technical information and properties of the selected control. 

To load all technical properties for the selected control, click the More button and select Load all.


Make a control unique - If control is not uniquely identifiable, you can have Tricentis Tosca select the minimal number of additional properties from the Identify by properties pane to make it unique.

To do so, select the control and click Make Unique.


NOTE - Alternatively, you can manually select additional properties to identify the control or use a different identification method.

NOTE - The following properties are blacklisted: ActionPoint, ControlArea, ConstraintIndex, IsStreerable, XPath.

If Tricentis Tosca can't make the control unique with the minimal number of additional properties, a dialog appears that asks whether yoou want to consider all properties to make the control unique.

--> Click Yes to load all properties for the selected control to try to make it unique.

Define default ID's - You can define your own default ID's for a control in Tosca XScan so that Tosca XScan remembers them for the next scans. This way, you don't have to manually set the properties of a control to make it unique.

To define default ID's for a control, following are the steps:
  1. Select the control.
  2. In the Identify by properties pane, select the properties that you want to define as default IDs.
  3. Click More and select Define default ID.
Now that you have defined all default IDs for the control, they are saved to one of the following files in the directory -  %TRICENTIs_PROJECTS%\TOSCA_WORKSPACES\<Workspace name>\Settings:

  1. WorkspaceSettings.xml : per default, the default IDs are saved as workspace settings.
  2. ProjectSetttings.xml : If there are project settings defined for the repository and available to the current usery, the default IDs are saved as project settings.
NOTE - If you, for instance, work in a multi user workspace and want to make the settings in the "WorkspaceSettings.xml" file availabel to other users, you need to import the workspace settings to the project settings. To do so, following are the steps.
  1. Create a project settings root element if it doesn't exist already.
  2. Import the "WorkspaceSettings.xml" file into your project in Tosca.
The settings are available to all users and workspaces associated with the project.

you can also view all defaultIDs that you have defined in TOsca XScan in the Default setting located at Settings-->TBox-->XScan.

Reset Default IDs - To reset the default IDs that you defined, follwoign are the steps.
  1. Select the control.
  2. In the Identify by Properties pane, select the properties.
  3. Click More and select Reset defined default ID.

NOTE - Identification by properties is the most statble method and is completely independent of resolution or zoom settings.
It may, however, not be browser independent. 

In some cases, one browser defines the InnerText with all capital letters and one with normal notation. Because of this, you can deselect the InnerText and select InnerHtml.


No comments:

Post a Comment

Note: only a member of this blog may post a comment.