I have a web application that I need to test in UAT and test environments.What I tried doing in the code below is to load the url from a datatable,set the test settings and open the web page. What actually happens is that that QTP opens the last URL that was saved in in the previous run. E.g if first test urlToTest=www.matchyourskill.com and the I try to change the urlToTest to www.yahoo.com, the code QTP opens www.matchyourskill.com but if I try it again, then it opens the correct urlTotest:www.matchyourskill.com.
I have actually tried to use
SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe", urlToTest ,"","open"
but two webpages are opened.
Another hint is that I have other actions that run before the call to open the url.
I want it to open the url that I demand at run time. Any helps will be appreciated
Thanks, that would have been an awesome solution but because I run my tests from Quality centre, it also closes the Quality centre browser that I scheduled my tests on. Is there any other possible solution?