Posts: 1,105
Threads: 18
Joined: Jan 2008
Reputation:
8
06-11-2013, 08:28 PM
Arpan,
I assume all other variables remain the same like objects etc, what's the difficulty you're facing to implement it? What do you mean by "dynamically run" , is it you want script to automatically identify when the new build is deployed?
Posts: 30
Threads: 16
Joined: Jun 2013
Reputation:
0
06-11-2013, 08:43 PM
(This post was last modified: 06-11-2013, 08:50 PM by arpan.)
Hi Ankur,
I want the script to run on server 1 lets say around 1am and then run the same script for server 2 @ 3am.
so to run the script on server 2, i've to change the url's from server 1 to server 2. How can i do that automatically ?
Thanks
Arpan
Also, how can i make the script to automatically identify when the build is deployed ??
Posts: 1,105
Threads: 18
Joined: Jan 2008
Reputation:
8
06-12-2013, 02:04 AM
>>How can i do that automatically ?
How are you scheduling your script? Are you using some initialization script?
>>Also, how can i make the script to automatically identify when the build is deployed ?
1) Either you should set some type of polling mechanism whereby
your machine can poll the server to find out if a new build is generated
2) OR maybe use some other trigger generated from the build server itself.
Posts: 30
Threads: 16
Joined: Jun 2013
Reputation:
0
06-12-2013, 02:15 AM
Thanks Ankur for the second problem.
>> How do i run it automatically?
I'm using Windows Schedular and i wrote a .vbs file which opens qtp, calls the script and then runs it.
Posts: 323
Threads: 8
Joined: Nov 2011
Reputation:
4
06-12-2013, 11:25 AM
what you are doing is the correct process to run the file automatically
Posts: 1,105
Threads: 18
Joined: Jan 2008
Reputation:
8
06-21-2013, 10:00 AM
@arpan: I hope you were able to solve the issue by now. There can be lots of ways to do this.
1) try using an ini file or
2) environment variables.
if it is just one after the other as you said, it may just require parameterizing the URL field.
Posts: 30
Threads: 16
Joined: Jun 2013
Reputation:
0
06-21-2013, 06:34 PM
Yes i was able to resolve the problem by parameterizing the URL field. Thanks for all your help.
QTP forum rocks!!!