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
How can I check if a environment variable exist or not?
hi to all, i need a code.. in flight application 1.i need to login first then i need to insert 3 new orders... 2.i have to log out 3.i have to login again with different user 4.need to insert 2 new orders 5.then need to log out 6.then again login with different user 7.3 new orders create and log out 8.but we hv to do this using data table and actions please help me
What is 'sleep' in sync point?
Can anyone pls tell me how to do action parameterization (input and output parameters) with respect to login window and insert order of flight reservation window in detail( pls give a clear step by step explanation with example) anyone please. Will be very thankful to u
What are the differences between table and db checkpoints?
Can I change properties of a test object?
how will load the object during runtime?
What is clean sweep?
What is the file extension of the code file in qtp?
Explain the Different types of QTP test assets and their extensions?
In what occasion we can specify global sheet and action sheet?
how to create flat file datasubmission in qtp
What are the types of environment variables in qtp?
How does you pass optional arguments in qtp?
what is clean sweep?