Pages

Custom Search

HP QTP Question Database: Q. 41 to 50

Q. 41: What are the various utilities and tools available in QTP?

Tools Menu contains the following utilities and tools which are helpful in the testing process:

# Action Conversion Tool: Enables us to convert test actions that were created using QTP to scripted components for use in business process testing.

# Additional Installation Requirements: Opens the Additional Installation Requirements dialog box, which displays any prerequisite software that we must install or configure to work with QTP.

# Business Component Upgrade Tool: Opens the Business Component Upgrade Tool. If we are connected to a Quality Center project, this tool enables us to upgrade all of the business components in a Quality Center project, from an earlier component version to the format required by the current version.

# HP Micro Player: Opens the HP Micro Player, which enables us to view captured movies of a run session without opening QuickTest.

# License Validation Utility: Opens the License Validation utility, which enables us to retrieve and validate license information.

# Password Encoder: Opens the Password Encoder dialog box, which enables us to encode passwords. We can use the resulting strings as method arguments or Data Table parameter values (tests only).

# QTP Script Editor: Opens the QTP Script Editor, which enables us to open and modify the scripts of multiple tests and function libraries, simultaneously.

# Register New Browser Control: Opens the Register Browser Control Utility, which enables us to register our browser control application so that QTP recognizes our Web object when recording or running tests.

# Remote Agent: Activates the QuickTest Remote Agent, which enables us to configure how QTP behaves when a test is run by a remote application such as Quality Center.

# Save and Restore Settings: Opens the Save and Restore Settings dialog box, which enables us to save our existing configurations before uninstalling an old version, and then restore them after installing a new version.

# Silent Test Runner: Opens the Silent Test Runner dialog box, which enables us to run a QTP test the way it is run from LoadRunner and Business Availability Center.

# Test Batch Runner: Opens the Test Batch Runner dialog box, which enables us to set up QTP to run several tests in succession.

# Test Results Deletion Tool: Opens the Test Results Deletion Tool dialog box, which enables us to delete unwanted or obsolete results from our system according to specific criteria that you define.

<<<<<< =================== >>>>>>

Q. 42: What is the concept of Test Object Model in QTP?

QTP tests our dynamically changing application by learning and identifying test objects and their expected properties and values. To do this, QTP analyzes each object in our application in much the same way that a person would look at a photograph and remember its details.

The test object model is a large set of object types or classes that QTP uses to represent the objects in our application. Each test object class has a list of properties that can uniquely identify objects of that class and a set of relevant methods that QuickTest can learn about it.

A test object is an object that QTP creates in the test to represent the actual object in your application. QTP stores information on the object that will help it identify and check the object during the run session.

A run-time object is the actual object in our application on which methods are performed during the run session.

<<<<<< =================== >>>>>>

Q. 43: Please explain some real world scenario explaining Object Learning process of QTP?

QTP learns objects just as we would. For example, suppose as part of an experiment, Bob is told that he will be shown a photograph of a picnic scene for a few seconds during which someone will point out one item in the picture. Bob is told that he will be expected to identify that item again in identical or similar pictures one week from today.

Before he is shown the photograph, Bob begins preparing himself for the test by thinking about which characteristics he wants to learn about the item that the tester indicates. Obviously, he will automatically note whether it is a person, inanimate object, animal, or plant. Then, if it is a person, he will try to commit to memory the gender, skin color, and age. If it is an animal, he will try to remember the type of animal, its color, and so forth.

The tester shows the scene to Bob and points out one of three children sitting on a picnic blanket. Bob notes that it is a Caucasian girl about 8 years old. In looking at the rest of the picture, however, he realizes that one of the other children in the picture could also fit that description. In addition to learning his planned list of characteristics, he also notes that the girl he is supposed to identify has long, brown hair.

Now that only one person in the picture fits the characteristics he learned, he is fairly sure that he will be able to identify the girl again, even if the scene the tester shows him next week is slightly different.

Since he still has a few moments left to look at the picture, he attempts to notice other, more subtle differences between the child he is supposed to remember and the others in the picture—just in case.

If the two similar children in the picture appeared to be identical twins, Bob might also take note of some less permanent feature of the child, such as the child's position on the picnic blanket. That would enable him to identify the child if he were shown another picture in which the children were sitting on the blanket in the same order.

<<<<<< =================== >>>>>>

Q. 44: What is the method used by QTP to learn objects?

QTP "looks" at the object being learned and stores it as a test object, determining in which test object class it fits. In the same way, Bob immediately checked whether the item was a person, animal, plant, or inanimate object. QTP might classify the test object as a standard Windows dialog box, a Web button, or a Visual Basic scroll bar object, for example.

