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 |
Where u will use output checkpoint in QTP?
How many tables r created during the recording in QTP?
if our qtp vb Script may be Currepted then What we want do?
Mention the different actions types of qtp.
Can we record a video in qtp recording??
how to add run-time parameter to a datasheet?
1 Answers Mphasis, Ordain Solutions,
What are the differences between qtp and winrunner?
What is Virtual object wizard in QTP?
What is the differences between image check point and bit map check point?
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?
Give answer with example what is orthogonal array testing technique?
What is API?