I have an issue here - There are different environemnts on which an application is hosted. Eg - Test and Live.
Test scripts are to be run on test environment not live.
I am running QTP 9.0 scripts through Quality Center 9.0. When I open any site on test environment it opens the correct page but after login it diverts to the live environment. Is there any way that Qc is responsible for this diversion from test environment to Live environment. Is there setting that can store DNS? Please help ASAP.
There may be something really strange going on here, can't rule that out, but for the most part, QTP will only repeat exactly what you did when you recorded the script. So if you recorded it by clicking links that always take you to the test environment, then QTP should go to test too.
If you didn't record those links, but added them programmatically, or put them in a datatable, then my first suggestion would be look at the links you added and see if you added any of the wrong links.
If all that is good, then step through your script to see exactly which link takes you to your live environment.
If you can click that exact link in your application and go to test, but QTP clicks it and goes to live, I wouuld be very surprised (but as I said, I can't rule out the possibility) - my expectation iis that you will find some difference between what you do manually and what QTP does automationally (is that a word?).
Could this problem arise because I have all my test assests in QC (eg - script, repository and data files). The repository has been created against live. Could it be possible that because of this the script is navigating ot live whenever it references objects from the repository?
It does not matter on what env your script was created.
The OR will only have the properties on your objects and may not have the control to divert to any specific env , which should have been handled in your script/ the application itself
Can you download you script from QC to localdisk and run it independently on QTP and see what happens...??