Then, for each test object class, QTP has a list of mandatory properties that it always learns; similar to the list of characteristics that Bob planned to learn before seeing the picture. When QTP learns an object, it always learns these default property values, and then "looks" at the rest of the objects on the page, dialog box, or other parent object to check whether this description is enough to uniquely identify the object. If it is not, QTP adds assistive properties, one by one, to the description, until it has compiled a unique description; similar to when Bob added the hair length and color characteristics to his list. If no assistive properties are available, or if those available are not sufficient to create a unique description, QTP adds a special ordinal identifier, such as the object's location on the page or in the source code, to create a unique description.

<<<<<< =================== >>>>>>

Q. 45: What is Test Object Method in QTP?

It is a method that QTP recognizes as applicable to a particular test object. For example, the Click method is applicable to a WebButton test object. As we add steps to our test, we specify which method to perform on each test object. If we record steps, QTP records the relevant method as it is performed on an object.

During a run session, QTP performs the specified test object method on the run-time object. Run-time object methods are the methods of the object in our application as defined by the object creator. We can access and perform run-time object methods using the Object property.

<<<<<< =================== >>>>>>

Q. 46: What are the Test Object Properties in QTP?

Test object properties are the properties whose values are captured from the objects in our application when QTP learns the object. QTP uses the values of these properties to identify run-time objects in our application during a run session.

Property values of objects in our application may change dynamically each time our application opens, or based on certain conditions. We may need to modify the test object property values to match the run-time object property values. We can modify test object properties manually while designing our test, or use SetTOProperty statements during a run session.

<<<<<< =================== >>>>>>

Q. 47: How to decide on whether to save the objects in Local or Shared Object Repositories?

Local object repository is easiest to use when we are creating simple tests, especially under the following conditions:

# We have only one, or very few, tests that correspond to a given application, interface, or set of objects.

# We do not expect to frequently modify object properties.

# We generally create single-action tests.

Shared object repository is the preferred option when:

# We are creating tests using keyword-driven methodologies & not by recording.

# We have several tests that test elements of the same application, interface, or set of objects.

# We expect the object properties in our application to change from time to time and we regularly need to update or modify object properties.

# We often work with multi-action tests and regularly use the Insert Copy of Action and Insert Call to Action options.

<<<<<< =================== >>>>>>

Q. 48: What are the possibilities of Exporting the data among various Object Repositories?

When QTP learns a test object, it adds it to the local object repository & not to the shared object repository — unless the same test object already exists in an associated shared object repository. In this case, QTP uses the existing information in the shared object repository.

We can export objects from the local object repository to a shared object repository. We can also export the local object repository and replace it with a shared object repository. This enables us to make the local objects accessible to other actions.

We can also merge objects from the local object repository directly to a shared object repository that is associated with the same action. This can help reduce maintenance since we can maintain the objects in a single shared location, instead of multiple locations.

<<<<<< =================== >>>>>>

Q. 49: What is the effect of restoring Default Properties for a Test Object in QTP?

When we restore the default properties, it restores the mandatory property set defined for the selected object class in the Object Identification dialog box.

Any changes that we have made to the description property set for the test object will be overwritten. However, if property values were defined for any of the mandatory properties they are not modified.

<<<<<< =================== >>>>>>

Q. 50: What is the use of Ordinal Identifiers in QTP?

An ordinal identifier assigns a numerical value to a test object that indicates its order or location relative to other objects with an otherwise identical description for objects having the same values for all properties.

This ordered value provides a backup mechanism that enables QTP to create a unique description to recognize an object when the defined properties are not sufficient to do so. We can specify the ordinal identifier for test objects in the local object repository using the Object Repository window or Object Properties dialog box, and for test objects in the shared object repository using the Object Repository Manager.

Keywords:

qtp interview questions advanced

qtp interview questions pdf

qtp tutorial

manual testing interview questions

qtp 9.2 interview questions

sql interview questions

qtp interview questions and answers

qtp interview questions for experienced

hp qtp certification questions pdf

hp qtp certification questions and answers

qtp sample certification questions

istqb certification exam qtp

istqb certification exam software testing

qtp certification study material

qtp scripts

qtp testing

qtp 11 certification dumps

qtp 11 certification questions

hp0-m47

qtp 11 certification material

qtp 11 certification registration

hp qtp 11 certification cost

qtp 11 certification syllabus

qtp 11 certification exam

quick test professional pdf free download

quick test professional tutorial

quick test professional 9.2 pdf

quick test professional free download

quick test professional ebook

quick test professional user guide

hp quick test professional pdf

qtp tutorial pdf

No comments: