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.
Answer Posted / 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 |
Post New Answer View All Answers
Explain features of the latest version of qtp/ uft 12.1?
I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }
When and why to use descriptive programming?
Hi, i run scripts in one machine those r passed.when i run the scripts in client side those r failed.Give me such a scenario when ever u faced?
write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..
What is an expert view and keyword view?
What are parameterizing tests?
can i compare two databases using QTP ?
How many scripts did you have?
Discuss the QTP Environment?
Where to use function or action?
With what extension you can save the list of tests in a file to run in test batch runner?
suppose i login into gmail page after that i read all the messages (say 10 messages) i have to send (SAVE) the messages in Html,notepad and i have to replay(Compose) send the messages please give me the code and give mail id so that i can clear my question
Hi, How Accessibility checkpoint in QTP can be implemented in the test script?
How to associate function library at a run time?