Quality Testing

Quality is delighting customers

Can any one provide me for FAQ for QTP with answer ? am new in QTP

Hi Friends,

Can any one provide me for FAQ for QTP with answer ? am new in QTP


I want to start career on Automation tool like QTP so please let me know the FAQ & answer for same


-- Mahesh Dhule

Tags: FAQ, QTP

Views: 40

Reply to This

Replies to This Discussion

Hope this would help you...


What is QTP ?
QuickTest is a graphical interface record-playback automation tool. It is able to work with
any web, java or windows client application. Quick Test enables you to test standard
web objects and ActiveX controls. In addition to these environments, QuickTest
Professional also enables you to test Java applets and applications and multimedia
objects on Applications as well as standard Windows applications, Visual Basic 6
applications and .NET framework applications...
QTP is Mercury Interactive Functional Testing Tool.
Mercury QuickTest Professional: provides the industry's best solution for functional test
and regression test automation - addressing every major software application and
environment. This next-generation automated testing solution deploys the concept of
Keyword-driven testing to radically simplify test creation and maintenance. Unique to
QuickTest Professional’s Keyword-driven approach, test automation experts have full
access to the underlying test and object properties, via an integrated scripting and
debugging environment that is round-trip synchronized with the Keyword View.
What’s the basic concept of QTP?
QTP is based on two concept-
· Recording
· Playback
Which scripting language used by QTP?
QTP using VB scripting.
How many types of recording facility are available in QTP?
QTP provides three types of recording methods-
 Context Recording (Normal)
 Analog Recording
 Low Level Recording
