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
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 |
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 |
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 |
How will you enchance the script?
what is use of optionexplicit in variable declaration
what is the difference between wait and wait function
Got job with 3 years fake Experience
how do u retrieve data from a database ? i.e. i want to retrieve 2nd record only from a database ? write code for this. by using ADODB connecton, RSOBJ and using a FOR loop we can retrieve all the records( ex: if we give query as select * from emp). but i want only 2nd record. so how to acheive this.
what type of scripts are asked in qtp?
How to invoke QTP using Dos prompt ?
My Application is a client server application , but there is one functionality , when we click on one particular icon it launches web browser . When I am recording in QTP , By select approprait web add in also , it not able to record in web page , I am able to record till click on the icon. Please provide me how to over come this type of problem.
IF there are seven browsers with same name open. I want to close one particular browser thru QTP. how can i do this?
What is the difference between property and method?
What are the Automation Limitations??
what is retesting?