| || |
Running same scripts on different web applications
We have two identical Siebel7.5 QA environments except for the server names and web addresses. We would like to develop scripts using QTP6.5 on one environment(let us say Q01) and use it on both environments(let us say use it on Q01 and also Q02). How do we do that with out making any changes to the script, if possible? or can we make changes to only login and logout scripts and use other scripts as is? Can we do that?
Login script - Make changes as needed to fit the environment
Create Customer script - Re-usable with no changes
Create Account script - Re-usable with no changes
Create Order script - Re-usable with no changes
Logout script - Make changes as needed to fit the environment
Note: I am assuming that if any body has done the same on any other application with same situation should also work, so please feel free to share your experience. I have logged a ticket with Mercury but they have come with a suggestion which I have already found on this Forum which is given below: (Please suggest only if yours is different than this one).
This is from Mercury.
Please Change the URL in the test settings. If there are any references of the URL in the Expert View, change them, too.
1. Go to Test -> Record and Run Settings.
2. On the Web tab, modify the URL as needed.
3. Click <Apply>.
4. Click <OK>.
Thanks in advance.
Re: Running same scripts on different web applications
you can do onething parameterize the url part in to excel sheet...and use the descriptive programming, to get the value..... if your only difference between the enviornment is url..then u can go for the following piece of code....
Site = Datatable.import(url.dtglobalsheet)
set Brow_Obj=CreateObject("InternetExplorer.Applicatio n")