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

Does the Existing reusable action can be modified at the time of calling the action?? Please help me..

2 Answers  


How can you merge two Object Repositories?

3 Answers  


How u perform Batch Program in QTP?

3 Answers  


How does quicktest professional (qtp) identifies the object in the application?

0 Answers  


am not having intrest in coding lang like c c++ java etc can i choose Testing tools as my carrier and please suggest me which tool is good (suitable for me)

0 Answers  






I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=<input id=""btnSaveTab1"" class=""Button"" onclick=""document.getElementById('a1').click();"" name=""btnSaveTab1"" value=""Save"" type=""button"">", Second button "html id:=btnSave "outerhtml:=<input id=""btnSave"" class=""Button"" onclick=""document.getElementById('a2').click();"" value=""Save"" type=""button"">", Third button "html id:=", outerhtml:=<input id=""btnSaveTab1"" class=""Button"" onclick=""document.getElementById('a1').click();"" name=""btnSaveTab Fourth button "html id:=btnSave outerhtml:=<input id=""btnSave"" class=""Button"" onclick=""document.getElementById('a2').click();"" value=""Save"" type=""button"" 5th button "html id:=", "outerhtml:=<input class=""Button"" onclick=""document.getElementById('a5').click();"" value=""Save"" type=""button"">",

0 Answers  


how we connect oracle or sql data server database to qtp

3 Answers   Tanla Solutions,


what are the principles of good testing scripts for automation?

1 Answers  


What are the Features & Benefits of Quick Test Pro ?

0 Answers   Crea,


Can u call winRunner scripts from QTP?

4 Answers  


I want to check in the data table(Globalsheet) column exist or not through script .If column not exist only proceeded to next step Pls tell me how to proceeded?

5 Answers   Syntel,


How many type of status messages are there ..explain?

5 Answers  


Categories