create your own

QTP interview Questions with Answers

67
rate or flag this page

By padhaku


#1. What is the significance of regular expression in QTP?


>

            In order to carry out tests in QTP each and every objects are searched in the object repository (OR). An object in a real time application sometime has properties that keep changing from time to time for which at the time of execution the script fails. To overcome this, regular expressions are used for that object’s particular dynamic property.


>

#2. How do we decide as to which recording mode from Context Recording (Normal), Analog Recording or Low Level Recording for an application?


>

            Normal recording is first tried out where QTP can recognize objects. But there could be a situation in which the usage of third party to have control in the AUT and Menu selection which may have four-levels of menu, it will get pretty difficult to find the object. In such cases the Analog recording method is chosen over normal recording where parameters are captured with precision though QTP.


>

#3. State the use of Analog Recording.

        Analog recording is used to record the exact keyboard strikes and mouse movements (co-ordinates) related to the application window or screen. It comes into use for operations that cannot be recorded at the object level like in signature drawn images. It records the exact co-ordinates in a file which is all associated with actions. Analog Recording is of two types Relative to screen 
and Relative to Application Window.


>

#4. What is Hybrid Framework and how it is useful?

            The combination of both keyword and data driven framework is known as a hybrid framework. At the time of the building of the framework the objects which are not going to change should be taken and hard coded in the application and from the data sheet the frequently changing objects should be taken. If any framework consists of 2 or more frameworks then it is a hybrid framework.

#5. How to handle the exceptions using recovery scenario manager in QTP? 

            Mainly there are 4 different event triggers which should be raised in a recovery scenario all these are considered as exceptions. QTP can be specifically instructed to recover unexpected events or errors that occurred during the test run. A wizard is provided by the recovery manager that guides through the defining recovery scenario. The three steps in the recovery scenario are Triggered Events, Recovery steps, Post Recovery Test-Run.

#6. What is QTP?

            Quick Test is a record-playback GUI based automation tool. It can comply with any web, java or windows client applications. It is generally used to test the ActiveX and other standard web objects. Quick Test can also be used to test multimedia objects in applications and Java applets along with standard Windows applications, Visual Basic 6 applications and.NET framework applications

#7. How a test can be enhanced?


>

            Check points come real handy for monitoring or searching a specific value on the page or object through which the page’s functionality can be examined. It is easier to add check points during the recording process. This increases the scope of the test as it replaces fixed value with parameters which enables us to check the application’s performance against large volume of input data. Further on adding logical checking to a test is a good way to achieve sophisticated test results.

#8. How does QTP recognize Objects in AUT?

            The definition of each object is added to an object repository by the Quick Test. As a test is recorded the quick test adds the entry to the object repository each item that is being interacted with. Each repository is identified by an assigned logical name through an automatic naming system and will also have a set of properties that can be uniquely identified. The quick test script shall reference to each of object interacted with and this reference will all be identified by the logical rather than physical name.

#9.  What are Parameterize Tests?

Specifying parameters enables to customize a test to check the application’s performance against multiple set of data.  Suppose we want to check how the application performs against 20 sets of data. We could possibly record 20 separate tests each having its own set of data. Alternatively a parameterized test can be created that will run 20 times and each time it will itself use 20 different sets of data.

#10. What is test object model in QTP?

          Test object model is a large collection of classes that is used by Quick Test to represent the object in the application. This test object classes has their own properties that identifies each object and set of relevant methods which can be recorded by Quick Test. A test object is a parallel representation of the actual application’s object in a test incorporated by the quick test.

#11. For what purpose step generator is used?

          Step generator is used to insert steps in a test by selecting from a range of context-sensitive options and by entering the required values. It breaks the test to achieve proper testing results. It thus saves time instead of recording a step can be generated for a particular step. The step generator can be used from both the keyboard view and the expert view.

#12. Explain the concept of object repository.

        Object repository is a tree representation of all the objects in the current action or the current component or entire test depending on the selected repository mode. The test object description of any test object can be viewed or modified within a repository or we can add new objects to the repository. Quick Test has a learning capability through which it acquires knowledge about the default property value and determines to which test object class it fits in.

#13. How to handle dynamic objects in QTP?  

          Dynamic objects are handled by the Smart object Identifier. QTP might fail to identify an object whose value changes at run time.  Smart identifier kicks in for answering this kind of situation since it can even identify objects whose property changes at run time.

Print   —   Rate it:  up  down  flag this hub

Comments

RSS for comments on this Hub

No comments yet.

Submit a Comment

Members and Guests

Sign in or sign up and post using a hubpages account.


optional


  • No HTML is allowed in comments, but URLs will be hyperlinked
  • Comments are not for promoting your hubs or other sites

working