06-03-2009, 11:31 PM
Can you provide me sample code for "If...Then..End If" Statement.
The problem is that I recorded my script on Production server and then try to run on Test Server by editing the URL part of the script then QTP throws an error telling that OR does not have object for Test server URL. so we need to do something to add those objects in OR for Test server.
Also Test server applicaiton pages will have all URLs pointing to Test URL so here also things will change. It is not just matter of first line of the script where URL is specified. How to handle that?
Thanks,
The problem is that I recorded my script on Production server and then try to run on Test Server by editing the URL part of the script then QTP throws an error telling that OR does not have object for Test server URL. so we need to do something to add those objects in OR for Test server.
Also Test server applicaiton pages will have all URLs pointing to Test URL so here also things will change. It is not just matter of first line of the script where URL is specified. How to handle that?
Thanks,