Micro Focus QTP (UFT) Forums
how to fix scripts if browser name has changed - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: how to fix scripts if browser name has changed (/Thread-how-to-fix-scripts-if-browser-name-has-changed)



how to fix scripts if browser name has changed - Jenny - 10-22-2010

Hi, the vendor of our online application decided to change the name of browser, we have hundred of test scripts for our regression test suite. Is there an easy or a way to fix our scripts?

thanks


RE: how to fix scripts if browser name has changed - SaurabhGupta - 10-23-2010

Here are few Solutions:

- If there is any similarity between the presious and current one then use Regular expression.
- Export you object rep in XML and replace all the browser object present in it with the new name
- If you have a shared object repository and have recorded the browser object once then use UPDATE RUN and choose the option to update the objects as well. But make sure you update the line which doesn't affect any of you script or framework.