Micro Focus QTP (UFT) Forums
One common test for different website on different environment - 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: One common test for different website on different environment (/Thread-One-common-test-for-different-website-on-different-environment)



One common test for different website on different environment - ilharess - 05-20-2011

Hi there,

I just wanted to check whether we can have one common recorded test for a website and then use it for a similar website but with a different url.

If yes how can i change the url for that recorded test?

Thanx in advance


RE: One common test for different website on different environment - deepaksporty - 05-20-2011

I guess that would be difficult because the website may be similar but the Object description/properties may change so QTP will not identify the objects in that website.

Probably we can use Keyword driven approach here but I guess that would be too advanced and time consuming to do that.

I suggest you to record the action for similar website and check if the object are the same in your OR. If they are same then you can use the same test but I doubt that


RE: One common test for different website on different environment - ilharess - 05-20-2011

Hi,

Thanx for the reply..

I think I've found the solution.. When recording the test, I actually open up the IE as a window app and insert the URL manually.. I have managed to do that and use the recorded test for the other URLs by changing the navigate in keyword view.

But I still need to test on this..

Thanx again for the reply..~