Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to create test scripts that will not change if the application’s UI changes?

0
Posted

How to create test scripts that will not change if the application’s UI changes?

0
0

A.: It is difficult to make scripts universal since the solution depends on the application and the development tool that the application was created with. TestComplete uses an object-oriented recording model, so changing the control’s position within a window will not break the script, so there is no need to modify the script. However, the script may fail if the control’s recognition attributes are changed (for instance, the button’s caption is changed). To make your scripts less dependent on the application’s UI changes, you can map desired windows or controls using TestComplete’s NameMapping project item. This mapping process is called name mapping. It consists of assigning a custom name to a control and specifying property values that will be used for recognition of this control. That is, once you map an object, TestComplete attempts to recognize the control using the appropriate name mapping settings rather than recognition attributes that are used by default. After mapping an obj

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123