|
INTERVIEW QUESTIONS
TESTING
QTP
DETAILS
Question: How you write scripts in QTP? What's the main process in QTP? How do you run scripts in QTP?
Answer: Main process in QTP is Recording, stores the properties in object repository then Running the script and then Test Results.
Recording: QTP 'looks' at the object on which we are recording and stores it as a test object, determining in which test object class it fits like standard window dialog box or web button etc. Then for each test object class, QTP has list of mandatory properties that it always learns. When we record an object, QTP learns these default property values, and then 'looks' at the rest of the objects in the page , to distinguish and identify the object uniquely.If not it adds assistive properties , one ny one, to the description, until it has compiled a unique description.If no assistive properties are not available , it adds a special 'ordinal identifier' such as objects location on the screen.
Running the scripts: While running the script, QTP searches for a run time object that exactly matches the description of the test object it learned while recording. If it is not matching, QTP uses ' smart identification' mechanism to identify the object.
We can run the scripts from Test>Run
After running the script we can see the Test Results also .
|
|
|
Category |
QTP Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 9725 users |
Added on |
7/21/2011 |
Views |
68094 |
Rate it! |
|
|
Question:
How you write scripts in QTP? What's the main process in QTP? How do you run scripts in QTP?
Answer:
Main process in QTP is Recording, stores the properties in object repository then Running the script and then Test Results.
Recording: QTP 'looks' at the object on which we are recording and stores it as a test object, determining in which test object class it fits like standard window dialog box or web button etc. Then for each test object class, QTP has list of mandatory properties that it always learns. When we record an object, QTP learns these default property values, and then 'looks' at the rest of the objects in the page , to distinguish and identify the object uniquely.If not it adds assistive properties , one ny one, to the description, until it has compiled a unique description.If no assistive properties are not available , it adds a special 'ordinal identifier' such as objects location on the screen.
Running the scripts: While running the script, QTP searches for a run time object that exactly matches the description of the test object it learned while recording. If it is not matching, QTP uses ' smart identification' mechanism to identify the object.
We can run the scripts from Test>Run
After running the script we can see the Test Results also . Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
How can an object from a per action repository be called to another per action repository?
|
View Answer
|
|
what is keyword driventest ?
|
View Answer
|
|
What is meant by external files in QTP.
|
View Answer
|
|
How to make QTP to recognise the activeX controls.
|
View Answer
|
|
What to do if the tree view is not recognised by the QTP?
|
View Answer
|
|
How to make QTP to recognise the activeX controls
|
View Answer
|
|
I am using QTP testing tool,What is micclass? and how to refer the different DLL's?
|
View Answer
|
|
How do we record a pop up window in QTP
|
View Answer
|
|
How to execute qtp script from command prompt?
|
View Answer
|
|
What are the loops used in Quick Test Professional ?
|
View Answer
|
|
Explain the need to use analog recording in qtp?
|
View Answer
|
|
how can i write a script to automate the page which contains random questions with corresponding answers as radio buttons eg: questions1............ a b c d question 2 a b c d
|
View Answer
|
|
How can we test datareports through QTP
|
View Answer
|
|
How to click on the link available in the web table , link is an item in web table and link is not static, i mean it can be any where, you can not guess?
|
View Answer
|
|
How do I prepare report after completion of test in QTP and how to explain this to the senior test engineer?
|
View Answer
|
|
How i can get class name of test object by repository logical name?
|
View Answer
|
|
What is recovery manager and describe?
|
View Answer
|
|
How can QTP understand virtual objects and can it reusable
|
View Answer
|
|
How can you show the data from a particular row and a particular colum from Data Table in QTP
|
View Answer
|
|
How many types of recording are there in QTP?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All QTP Interview Questions & Answers - Exam Mode /
Learning Mode
|