Micro Focus QTP (UFT) Forums
how to run qtp scripts from QC when VM is minimized - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: how to run qtp scripts from QC when VM is minimized (/Thread-how-to-run-qtp-scripts-from-QC-when-VM-is-minimized)

Pages: 1 2


how to run qtp scripts from QC when VM is minimized - rahuldps - 05-20-2011

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


RE: how to run qtp scripts from QC when VM is minimized - Jay - 05-20-2011

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.


RE: how to run qtp scripts from QC when VM is minimized - rahuldps - 05-20-2011

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


RE: how to run qtp scripts from QC when VM is minimized - deepaksporty - 05-20-2011

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


RE: how to run qtp scripts from QC when VM is minimized - rahuldps - 05-23-2011

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


RE: how to run qtp scripts from QC when VM is minimized - surya_7mar - 05-24-2011

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


RE: how to run qtp scripts from QC when VM is minimized - Jay - 05-25-2011

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.


RE: how to run qtp scripts from QC when VM is minimized - Tarik Sheth - 05-25-2011

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


RE: how to run qtp scripts from QC when VM is minimized - deepaksporty - 05-26-2011

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


RE: how to run qtp scripts from QC when VM is minimized - rahuldps - 05-27-2011

HI,

I have tried with the desktop properties. I just disable the screen saver of my VM Desktop and now its working fine. Now I am able to prevent my VM from auto locking mode.

Thanks to All Smile
With Regards
RahulSmileSmile