Posts: 8
Threads: 4
Joined: May 2011
Reputation:
0
05-20-2011, 03:00 PM
Hi All,
I am executing my QTP scripts through the QC V10 on VM Desktop.
When I run the regression suite through QC and if I minimized the VM Desktop, then the regression get stops.
Can you please tell me /suggest me the work around for this.Its in urgent
Thanks in Advance
Rahul Sharma
Posts: 79
Threads: 1
Joined: Apr 2011
Reputation:
0
05-20-2011, 04:33 PM
You can minimize your VM but you have to make sure that it shouldnt be full screen in order to let scripts keep running.. First resize your vm window to any size except full screen and then minimize, your scripts will keep running.
Posts: 8
Threads: 4
Joined: May 2011
Reputation:
0
05-20-2011, 05:30 PM
Hi jay,
I tried with your answer but the script is still getting stuck at a certain point.
i.e. script is getting fail.
Is there any other work around for this?
With Regards
Rahul Sharma
Posts: 23
Threads: 1
Joined: May 2011
Reputation:
0
05-20-2011, 06:15 PM
I did not had QC but I tried minimizing the vm and running my scripts...it ran fine... then I ran my scripts again and started the screen saver and my script failed and threw error of not finding the object
so at this point I can think of two things:
1. either your screen saver interrupting the run
2. either your VM getting locked
you need to check on those two points
there can be a work around also...
1. Open the VM and minimize it
2. then remotely login to VM and run your scripts
Posts: 8
Threads: 4
Joined: May 2011
Reputation:
0
05-23-2011, 12:29 PM
Thanks Jay and Deepak.
I tried but still I am facing the problem in the VM.
Now, I am trying to prevent my system from auto lock. May be this will helpful for me.
Can you please suggest me any good technique to prevent the system from auto lock.
Thanks again
Rahul Sharma
Posts: 130
Threads: 0
Joined: Jul 2008
Reputation:
0
05-24-2011, 02:25 PM
we have few settings using which we can make from Computer Auto Lock and also auto login which will login automatic. When you run the script machine will be in Logged in state so you should be able to run the scripts without logging to the machine
Posts: 79
Threads: 1
Joined: Apr 2011
Reputation:
0
05-25-2011, 10:58 AM
Rahul,
you can change the value of skipenvironment variable to run your scripts even if your vm is locked. you need to change its value from 0 to 1.
Posts: 159
Threads: 0
Joined: Mar 2009
Reputation:
0
05-25-2011, 12:05 PM
Hi,
Try following.
1. Script for keep PC unlocked and run it in the framework or via VBS in the back ground, this will help you keeping your PC unlocked.
2. Do not minimize the VM this will cause QTP to defocuss on the objects, rather Switch the wiondow that you wish to work on.
Let me know if this helps
Posts: 23
Threads: 1
Joined: May 2011
Reputation:
0
05-26-2011, 07:07 PM
You can try unchecking the "On resume password protect" check box.
I also feel that generally companies enforce auto locking of the system. If thats the case then you'll have to figure out a way to keep your system from auto locking