How many types of Parameters are available in QTP?
QTP provides three types of Parameter-
* Method Argument
* Data Driven
* Dynamic
What’s the QTP testing process?
QTP testing process consist of seven steps-
* Preparing to recoding
* Recording
* Enhancing your script
* Debugging
* Run
* Analyze
* Report Defects (more…)
How to Start recording using QTP?
Choose Test > Record or click the Record button.
When the Record and Run Settings dialog box opens to do this;
1. In the Web tab, select Open the following browser when a record or run session
begins.
2. In the Windows Applications tab, confirm that Record and run on these applications
(opened on session start) is selected, and that there are no applications listed.
How to insert a check point to a image to check enable property in QTP?
Answer1:
AS you are saying that the all images are as push button than you can check the
property enabled or disabled. If you are not able to find that property than go to object
repository for that objecct and click on add remove to add the available properties to that
object. Let me know if that works. And if you take it as image than you need to check
visible or invisible property tht also might help you are there are no enable or disable
properties for the image object.
Answer2:
The Image Checkpoint does not have any property to verify the enable/disable property.
One thing you need to check is:
* Find out form the Developer if he is showing different images for activating/deactiving
i.e greyed out image. That is the only way a developer can show deactivate/activate if he
is using an "image". Else he might be using a button having a headsup with an image.
* If it is a button used to display with the headsup as an image you woudl need to use
the object Properties as a checkpoint.
How to Save your test using QTP?
Select File > Save or click the Save button. The Save dialog box opens to the Tests
folder.
Create a folder which you want to save to, select it, and click Open.
Type your test name in the File name field.
Confirm that Save Active Screen files is selected.
Click Save. Your test name is displayed in the title bar of the main QuickTest window.
How to Run a Test using QTP?
1 Start QuickTest and open your test.
If QuickTest is not already open, choose Start > Programs > QuickTest Professional >
QuickTest Professional.
. If the Welcome window opens, click Open Existing.
. If QuickTest opens without displaying the Welcome window, choose File > Open or
click the Open button.
In the Open Test dialog box, locate and select your test, then click Open.
2 Confirm that all images are saved to the test results.
QuickTest allows you to determine when to save images to the test results.
Choose Tools > Options and select the Run tab. In the Save step screen capture to test
results option, select Always.
Click OK to close the Options dialog box.
3 Start running your test.
Click Run or choose Test > Run. The Run dialog box opens.
Select New run results folder. Accept the default results folder name.
Click OK to close the Run dialog box.
How to open a new test using QTP?
1. If QuickTest is not currently open, choose Start > Programs > QuickTest Professional
> QuickTest Professional. If the Welcome window opens, click Blank Test. Otherwise,
choose File > New, or click the New button. A blank test opens. 2. . If QuickTest is
already open, check which add-ins are loaded by selecting Help > About QuickTest
Professional. If the Web Add-in is not loaded, you must exit and restart QuickTest. When
the Add-in Manager opens, select the Web Add-in, and clear all other add-ins. Choose
File > New, or click the New button. A blank test opens.
How to do Laod testing for web based Application?
1. Recording a scenerio in QTP of my web based application.
2. Make 100 copies of that scenerio and run the test (scenerio run for 100 times)
3. In that case, do the load of application on server.
4. The basic logic of running the copy 100 times is to create same scenerio as if 100
users were working.
What is the extension of script and object repository files?
Object Repository : .tsr , Script : .mts, Excel : Default.xls
How to supress warnings from the "Test results page"?
From the Test results Viewer "Tools > Filters > Warnings"...must be "Unchecked".
When we try to use test run option "Run from Step", the browser is not launching
automatically why?
This is default behaviour.
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
Description 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 locatio
Bitmap
Checkpoint
Checks an area of a Web page
or application after capturing it
Check that a Web page (or any portion
of it) is displayed as expected.
as a bitmap
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.
How to add a standard checkpoint in your test ?
1. Start QuickTest and open your test.
In the Open Test dialog box, locate and select your test, then click Open.
2. Save the test as Checkpoint.
Select File > Save As. Save the test as Checkpoint.
3. Confirm that the Active Screen option is enabled.
If you do not see the Active Screen at the bottom of the QuickTest window, click the
Active Screen button, or choose View > Active Screen.
4. Locate the page where you want to add a standard checkpoint.
5 Create a standard checkpoint.
In the Active Screen, right-click element in your application and choose Insert Standard
Checkpoint.
6 Save the test.
How to add a page checkpoint to your test?
The page checkpoint checks that the number of links and images in the page when you
run your test is the same as when you recorded your test.
1 Locate the page where you want to add a page checkpoint.
2 Create a page checkpoint.
Right-click anywhere in the Active Screen, and choose Insert Standard Checkpoint. The
Object Selection - Checkpoint Properties dialog box opens. Note that this dialog box
may include different elements, depending on where you click in the Active Screen.
3 Save the test.
How Does Run time data (Parameterization) is handled in QTP?
You can then enter test data into the Data Table, an integrated spreadsheet with the full
functionality of Excel, to manipulate data sets and create multiple test iterations, without
programming, to expand test case coverage. Data can be typed in or imported from
databases, spreadsheets, or text files.
What is keyword view and Expert view in QTP?
QuickTest’s Keyword Driven approach, test automation experts have full access to the
underlying test and object properties, via an integrated scripting and debugging
environment that is round-trip synchronized with the Keyword View. Advanced testers
can view and edit their tests in the Expert View, which reveals the underlying industrystandard
VBScript that QuickTest Professional automatically generates. Any changes
made in the Expert View are automatically synchronized with the Keyword View.
How QTP recognizes Objects in AUT?
QuickTest stores the definitions for application objects in a file called the Object
Repository. As you record your test, QuickTest will add an entry for each item you
interact with. Each Object Repository entry will be identified by a logical name
(determined automatically by QuickTest), and will contain a set of properties (type,
name, etc) that uniquely identify each object. Each line in the QuickTest script will
contain a reference to the object that you interacted with, a call to the appropriate
method (set, click, check) and any parameters for that method (such as the value for a
call to the set method). The references to objects in the script will all be identified by the
logical name, rather than any physical, descriptive properties.
What are the types of Object Repositorys in QTP?
QuickTest has two types of object repositories for storing object information: shared
object repositories and action object repositories. You can choose which type of object
repository you want to use as the default type for new tests, and you can change the
default as necessary for each new test. The object repository per-action mode is the
default setting. In this mode, QuickTest automatically creates an object repository file for
each action in your test so that you can create and run tests without creating, choosing,
or modifying object repository files. However, if you do modify values in an action object
repository, your changes do not have any effect on other actions. Therefore, if the same
test object exists in more than one action and you modify an object's property values in
one action, you may need to make the same change in every action (and any test)
containing the object.
If I give some thousand tests to execute in 2 days what do u do?
Adhoc testing is done. It Covers the least basic functionalities to verify that the system is
working fine.
Does QTP is "Unicode" compatible?
QTP 6.5 is not but QTP 8.0 is expected to be Unicode compatabile by end of December
2004.
How to "Turn Off" QTP results after running a Script?
Goto "Tools > Options > Run Tab" and Deselect "View results when run session ends".
But this supresses only the result window, but a og will be created and can viewed
manulaly which cannot be restricted from getting created.
Explain about the Test Fusion Report of QTP ?
Once a tester has run a test, a TestFusion report displays all aspects of the test run: a
high-level results overview, an expandable Tree View of the test specifying exactly
where application failures occurred, the test data used, application screen shots for
every step that highlight any discrepancies, and detailed explanations of each
checkpoint pass and failure. By combining TestFusion reports with QuickTest
Professional, you can share reports across an entire QA and development team.
To which environments does QTP supports ?
QuickTest Professional supports functional testing of all enterprise environments,
including Windows, Web, ..NET, Java/J2EE, SAP, Siebel, Oracle, PeopleSoft, Visual
Basic, ActiveX, mainframe terminal emulators, and Web services.
What's QuickTest Window?
Before you begin creating tests, you should familiarize yourself with the main QuickTest
window.
The QuickTest window contains the following key elements:
. Title bar—Displays the name of the currently open test.
. Menu bar—Displays menus of QuickTest commands.
. File toolbar—Contains buttons to assist you in managing your test.
. Testing toolbar—Contains buttons to assist you in the testing process.
. Debug toolbar—Contains buttons to assist you in debugging tests.
. Test pane—Contains the Keyword View and Expert View tabs.
. Active Screen—Provides a snapshot of your application as it appeared when you
performed a certain step during the recording session.
. Data Table—Assists you in parameterizing your test.
. Debug Viewer pane—Assists you in debugging your test. The Debug Viewer pane
contains the Watch Expressions, Variables, and Command tabs. (The Debug Viewer
pane is not displayed when you open QuickTest for the first time. You can display the
Debug Viewer by choosing View < Debug Viewer.)
. Status bar—Displays the status of the QuickTest application.
How does QTP identifes the object in the application
QTP identifies the object in the application by LogicalName and Class.
For example :
The Edit box is identified by
Logical Name : PSOPTIONS_BSE_TIME20
Class: WebEdit
If an application name is changes frequently i.e while recording it has name
“Window1” and then while running its “Windows2” in this case how does QTP
handles?
QTP handles those situations using “Regular Expressions..
Table and DB Checkpoints:
By adding table checkpoints to your tests or components, you can check that a specified
value is displayed in a cell in a table on your application. By adding database
checkpoints to your tests or components, you can check the contents of databases
accessed by your application. The results displayed for table and database checkpoints
are similar. When you run your test or component, QuickTest compares the expected
results of the checkpoint to the actual results of the run session. If the results do not
match, the checkpoint fails. You can check that a specified value is displayed in a cell in
a table by adding a table checkpoint to your test or component. For ActiveX tables, you
can also check the properties of the table object. To add a table checkpoint, you use the
Checkpoint Properties dialog box. Table checkpoints are supported for Web and ActiveX
applications, as well as for a variety of external add-in environments. You can use
database checkpoints in your test or component to check databases accessed by your
Web site or application and to detect defects. You define a query on your database, and
then you create a database checkpoint that checks the results of the query. Database
checkpoints are supported for all environments supported by QuickTest, by default, as
well as for a variety of external add-in environments.
There are two ways to define a database query:
(a) Use Microsoft Query. You can install Microsoft Query from the custom installation of
Microsoft Office.
(b) Manually define an SQL statement.
The Checkpoint timeout option is available only when creating a table checkpoint. It is
not available when creating a database checkpoint
Checking Bitmaps:
You can check an area of a Web page or application as a bitmap. While creating a test
or component, you specify the area you want to check by selecting an object. You can
check an entire object or any area within an object. QuickTest captures the specified
object as a bitmap, and inserts a checkpoint in the test or component. You can also
choose to save only the selected area of the object with your test or component in order
to save disk space.
When you run the test or component, QuickTest compares the object or selected area of
the object currently displayed on the Web page or application with the bitmap stored
when the test or component was recorded. If there are differences, QuickTest captures a
bitmap of the actual object and displays it with the expected bitmap in the details portion
of the Test Results window. By comparing the two bitmaps (expected and actual), you
can identify the nature of the discrepancy. For more information on test results of a
checkpoint, see Viewing Checkpoint Results.
For example, suppose you have a Web site that can display a map of a city the user
specifies. The map has control keys for zooming. You can record the new map that is
displayed after one click on the control key that zooms in the map. Using the bitmap
checkpoint, you can check that the map zooms in correctly.
You can create bitmap checkpoints for all supported testing environments (as long as
the appropriate add-ins are loaded). Note: The results of bitmap checkpoints may be
affected by factors such as operating system, screen resolution, and color settings.
Text/Text Area Checkpoint :
In the Text/Text Area Checkpoint Properties dialog box, you can specify the text to be
checked as well as which text is displayed before and after the checked text. These
configuration options are particularly helpful when the text string you want to check
appears several times or when it could change in a predictable way during run sessions.
Note: In Windows-based environments, if there is more than one line of text selected,
the Checkpoint Summary pane displays [complex value] instead of the selected text
string. You can then click Configure to view and manipulate the actual selected text for
the checkpoint.
QuickTest automatically displays the Checked Text in red and the text before and after
the Checked Text in blue. For text area checkpoints, only the text string captured from
the defined area is displayed (Text Before and Text After are not displayed). To
designate parts of the captured string as Checked Text and other parts as Text Before
and Text After, click the Configure button. The Configure Text Selection dialog box opens
Checking XML :
XML (Extensible Markup Language) is a meta-markup language for text documents that
is endorsed as a standard by the W3C. XML makes the complex data structures
portable between different computer environments/operating systems and programming
languages, facilitating the sharing of data.
XML files contain text with simple tags that describe the data within an XML document.
These tags describe the data content, but not the presentation of the data. Applications
that display an XML document or file use either Cascading Style Sheets (CSS) or XSL
Formatting Objects (XSL-FO) to present the data.
You can verify the data content of XML files by inserting XML checkpoints. A few
common uses of XML checkpoints are described below:
An XML file can be a static data file that is accessed in order to retrieve commonly used
data for which a quick response time is needed—for example, country names, zip
codes, or area codes. Although this data can change over time, it is normally quite static.
You can use an XML file checkpoint to validate that the data has not changed from one
application release to another.
An XML file can consist of elements with attributes and values (character data). There is
a parent and child relationship between the elements, and elements can have attributes
associated with them. If any part of this structure (including data) changes, your
application's ability to process the XML file may be affected. Using an XML checkpoint,
you can check the content of an element to make sure that its tags, attributes, and
values have not changed.
XML files are often an intermediary that retrieves dynamically changing data from one
system. The data is then accessed by another system using Document Type Definitions
(DTD), enabling the accessing system to read and display the information in the file. You
can use an XML checkpoint and parameterize the captured data values in order to
check an XML document or file whose data changes in a predictable way.
XML documents and files often need a well-defined structure in order to be portable
across platforms and development systems. One way to accomplish this is by
developing an XML schema, which describes the structure of the XML elements and
data types. You can use schema validation to check that each item of content in an XML
file adheres to the schema description of the element in which the content is to be
placed.
What are the Features & Benefits of Quick Test Pro(QTP)..?
1. Key word driven testing
2. Suitable for both client server and web based application
3. Vb script as the script language
4. Better error handling mechanism
5. Excellent data driven testing features




Thanks
M.Vineela

RSS

TTWT Magazine

Webinar

You Can


Call for Articles

Advertisement

Videos

  • Add Videos
  • View All

Badge

Loading…

© 2012   Created by Quality Testing.

Badges  |  Report an Issue  |  Terms of Service