BlockInput Feature In QTP

Automation testing using QTP has always been talked upon the most in the testing industry. There are numerous features available within this very toolset, but most of us might not be aware of this very feature whioch has been discussed in this very articles on automation testing using QTP which is Blockinput feature.

 QTP provides BlockInput method to prevent keyboard and mouse input events from reaching applications.
UnblockInput method Re-enables keyboard and mouse input events after a BlockInput statement was used to block them.
'The following example uses the BlockInput method to block keyboard
'and mouse input to the QuickTest Professional computer during the run session.
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").WebEdit("userName").Set "mercury"
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").WebEdit("password").SetSecure "4082986e39ea4ssdd0dbf8c5a29429fe138c6efc"
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").Image("Sign-In").Click 2, 2

These two methods of the SystemUtil class is genuinely used to block the user from entering data through keyboard while the script is in execution mode.
Genuinely for security concerns this utility method is utilised at the best level.

For gaining more insights in the automation using QTP log on to below url :
Automation Testing Using QTP 


Post a Comment

Previous Post Next Post