Forum Discussion
The object identification criteria that you have defined and which TestComplete uses to search for objects in the application uniquely, needs to be updated to include a wildcard.
The criteria used here is ObjectType equals "Button" and Name equals "Default Button". TestComplete will use this criteria to search for the object within the application.Whereas, using a wildcard
TestComplete will search for ObjectType equals "Button" and Name that matches "* Button". The search will match one or more objects within the application.It's vital to understand https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/index.html as this is used to instruct TestComplete on how to locate the object in your tested application.
The child object of NameMapping.Sys. need to be correctly defined to include a wildcard (if possible), and MainForm.tableLayoutPanel.toolBarPanel will refer to the parent object that matches the criteria.
100% with rraghvani.
You can deal with this using your existing name mapping with minor modifications. We accomplish the same thing via a project variable and wildcards.
In our case we want the ability to run automation with previous and future versions of our application. Our approach uses a project variable to store the application name. That variable includes wildcards as you'll see below. We then use that project variable as the ProcessName identification property for the root application object in the name mapping.
We can edit the project variable any time if needed.
Related Content
- 7 years ago
- 5 years ago
- 5 years ago
Recent Discussions
- 2 days ago
- 4 days ago