Thursday, March 20, 2008

FAQ - Automation - QTP ( 91 to 100 )

91. How does Parameterization and Data-Driving relate to each other in QTP?

To datadrive we have to parameterize.i.e. we have to make the constant value as parameter, so that in each iteration(cycle) it takes a value that is supplied in run-time datatable. Through parameterization only we can drive a transaction(action) with different sets of data. You know running the script with the same set of data several times is not suggestible, & it’s also of no use.

92. What is the difference between Call to Action and Copy Action?

The changes made in Call to Action, will be reflected in the original action (from where the script is called).But where as in Copy Action, the changes made in the script, will not affect the original script (Action)

93. Discuss QTP Environment.

QuickTest Pro environment using the graphical interface and Active Screen technologies - A testing process for creating test scripts, relating manual test requirements to automated verification features - Data driving to use several sets of data using one test script.

94. Explain the concept of how QTP identifies object.

During recording QTP looks at the object and stores it as test object. For each test object QT learns a set of default properties called mandatory properties, and look at the rest of the objects to check whether this properties are enough to uniquely identify the object. During test run, QTP searches for the run time object that matches with the test object it learned while recording.

95. Differentiate the two Object Repository Types of QTP.

Per Action: For Each Action, one Object Repository is created.
Shared : One Object Repository is used by entire application

96. How to do the scripting. Are there any inbuilt functions in QTP?

Yes, there’s an in-built functionality called “Step Generator” in Insert->Step->Step Generator -F7, which will generate the scripts as u enter the appropriate steps.

97. How many types of Actions are there in QTP?

There are three kinds of actions:
Non-reusable action — an action that can be called only in the test with which it is stored, and can be called only once.
Reusable action — an action that can be called multiple times by the test with which it is stored (the local test) as well as by other tests.
External action — a reusable action stored with another test. External actions are read-only in the calling test, but you can choose to use a local, editable copy of the Data Table information for the external action.

98. I want to open a Notepad window without recording a test and I do not want to use SystemUtil.Run command as well how to do this?

You can still make the notepad open without using the record or System utility script, just by mentioning the path of the notepad “( i.e., where the notepad.exe is stored in the system) in the “Windows Applications Tab” of the “Record and Run Settings window

99. What are the Features & Benefits of Quick Test Pro(QTP)..?

* Key word driven testing
* Suitable for both client server and web based application
* VB script as the script language
* Better error handling mechanism
* Excellent data driven testing features

100. What’s Checkpoints for QTP?

A checkpoint verifies that expected information is displayed in your application while the test is running.

QuickTest Professional offers the following types of checkpoints:

Checkpoint Type


Example of Use

Standard Checkpoint

Checks values of an object’s properties.

Check that a radio button is selected.

Image Checkpoint

Checks the property values of an image.

Check that the image source file is correct.

Table Checkpoint

Checks information in a table.

Check that the value in a table cell is correct.

Page Checkpoint

Checks the characteristics of a Web page.

Check how long a Web page takes to load or if a Web page contains broken links.

Text / Text Area Checkpoint

Checks that a text string is displayed in the appropriate place in a Web page or application window.

Check whether the expected text string is displayed in the expected location

Bitmap Checkpoint

Checks an area of a Web page or application after capturing it as a bitmap

Check that a Web page (or any portion of it) is displayed as expected.

Database Checkpoint

Checks the contents of databases accessed by an application or Web site

Check that the value in a database query is correct.

Accessibility Checkpoint

Identifies areas of a Web site to check for Section 508 compliancy.

Check if the images on a Web page include ALT properties, required by the W3C Web Content Accessibility Guidelines.

XML Checkpoint

Checks the data content of XML documents.

Note: XML file checkpoints are used to check a specified XML file; XML application checkpoints are used to check an XML document within a Web page.

No comments: