Facebook

For any corporate training requirements Please mail To sudhakar@qtpsudhakar.com
Course Name Date Time Duration Type Location
An important update from QtpSudhakar. I stopped giving classroom training in MindQ Systems. I have bigger plans and I want to put an end to regular classroom training because very less people are practicing. From now onwards every session of mine is going to have explanation and practice. Everyone should practice in presence of mine and should go out of classroom with practical knowledge. So I started my own institute AnyTechLabs in Madhapur. Please reach out to +91-8328152362 for course details. Visit AnyTechLabs.com for address details.
Selenium + Cucumber 24th October 7.30 AM IST to 9.00 AM IST 45 Days WeekDay Online

A book "Cracking the QTP interview" authored by Sudhakar.Read More. Buy From FlipKart

Wednesday, June 24, 2009

Locking and Unlocking Machine in Script Runtime

Locking and Unlocking Machine in Script Runtime

If system is locked in script runtime then the script will not perform any operations on objects. But we may get some situations to lock machine when we are going out of the office.

QTP is providing a solution to lock and unlock machine when script is running.

SystemUtil.BlockInput
This statement will block the user input from key board or mouse.

SystemUtil.UnblockInput
After executing this statement you may enter user input.

How to use these statements?

In starting of the script use
SystemUtil.BlockInput, at end of the script use SystemUtil.UnblockInput.

So that QTP will lock and unlock machine in script running.

You don't see the locked screen on your machine after executing SystemUtil.BlockInput. The same screen will be there but it don't accept any user input.

No comments :

Post a Comment