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

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


Please Help Members By Posting Answers For Below Questions

i'm using the qtp to test to vb appliction,i wanted to get the new application's title.i didn't want to use the winAPI to get it ,i 'd like to know whether a QTP function can do it. Eg: SystemUtil.Run "C:\Program Files\.....","","","" 'run an application, and misure the application is activating,then how to get the hwn wihtout using windowns api

1486


1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.

1662


Explain the concept of object repository and how qtp recognises objects?

520


What is the difference between call to existing action and copy of an action?

593


In QTP can we feed the out of one browser(internet explorer) as an input to the another browser(mozilla firefox)? If yes explain how to do it with an example.

1518






I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so

2244


HI Everybody, I am using QTP 9.2, I have a problem and hope everybody help me solve it. Now I need to use mouse wheel event to zoom in or zoom out in web client, but QTP can't catch this event. I look forward helping of everybody. Thank you very much.

1614


How will you compare keyword and expert view?

519


I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?

602


hi can any body give me a script for creating a modularity or keyword driven framework..i am working as a qtp tester for 2 months but still i am not exposed to framework in my company

1418


If there is a change in the object type eg: A button is changed as link, 1. How to edit that in the shared object repository. 2.What options are available to edit the object within shared object repository other than copy from loca; 3.What would be the effect of the change in Coded Scripts within QTP and Functions stored in .vbs file which are loaded and used in QTP

1291


Explain about the test fusion report of quicktest professional (qtp)?

533


What is test object model in quicktest professional?

613


What are the general steps involved in the data driven framework?

546


How to export quicktest professional (qtp) results to an .xls file?

587