ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
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.

 Question Submitted By :: Sunil.sam
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
u can code that part using WSH method of QTP.

set ws = createObject(WSShell.scripting)
ws.sendkeys "{TAB}"
 
Is This Answer Correct ?    4 Yes 0 No
Umashankar
 
  Re: 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
# 2
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 0 No
Sunil.sam
 
 
 
  Re: 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
# 3
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 1 No
Umashankar
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
How Does Run time data (Parameterization) is handled in QTP? IBM2
How to handle the exceptions using recovery scenario manager In QTP?  2
Tell me the QTP Advantages and Disadvatages ? Accenture3
I wanted to create Data Driven test for login page (loginname,password). Password is same for all the loginnames. I recorded the script for one user. I mentioned all the user names in the global excel sheet with the column name as "Loginname". I mentioned 5 loginnames. I selected tools- >datadriver and select loginname. Select parameterize and select parameter all option.Changed the parameter name to "loginname" which i mentioned in the global excel sheet. I executed the script. For the users 2 and 4 only, the script is failing... can anybody explain why the script is failing for users 2 and 4.  2
Use of Multiple Actions in QTP?  2
hai, i am doing QTP by own. So, i am confident in checkpts,synchronization, data driven test, recovery scenarioe manager etc. but actually i don't know how all these we wil implement while we r writting code manually. when we r doing practice, while recording code is automatically generated but in real time i heard that we have to write the script.But i don't know how it is? How to write descriptive prog.? plz. tel me what r the basic things we have to know? explain how to write descriptive prog.? explain me with an example pls....... Vertex2
In Test Director bug rEPORTS, wHAT ARE THE CONTENTS(fIELDS)? iF yoU PREAPARE BUG REPORT IN eXCEL sHEET , hOW U SEND TO dEVELOPMENT TEAM THRW T.D?  1
What is parameterization? What is syncronization pt.? Semantic-Space3
what is use of optionexplicit in variable declaration GE4
how to select particular value from the combobox in the current page which is entred in the previous page editbox after parameterization? Ordain-Solutions5
what is run-time object property in Object spy in QTP9?  2
what is keyword driven framework in qtp. TCS6
what are the limitations of automation testing? TCS1
what are the areas that cannot be tested using an automated tool? list a few  3
How to get the column count and column name from the resultset in the database connection program?  5
Hoe to generate all numbers in between to numbers suppose all numbers in between 1 to 100 using vbscript give me code  1
If you entered into yahoo mail with your valid user name and password , then you will get " welcome , username " (for example you will see , “welcome, Krishna” ) text on the top of the Inbox page , how can you test the user name is correct or not using QTP? CTS3
How can we do Data driven testing Using For loop in QTP?  2
How to record objects of Windows taskbar RoboSoft2
Is there anyway to have QTP go into a website and map out every object before I actually record any tests? I basically want to map out a website with all the objects and build a complete repository. The reason is because I'm running into issues with hierarcical objects. for example: Browser("ABC company- Home").Page("ABC company - Home").Link ("About Us").Click Browser("ABC company - Page 2").Page("ABC company - Page 2").Link("About Us").Click Both these links ("objects" and I use that term loosely as I'm trained mostly in OO programming) go to the same place but but the object heirarchies (pages) are different. I want a repository that will find any possible link on any possible page without having to manually record it. Is there a way to do this?  1
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com