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 |
Hello Guys, Can anybody Explain me about Automation framework?? and how can we prepareAutomation Framework using QTP
normally by going through the object properties in object spy we write descriptive programming(correct me if i am wrong). But how or from where can we get the object properties in the object spy?plzzzzzz do answer
What is .Ini file in QTP?
How can i select multiple items from a WebList bOX USING QTP
When a requirement is given to u to automate , What is ur basic approach ?
How can we test existence of a particular word in scentence using QTP tool. Thanks in Advance!!!!!
What is the Diff between Image check-point and Bit map Check point?
What is the difference between low level recording and analog recording mode when it will be enabled.
I have to pass all the test cases into gmail userid and password using functions please give me code thanks have anice and greate day
How to call Datable values in the QTP program. exp: I have two parameters like Email id and Password this two i would like to add multiple entries in the datable to use it. What is the difference between Gobal/Action datatable
need clear explanation of actions and functions in qtp with examples?can anyone suggest me gud site for that other than qtp manual?
Suppose i have a script which is having 100 lines.I want to execute that script starting from line no 75.means first qtp should read the script from line no 75 how can u do it.
5 Answers Lehman Brothers, rsystems,