Hi All,
I am using QTP for one of the Desktop
application which uses Keyboard inputs like 'Tab ,F7 etc'
and also mouse (Click).
After recording when i am running the Script ,it is not
able to recognize the keyboard inputs like F7,Tab and mouse
Click because of which either i have to skip that part or
manually do the inputs.

Please answer how can i make script more flexible so that
it will recognize both keyboard and mouse operations.

Answers were Sorted based on User's Feedback



Hi All, I am using QTP for one of the Desktop application which uses Keyboard inputs..

Answer / umashankar

u can code that part using WSH method of QTP.

set ws = createObject(WSShell.scripting)
ws.sendkeys "{TAB}"

Is This Answer Correct ?    4 Yes 1 No

Hi All, I am using QTP for one of the Desktop application which uses Keyboard inputs..

Answer / sunil.sam

Thank You Umashankar for the prompt Reply ,
The suggestion helped me to control keyboard Function but
still am facing problem with the Mouse control.
So Can u tell me how to take care of that ?

Is This Answer Correct ?    0 Yes 1 No

Hi All, I am using QTP for one of the Desktop application which uses Keyboard inputs..

Answer / umashankar

this can be achieved by using Fireevent onmouseover. try
this and if u r not able to get it mention ur question
clearly

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More QTP Interview Questions

When i use paramateriztion for tickets in flight reservation application , the tes'll run for first iteration but for the second iteration it'll give this details, but the second iteration is failed. Pls anyone clarify it. Cannot find the "Agent Name:" object's parent "Login" (class Dialog). Verify that parent properties match an object currently displayed in your application.

2 Answers  


What is the keyword view and expert view in qtp?

0 Answers  


What is the registration process and examination fees?

0 Answers  


object types is used for what?

1 Answers  


How many types of parameters are there in QTP and what are they?

2 Answers  






Explain different checkpoints in qtp.

0 Answers  


Hi, is it possible for recording shortcut key during record session? The application on which I am working is web based application. This application has several shortcut key associated with menu option. I have succesfully recorded all menu option but unable to record shortcut key.

1 Answers  


What is dynamic arrays

1 Answers   Patni,


the build is develeped in Java. is possible to write scripting in vb using QTP ?

3 Answers  


how do you invoke the application through QTP?

1 Answers  


Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?

0 Answers   IBM,


Can we test the Word Document using QTP Tool? We should test the page size,page set up, paragraph indentation and spacing, font size of the the character int the page.

0 Answers  


Categories