Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what r the send key commands in QTP why they r used



what r the send key commands in QTP why they r used..

Answer / pradeep.yaksiri

Sendkeys method is like boon for QTP testers, In some cases
QTP tool becomes dumb and not able to identify or record the
windows based application, In that case rather than not
doing anything we can still automate it using sendkeys
method. You can send any character to application to perform
specific action i.e If you want to close the notepad then
you can do it by sending,
1. ALT+F and
2. X.
Or
only ALT+F4

In QTP how can we perform this action? Let's take one simple
and practical example.

Following is the simple example which perform closing
notepad action using sendkeys method in qtp.
==============================
Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "%f"
wait 3
WshShell.SendKeys "x"
wait 3
Set WshShell = Nothing
==============================
OR
==============================
Set WshShell = CreateObject("WScript.Shell")
wait 2
WshShell.SendKeys "%{F4}"
wait 3
Set WshShell = Nothing
==============================

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More QTP Interview Questions

Where u will use output checkpoint in QTP?

3 Answers   HCL,


How many tables r created during the recording in QTP?

2 Answers  


if our qtp vb Script may be Currepted then What we want do?

0 Answers   IBM,


Mention the different actions types of qtp.

0 Answers  


Can we record a video in qtp recording??

1 Answers   BirlaSoft,


how to add run-time parameter to a datasheet?

1 Answers   Mphasis, Ordain Solutions,


What are the differences between qtp and winrunner?

0 Answers  


What is Virtual object wizard in QTP?

4 Answers  


What is the differences between image check point and bit map check point?

0 Answers  


How we can merge the object repositories?say if we have 2 or 3 object repositories then how we can merge them?Is there any option in QTP to merge the object repositories?

2 Answers  


Give answer with example what is orthogonal array testing technique?

1 Answers   CTS, Wipro,


What is API?

1 Answers  


Categories