How to run scripts between environments in RFT
We have created scripts for applications in our TEST environment but now we need to run the same scripts in UAT environment. Other than configuration the applications for UAT and changing the datapools, what other changes needs to be done. Also how can we change browser instances for a project at one time instead of changing it in each script manually.
Thanks in advance.
Typically, I think there are 2 things needed,
Originally Posted by gamey06
* A configuration file. - Your tests should read things like envionrment settings from a configuration file or system env. This allows you to run against different envionrments seamlessly.
* Page/Screen Object abstraction - Moving low level UI actions into different objects organized by the screens or panels they are in. This allows your test to read high level, and any minor changes in the apps behavior can be hidden away inside the self contained object to represent the current screen you're on. Back when I was using RFT, I used a separate object map for each screen, with relative mapping. And any differences introduced by the OS or platform, I could handle inside my ScreenObject. I would have some switching code to handle finding the root object, then did all my mapping relative to that. That allowed me to handle the differences in the AUT running on different platforms.