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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

what kind of frame work you used in your last project?

2287


When you open QTP, how many sheets you can see?

1041


wht type of User defined functions or Java Releated functions do we write in VB scripting

2208


How QA specialist can identify when programmatic descriptions are useful?

2451


What is the difference in testing a client-server application and a web application?

1075


how to evalute defects in QTP script?

1961


How to recognise the webelement and verifying that webelement is enabled?

2149


How do we analyze the checkpoint results?

1005


How the smart identification is used in real time?Please explain with an example

2020


Can we create user defined functions in qtp?

971


How to use descriptive programming?

1103


What is throw object?

2318


What are the challenges you faced during you entire life automation ?

1469


Can any suggest me what is exposure testing?

1779


assume i have few url link how will i dynamically call then using descriptive programming?

1984