Unanswered question

I want to execute script in different environments. for ex- if I record a script in preprod and want to execute same script in development environment, how do I do that? Do I have to change server in every single page or is there any simple way where I can change at one place and it will pick it up?