qtp script for recording and running the application.need
script for short cut keys like f3,f4 etc.how to write
script for recording?

Answers were Sorted based on User's Feedback



qtp script for recording and running the application.need script for short cut keys like f3,f4 etc..

Answer / chandu

Hi there,

here u can use "Sendkeys" concepts..for further info please
see the QTP help.

Is This Answer Correct ?    2 Yes 0 No

qtp script for recording and running the application.need script for short cut keys like f3,f4 etc..

Answer / neeraj

Suppose steps in application are as below

Steps:
1: Click on add ( ctrl+a)
2: enter "hi"
3: click on save (ctrl+s)

use sendkey concept

Set objShell = WScript.CreateObject("WScript.Shell")
objShell.sendkeys "^a"
objShell.sendkeys "hi"
objShell.sendkeys "^s"

For more information refer below: http://abcinqtp.blogspot.com/2011/02/how-to-use-sendkey-in-qtp-script.html

set objShell = nothing

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

How to creating an output value using quicktest professional (qtp)?

0 Answers  


Explain features of the latest version of qtp/ uft 12.1?

0 Answers  


How to open an application through scripting?

11 Answers  


how many scripts r there in QTP? pls any answer this question?

4 Answers  


I have below user Defained function function AddTwo(ByVal a, ByVal b) Dim Ans Ans=a+b MsgBox Ans End function Now my question comes here...from given below methods which method is right to call above function?Which is Wrong and why? 1. AddTwo(2,4) 2. Call AddTwo(2,4) 3. AddTwo 2,4 4. Call AddTwo 2,4

1 Answers  






I want to do QTP Certification what is the pattern of Question paper.

0 Answers  


I register user defined function in one test, I tried to call that function into other test. But that function not works in other test please give the direction for that.

1 Answers  


I am using excel sheet to export data to QTP but it selects just one row of data from excel sheel how to import all rows of excel sheet to QTP during runtime

10 Answers   IBM, Wipro,


I want different types of discriptive programming statments coded for different types of web-objects?Give syntax and example?

2 Answers  


HI How to take screenshots of a Webpage and saving it in a external word document using QTP.

4 Answers   3i Infotech, TCS,


If the weblist is identified as webelement,and by clicking on webelement if the values are displayed,and if the values the values also identified as webelement.then how to fetch the values through script?

0 Answers  


How to Test the mainframe application?

0 Answers   Unisys,


Categories