Forum Discussion

adametek's avatar
adametek
New Contributor
12 months ago

How to use scripts and name mapping on Devexpress upgrade ?

What methods can be employed to utilize scripts and name mapping during a Devexpress upgrade?

I'm relatively new to Test Complete. While working with a desktop application, I've encountered issues where scripts fail due to changes in Xpath during a Devexpress upgrade.

How can such issues be effectively managed both now and in the future to minimize the efforts needed during upgrades? Your suggestions would be greatly appreciated.

  • There are some tips and outside references for using XPath with TC here:

    https://support.smartbear.com/testcomplete/docs/app-testing/web/general/common-tasks/finding-objects/xpath-expressions.html

    • adametek's avatar
      adametek
      New Contributor

      So, is there any script can we run directly so that all name mapping will get updated in case of environment upgrade ?

      • Marsha_R's avatar
        Marsha_R
        Moderator

        If you're going to have frequent environment changes, then you need to put your environment values in variables and use those variables to reference the objects that change instead of having them be directly in the code. Then all you have to change each time is that set of variables.