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

why is execute file used.

1 Answers   Deloitte,


How to use transactions in qtp?

0 Answers  


explain virtual object? in detailed? pls any one explain me?

4 Answers   Cap Gemini,


how many wayes we do the parameterization?

1 Answers  


Hi guys pls any one send me the Qtp Licensed key of version 10.0 pls

0 Answers  






I am Using QTP 9.1 version. I have created a Shared Object Repository. The size of Shared Object REpository is 9 MB. In my system i am able to execute the script very flexibly and it is very fast. But if i copy the same code into other system with the same configuration, it is executing very slowly(i.e dam slow). It is not happening in all machines it is in only some machines. Can please any one give th esolution. It is high priority to me as i need to give demo to client on their machines.

4 Answers   TCS,


Hi all please solve this.It is urgent..... When I right clicked on a Web image manually It displayed Open link,open link in new window,save picture as, Email picture,Printpicture,propeties...etc. While automation I have written a code like this 'browser("Google").Page("ramseeker®: Memory and_3").Image ("graphOfModel").Click 10,10,micRightBtn But the right click menu was not displayed. I want to save that image in a seperate folder

6 Answers  


How we test the logo or images in the web page using QTP? For example take google page, they change their logo for new year,christmas etc..How we test that? Plz answer this question... Thanks in advance..

2 Answers  


I have a Webedit object. some text is entered in that object I want to know the font sixe of that text.How could I do this using QTP? This is a requirement for me. I am happy if any one help on this

3 Answers   GE,


How to invoke QTP using Dos prompt ?

2 Answers   ABC,


what function you write to do database testing with the help of qtp?

0 Answers  


How to use output values in qtp ?

0 Answers  


Categories