Saturday, December 24, 2011

An overview on Test Automation

QTP Training in Pune



Test Automation



Basically Software Testing is 2 types



1) Manual Testing

2) Test Automation



Manual Testing:
Testing software manually is called Manual Testing. we can test all accepts of software manually.

Below Testing Types can be tested manually

Test Types:
a) Functional Testing
b) Regression Testing
c) GUI Testing
d) Usability Testing
e) Security Testing
f) Compatibility Testing
g) Recovery Testing
h) Reliability testing
Etc…

Drawbacks of Manual Testing

(i)Time consuming.
(ii) More resources required.
(iii)Human Errors
(iv)Repetition of the Task is not much
(v)Tiredness
(vi)Simultaneous auctions are not possible (Parallel)


Test Automation:

Testing Software using any Automation tools is called Test Automation

Advantages of Test Automation:

a) Fast: Tools are faster in execution than human users

b) Reliable: Tools are reliable in complex calculations and tasks

c) Reusable: we can reuse Automated Tests at any number of times

d) Repeatable: we can repeat same operations for required number of times

e) Programmable:we can use flow control statements for appalying logic

f) Comprehensive: we can execute test batches without human interaction also



Test Automation can be used in below areas of Testing:



a) Functional & Regression Testing



b) Load/Stress/Performance Testing



c) Security Testing


d) Unit Testing

Drawbacks of Automation Testing
1)It is expensive
2)We cannot automate all areas.
3)Lack of expertisation.
4)It has some limitations (It cannot test every thing)


Which Software Testing should be automated?

Tests that need to be execute of every build of the application (Sanity Testing)

Tests that use multiple data values (Retesting / Data Drives Testing)

Tests that required data from application intimates (G.U.I. Attributes) Load and Stress Testing

Which Software Testing should not be automated?


Usability Testing One time testing

Quick look Tests or A.S.A.P (As soon as possible) Testing Ad-hoc testing / Random Testing

Customers requirement are frequently changing.

-------------------------------------------
Types of Test tool:
-------------------

Business:
-----------------
a) Vendor tools

Ex: HP- WinRunner, LoadRunner, QTP, QC
IBM-Rational Robot, ,RFT, RPT, QA Director
Borland-SilkTest, Silk Performer etc..

b) Open Source Tools:
Ex: Selenium, Jmeter, QAWebLoad, Bugzilla etc...

c) In-house tools:

Technical:
-----------------
a) Functional & Regression Test Tools:
Ex:WinRunner, QTP, Rational Robot, ,RFT, SilkTest,Selenium etc..

b) Performence/load/stress test tools

Ex: LoadRunner, RPT, Silk Performer,Jmeter, QAWebLoad etc...

c) Test Management Tools:
Ex: QC, QA Director Etc...

d) Defect Management tools

e) Unit Test tools (Ex: JUnit)


Search Engine Submission - AddMe

QTP Basic Features





QTP Basic Features

• QTP was Launched in 2002 (Nov). By Mercury Interactive. Later taken over by HP, in 2007.

• QTP is an Object Based Testing Tool.

(Object based means; QTP Follows Test Object Model for Performing Testing operations. Based on either Test Objects or Automation Objects or Utility Objects only, we can automate test operations)

(LoadRunner is a Protocol based Test Tool)
• QTP is for Functional and Regression Testing.

(Basically QTP is a Functional and Regression Test tool but we can use it for little bit Compatibility Testing and Performance Testing)
• It follows Keyword Driven Approach.

(Keyword Driven Approach means; Keywords, example: Commands, functions, methods, statements etc.. are used for creating Test scripts)
It supports Windows Operating Environment only.

(QTP basically depends on User Interface to automate test operations and it is not depends on server side interactions, where as LoadRunner depends on server side Operations, so HP developed LoadRunner for Windows as well as UNIX versions)

• It supports GUI based (Graphical user interface) and Web based Applications Automation, does not support CUI (Command user interface) Applications.

• It has multilingual support. (It supports English, Chinese, Japanese, Korean, etc languages with respect to license.)

• It has adapted Microsoft Visual Basic Scripting edition for programming and Excel like spread sheet for Data driven testing.

Tools support for QTP:
------------------------------
• VB Script for Scripting (for implementing programming logic)

• VB Script engine integrated in QTP, so apart from scripting features we can use File system, Excel, word, Adodb etc. Object models from QTP.

• SQL (Structured query language) engine integrated in QTP, so we can use SQL Statements in QTP to perform Database Operations

• Excel like spread sheet integrated in QTP for performing Data driven Testing

• We can install MS Script Debugger with QTP for Debugging Test scripts.

• QTP uses XML format for Test results, Environment variables and for exporting object repositories.
-------------------------------------------------------

• QTP can be integrated with other Tools like WinRunner and Quality Center.

• QTP can be used for user interface (UI) test case automation and some limited (Non UI) Test case automation like File system operations and Data base operations.

• It was derived from Astra QuickTest (mother tool of QTP).

• It supports IE (Internet Explorer) only for recording tests, for execution it supports other browsers like Mozilla and AOL, opera Etc apart from IE.

• QTP is a Desktop Application (I-Tier/Stand alone).

• QTP developed in .NET Technology.

• Since it is Stand-alone Application, It doesn't have Database, It stores resources as files (Internal and External). We can't share qtp services from one machine to another, but we can share resources(Ex: Object Repository files, Function Libraries, Environment variable files, Recovery scenario files etc...)

QTP has two types of License;

Seat or Node locked License,

Concurrent or float license.

• We have to use Seat license from fixed system/machine and Concurrent License, we can use from any system but one user at a time. If we want multiple concurrent licenses that we can purchase.

• QTP has UNI code support.

Version History of QuickTest Professional

• Astra QuickTest (Mother tool of QTP) 1.0 to 5.0

* QTP derived from Astra QuickTest and influenced by WinRunner.

Quick Test Professional

• 5.6 – Nov 2002

• 6.5 – 2003

• 8.0 – 2004

• 8.2, 8.3 –2005

• 9.0,9.1-2006

• 9.2- 2007 Mercury Interactive

• 9.5 –2008 H.P

• 10.00 –2009 January

11.00 –2010** (It is Latest Version)

QTP Add ins Info

QTP Add ins Info

This document provides QuickTest Professional add ins information like Activex, web, visual basic, SAP, Java, .NET, People soft, TE, Web services and Oracle environments.

I) ActiveX Environment

Object Description
----------------------------------------------------
ActiveX An ActiveX control.
----------------------------------------------
AcxButton An ActiveX button.
-------------------------------------------------
AcxCalendar An ActiveX calendar object.
----------------------------------------------------
AcxCheckBox An ActiveX check box.
----------------------------------------------------
AcxComboBox An ActiveX combo box object.
--------------------------------------------------------

AcxEdit An ActiveX edit box.
------------------------------------------------------
AcxRadioButton An ActiveX radio button.
-----------------------------------------------

AcxTable An ActiveX table.
------------------------------------------------
AcxUtil An object that enables you to work with objects returned by performing an operation (usually via the Object property) on an ActiveX test object.
********************************************************
II) Delphi Environment

Object Description
-----------------------------------------
DelphiButton A Delphi button.
--------------------------------------------------
DelphiCheckBox A Delphi check box.
----------------------------------------------------
DelphiComboBox A Delphi combo box.
-----------------------------------------------------
DelphiEdit A Delphi edit box.
-----------------------------------------------------
DelphiEditor A Delphi multi-line editor.
-------------------------------------------------------------
DelphiList A Delphi list.
------------------------------------------------------------
DelphiListView A Delphi list-view control.
-------------------------------------------------------------
DelphiNavigator A Delphi navigator control.
--------------------------------------------------------------
DelphiObject A Delphi object.
--------------------------------------------------------------
DelphiRadioButton A Delphi radio button.
---------------------------------------------------------------
DelphiScrollBar A Delphi scroll bar.
------------------------------------------------------
DelphiSpin A Delphi spin box.
-----------------------------------------------------
DelphiStatic A Delphi static control.
-----------------------------------------------------------
DelphiStatusBar A Delphi status bar.
-------------------------------------------------------------
DelphiTable A Delphi table.
------------------------------------------------------------
DelphiTabStrip A Delphi tab strip.
-----------------------------------------------------------
DelphiTreeView A Delphi tree-view control.
------------------------------------------------------------
DelphiWindow A Delphi window or dialog box.
***************************************************

III) Java Environment

Object Description
JavaApplet Java applet.
------------------------------------
JavaButtonA Java button.
-----------------------------------------
JavaCalendar A Java calendar.
-----------------------------------------
JavaCheckBox A Java check box.

-----------------------------------------
JavaDialog A Java dialog box.
--------------------------------------------
JavaEdit A Java edit box.
-------------------------------------------
JavaExpandBar A Java control that contains labeled bar items, which can be expanded or collapsed by the user.
--------------------------------------------------------
JavaInternalFrame An internal frame that can be activated from the Java applet.
----------------------------------------------------------
JavaLink A Java control that displays text with links.
-----------------------------------------------------------------
JavaList A Java list box with single or multiple selection.
--------------------------------------------------------------------
JavaMenu A Java menu item.
-----------------------------------------------------
JavaObject A generic Java object.
---------------------------------------------
JavaRadioButton A Java radio button.
--------------------------------------------
JavaSlider A Java slider.
-------------------------------------------
JavaSpin A Java spin object.
-------------------------------------------
JavaStaticText A Java static text object.
------------------------------------------------------
JavaTab A Java tabstrip control containing tabbed panels.
----------------------------------------------------------------
JavaTable A Java table.
---------------------------------
JavaToolbar A Java toolbar.
-----------------------------------
JavaTree A Java tree.
-----------------------------
JavaWindow A Java window.
---------------------------------------
******************************************
IV) .NET Web Forms Environment

Object Description
--------------------------------------
WbfCalendar A .NET Web Forms calendar control.
----------------------------------------------------------------
WbfGrid A .NET Web Forms DataGrid object.
----------------------------------------------------------------
WbfTabStrip A .NET Web Forms tabstrip control.
--------------------------------------------------------------
WbfToolbar A .NET Web Forms toolbar control.
-------------------------------------------------------------
WbfTreeView A .NET Web Forms tree view object.
-------------------------------------------------------------
WbfUltraGrid A .NET Web Forms UltraGrid object.

**************************************************

V) .NET Windows Forms Environment

Object Description
---------------------------------
SwfButton
A .NET Windows Forms button object.
SwfCalendar
A DateTimePicker or a Month Calendar .NET Windows Forms calendar object.
SwfCheckBox
A .NET Windows Forms check box.
SwfComboBox
A .NET Windows Forms combo box.
SwfEdit
A .NET Windows Forms edit box.
SwfEditor
A .NET Windows Forms multi-line edit box.
SwfLabel
A .NET Windows Forms static text object.
SwfList
A .NET Windows Forms list.
SwfListView
A .NET Windows Forms ListView control.
SwfObject
A standard .NET Windows Forms object.
SwfPropertyGrid
A property grid control based on the .NET Windows Forms library.
SwfRadioButton
A .NET Windows Forms radio button.
SwfScrollBar
A .NET Windows Forms scroll bar.
SwfSpin
A .NET Windows Forms spin object.
SwfStatusBar
A .NET Windows Forms status bar control.
SwfTab
A .NET Windows Forms tab control.
SwfTable
A grid control based on the .NET Windows Forms library.
SwfToolBar
A .NET Windows Forms toolbar.
SwfTreeView
A .NET Windows Forms TreeView control.
SwfWindow
A .NET Windows Forms window.


VI) Windows Presentation Foundation Environment

Object Description
WpfButton
A button control in a Windows Presentation Foundation application.
WpfCheckBox
A check box control in a Windows Presentation Foundation application.
WpfComboBox
A combo box control in a Windows Presentation Foundation application.
WpfEdit
A document, rich text box, or text control in a Windows Presentation Foundation application.
WpfGrid
A grid control in a Windows Presentation Foundation application.
WpfImage
An image control in a Windows Presentation Foundation application.
WpfLink
A hyperlink control in a Windows Presentation Foundation application.
WpfList
A list control in a Windows Presentation Foundation application.
WpfMenu
A menu control in a Windows Presentation Foundation application.
WpfObject
An object control in a Windows Presentation Foundation application.
WpfProgressBar
A progress bar control in a Windows Presentation Foundation application.
WpfRadioButton
A radio button control in a Windows Presentation Foundation application.
WpfScrollBar
A scroll bar control in a Windows Presentation Foundation application.
WpfSlider
A slider control in a Windows Presentation Foundation application.
WpfStatusBar
A status bar control in a Windows Presentation Foundation application.
WpfTabStrip
A tab control in a Windows Presentation Foundation application.
WpfToolbar
A toolbar control in a Windows Presentation Foundation application.
WpfTreeView
A tree control in a Windows Presentation Foundation application.
WpfWindow
A window control in a Windows Presentation Foundation application.



VII) Oracle Environment

Object Description
OracleApplications
An Oracle Applications session window.
OracleButton
An Oracle button.
OracleCalendar
An Oracle calendar.
OracleCheckbox
A check box Oracle field.
OracleFlexWindow
An Oracle flexfield window.
OracleFormWindow
An Oracle Form window.
OracleList
An Oracle poplist (combo box) or list.
OracleListOfValues
An Oracle window containing a list of values for selection.
OracleLogon
An Oracle Applications sign-on window.
OracleNavigator
An Oracle Navigator window.
OracleNotification
An Oracle error or message window.
OracleRadioGroup
An Oracle option (radio button) group.
OracleStatusLine
The status line and message line at the bottom of an Oracle Applications window.
OracleTabbedRegion
An Oracle tabbed region.
OracleTable
An Oracle block of records.
OracleTextField
An Oracle text field.
OracleTree
An Oracle tree.

VIII) PeopleSoft Environment

Object Description
PSFrame
A frame object within a PeopleSoft application.

IX) PowerBuilder Environment

Object Description
PbButton
A PowerBuilder button.
PbCheckBox
A PowerBuilder check box.
PbComboBox
A PowerBuilder combo box.
PbDataWindow
A PowerBuilder DataWindow control.
PbEdit
A PowerBuilder edit box.
PbList
A PowerBuilder list.
PbListView
A PowerBuilder listview control.
PbObject
A standard PowerBuilder object.
PbRadioButton
A PowerBuilder radio button.
PbScrollBar
A PowerBuilder scroll bar.
PbTabStrip
A PowerBuilder tab strip control
PbTreeView
A PowerBuilder tree-view control.
PbWindow
A PowerBuilder window.

X) SAP Web Environment

Object Description
SAPButton
An SAP Gui for HTML application button, including icons, toolbar buttons, regular buttons, buttons with text, and buttons with text and image.
SAPCalendar
A calendar in a Web-based SAP application.
SAPCheckBox
An SAP Gui for HTML application toggle button, including check boxes and toggle images.
SAPDropDownMenu
A menu that is opened by clicking a menu icon within an SAP Gui for HTML application.
SAPEdit
An SAP Gui for HTML application edit box, including single-line edit boxes and multi-line edit boxes (text area).
SAPFrame
An SAP Gui for HTML application frame.
SAPiView
An SAP Enterprise Portal application iView frame.
SAPList
A drop-down or single/multiple selection list in an SAP Gui for HTML application.
SAPMenu
An SAP Gui for HTML application top-level menu.
SAPNavigationBar
A navigation bar in a Web-based SAP application.
SAPOKCode
An OK Code box in an SAP Gui for HTML application.
SAPPortal
An SAP Enterprise Portal desktop.
SAPRadioGroup
An SAP Gui for HTML application radio button group.
SAPStatusBar
An SAP Gui for HTML application status bar.
SAPTable
An SAP Gui for HTML application table or grid.
SAPTabStrip
An SAP Gui for HTML application tab strip object (an object that enables switching between multiple tabs).
SAPTreeView
An SAP Gui for HTML application tree object.

XI) SAP GUI for Windows Environment

Object Description
SAPGuiAPOGrid
An APO grid control in an SAP GUI for Windows application.
SAPGuiButton
A button in an SAP GUI for Windows application.
SAPGuiCalendar
A calendar object in an SAP GUI for Windows application.
SAPGuiCheckBox
A check box in an SAP GUI for Windows application.
SAPGuiComboBox
A combo box in an SAP GUI for Windows application.
SAPGuiEdit
An edit box in an SAP GUI for Windows application.
SAPGuiElement
Any object in an SAP GUI for Windows application.
SAPGuiGrid
A grid control in an SAP GUI for Windows application.
SAPGuiLabel
A static text label in an SAP GUI for Windows application.
SAPGuiMenubar
A menu bar in an SAP GUI for Windows application.
SAPGuiOKCode
An OK Code box in an SAP GUI for Windows application.
SAPGuiRadioButton
A radio button in an SAP GUI for Windows application.
SAPGuiSession
Represents the SAP GUI for Windows session on which an operation is performed.
SAPGuiStatusBar
A status bar in an SAP GUI for Windows application.
SAPGuiTable
A table control in an SAP GUI for Windows application.
SAPGuiTabStrip
A tab strip in an SAP GUI for Windows application.
SAPGuiTextArea
A text area in an SAP GUI for Windows application.
SAPGuiToolbar
A toolbar in an SAP GUI for Windows application.
SAPGuiTree
A column tree, list tree, or simple tree control in an SAP GUI for Windows application.
SAPGuiUtil
A utility object in an SAP GUI for Windows application.
SAPGuiWindow
A window or dialog box containing objects in an SAP GUI for Windows application.

XII) Siebel Environment

Object Description
SblAdvancedEdit
An edit box whose value can be set by a dynamic object that opens after clicking on a button inside the edit box
SblButton
A Siebel button.
SblCheckBox
A check box with an ON and OFF state.
SblEdit
An edit box.
SblPickList
A drop-down pick list.
SblTable
A Siebel table containing a variable number of rows and columns.
SblTabStrip
A number of tabs and four arrows that move its visible range to the left and to the right.
SblTreeView
A tree view of specific screen data.
SiebApplet
An applet in a Siebel test automation environment.
SiebApplication
An application in a Siebel test automation environment.
SiebButton
A button control in a Siebel test automation environment.
SiebCalculator
A calculator control in a Siebel test automation environment.
SiebCalendar
A calendar control in a Siebel test automation environment.
SiebCheckbox
A checkbox in a Siebel test automation environment.
SiebCommunicationsToolbar
The communications toolbar in a Siebel test automation environment.
SiebCurrency
A currency calculator in a Siebel test automation environment.
SiebList
A list object in a Siebel test automation environment.
SiebMenu
A menu or menu item in a Siebel test automation environment.
SiebPageTabs
A page tab in a Siebel test automation environment.
SiebPDQ
A predefined query in a Siebel test automation environment.
SiebPicklist
A pick list in a Siebel test automation environment.
SiebRichText
A rich text control in a Siebel test automation environment.
SiebScreen
A screen object in a Siebel test automation environment.
SiebScreenViews
A screen view in a Siebel test automation environment.
SiebTaskAssistant
The Task Assistant in a Siebel test automation environment.
SiebTaskUIPane
The task UI pane in a Siebel test automation environment.
SiebText
A text box in a Siebel test automation environment.
SiebTextArea
A text area in a Siebel test automation environment.
SiebThreadbar
A threadbar in a Siebel test automation environment.
SiebToolbar
A toolbar in a Siebel test automation environment.
SiebTree
A tree view object in a Siebel test automation environment.
SiebView
A view object in a Siebel test automation environment.
SiebViewApplets
A view applet in a Siebel test automation environment.

XIII) Standard Windows Environment

Object Description
Desktop
An object that enables you to access top-level items on your desktop.
Dialog
A Windows dialog box.
Static
A static text object.
SystemUtil
An object used to control applications and processes during a run session.
WinButton
A Windows button.
WinCalendar
A Windows calendar.
WinCheckBox
A Windows check box.
WinComboBox
A Windows combo box.
Window
A standard window.
WinEdit
A Windows edit box.
WinEditor
A Windows multi-line editor.
WinList
A Windows list.
WinListView
A Windows list-view control.
WinMenu
A Windows menu.
WinObject
A standard (Windows) object.
WinRadioButton
A Windows radio button.
WinScrollBar
A Windows scroll bar.
WinSpin
A Windows spin box.
WinStatusBar
A Windows status bar.
WinTab
A Windows tab strip in a dialog box.
WinToolbar
A Windows toolbar.
WinTreeView
A Windows tree-view control.

XIV) Stingray Environment

Object Description
WinTab
A Windows tab strip in a dialog box.
WinTable
A Stingray grid.
WinToolbar
A Windows toolbar.
WinTreeView
A Stingray tree control.


XV) Terminal Emulators Environment

Object Description
TeField
A terminal emulator field that fully supports HLLAPI.
TeScreen
A terminal emulator screen that fully supports HLLAPI.
TeTextScreen
A terminal emulator screen that uses text-only HLLAPI or does not support HLLAPI.
TeWindow
A terminal emulator window.

XVI) Visual Basic Environment

Object Description
VbButton
A Visual Basic button.
VbCheckBox
A Visual Basic check box.
VbComboBox
A Visual Basic combo box.
VbEdit
A Visual Basic edit box.
VbEditor
A Visual Basic multi-line editor.
VbFrame
A Visual Basic frame.
VbLabel
A static text object.
VbList
A Visual Basic list.
VbListView
A Visual Basic list-view control.
VbRadioButton
A Visual Basic radio button.
VbScrollBar
A Visual Basic scroll bar.
VbToolbar
A Visual Basic toolbar.
VbTreeView
A Visual Basic tree-view control.
VbWindow
A Visual Basic window.

XVII) VisualAge Smalltalk Environment

Object Description
WinButton
A button in the VisualAge Smalltalk application.
WinEdit
An edit box in the VisualAge Smalltalk application.
WinList
A list in the VisualAge Smalltalk application.
WinObject
An object in the VisualAge Smalltalk application.
WinTab
A tab strip in the VisualAge Smalltalk application.
WinTable
A table in the VisualAge Smalltalk application.
WinTreeView
A tree-view control in the VisualAge Smalltalk application.

XVIII) Web Environment

Object Description
Browser
A Web browser (or browser tab).
Frame
An HTML frame.
Image
An image with or without a target URL link.
Link
A hypertext link.
Page
An HTML page.
ViewLink
A Viewlink object.
WebArea
A section of an image (usually a section of a client-side image map).
WebButton
An HTML button.
WebCheckBox
A check box with an ON and OFF state.
WebEdit
An edit box, usually contained inside a form.
WebElement
A general Web object that can represent any Web object.
WebFile
An edit box with a browse button attached, used to select a file from the File dialog box.
WebList
A drop-down box or multiple selection list.
WebRadioGroup
A set of radio buttons belonging to the same group.
WebTable
A table containing a variable number of rows and columns.
WebXML
An XML document contained in a Web page.

XIX) Web Services Environment

Object Description
Attachments An object that supports attachment-related operations
-----------------------------------------------------------------------------------------
Configuration An object that supports configuration-related operations
-----------------------------------------------------------------------------------------
headers
An object that supports header-related test object operations.
Security
An object that supports security-related test object operations.
WebService
A test object representing a Web service.
WSUtil
A utility object used to check WSDL files

QTP Tool Window


Key Elements of QTP Tool Window

1) Test Pane:
It is programming interface of QTP, used for creating, editing, viewing and deleting test scripts.

Test: It is a set of statements or set of one or more actions. (It is a local concept)

Action: It is a set of Statements. (It is a local concept)

Statement: A minimal executable unit. Statements may have keywords. (Keyword such as function, method, statement etc). It is a global concept.

Test pane has 2 views.

Expert view- Test in VB script format.
Key word view- Test in Icon based GUI format.

Note1: Here in test pane Test is same but views are different, if you perform any modifications in one view those automatically reflects in another view.

Note 2: Technical users use expert view and business user use key word view.

Note 3: User can customize Test pane view options.

Navigation: Tools Menu> view options> we can use font size and colors etc.

2) Active Screen
It has an optional element of QTP, it takes snap shots of every statement that user performed action or operation on AUT.

It can be used for understanding and editing the test easily.

Navigation: View menu>active screen (for launching and closing)

Configuring Active Screen: Tools > Options > Active screen tab > Increase / Decrease capture level, Apply and OK.

Note 1: Generally novice testers use this feature but it occupies lot of memory space on QTP.

3) Data Table
It has an integrated spread sheet (Excel like), used for Data driven testing.

Navigation: View menu>Data table (for launching and closing)

Data driven Testing: Testing the same task(S) or same operation with multiple sets of test data.

It can be used in two ways.

1. Enter test data directly into Data Table and use.

2. Importing data from external files (Flat files, excel sheets, etc) and Data bases (MS access, Sql Server, oracle, etc.)

It has two types of sheets.

1). Global Sheet- for entire Test /used for all actions in the Test.
2). Action Sheets- for specific Action only.

Data table available in 2 ways:

1). Design time data table. (Attached with every test)
2). Run time data table. (Available in result window)

Run time is a carbon copy of design time data table.
QTP has Data table methods for performing operations on data table.

4) Debug Viewer
It is used for locating and rectifying or fixing errors.
It can be used for debugging the tests by step-by-step execution.

We use Step into, Step over and Step out commands for debugging. (debug commands)

Navigation: View menu>debug viewer (for launching and closing)

Through Debug viewer user can watch variables and change values of variables temporarily.

5) Missing Resources

It can be used for showing missing resources that attached to current test such as (Recovery Scenarios, Library files etc).

Navigation: View menu >missing resources (for launching and closing)

6) Information
This pane shows syntax errors automatically during saving the test.
Navigation: view menu> information

7) QTP Commands
QTP Commands are available in 3 ways.

1). Menu options
2). Tool Bar options
3). Short cut keys (for Some important operations only)

QTP Tool Window Menus

File menu: Through file menu user can create, save tests, open existing tests, export tests in zip format.


Edit Menu: It provides editing options and renaming, deleting and splitting actions.

View menu: Through this menu we can launch and close, active screen, Data Table, Debug viewer, information, missing resources etc.

Insert Menu: Through this menu user can inserting check points, out put values, synchronizing points.

In this menu step generator available, using this user can generate recordable and non-recordable scripts.

Through insert menu user can insert VB Script conditional and loop statements and transaction points (Start and End).

Through insert menu user can create new actions, call existing actions and copy existing actions.

Automation Menu: This menu provides Record, Run options and Run setting options

Through this menu we can start normal recording, analog recording and Low level recording.

Through this menu we can stop recoding, running and also we run tests.

Resources Menu: This menu provides object repository and recovery scenarios options.

Through this menu we can create /modify/delete objects information and we can associate repositories.

Through this menu we can create, modify and delete recovery scenarios.

Debug Menu:

This menu provides debug commands for step by step execution.

Through this menu we can insert/remove/break points.

Tools Menu: This menu provides Tools settings option, view options and object identification configuration.

Through this menu we can set tool options as well as test pane view options.

In this menu object spy option available, through this we can get object’s information.(Properties and values)

In this menu Virtual object option available; through this option we can create virtual objects.

Window Menu: This menu provides QTP tool window style settings.

Help Menu: This menu provides QTP help as well as VB Script help.
Through this menu we can contact technical support people and we can send feedback.
Through this menu we can check for updates and download or install directly.

QTP Commands


QTP Commands

QTP Commands are available in 3 ways.

1.Menu options
2.Tool Bar options
3.Short cut keys (for Some important operations only)

File menu: Through file menu user can create, save tests, open existing tests, export tests in zip format.

Command
Function
New > Test
Creates a new test.
New > Business Component
Creates a new business component.
New > Scripted Component
Creates a new scripted component.
New > Application Area
Creates a new application area.
New > Function Library
Creates a new function library.
Open > Test
Opens an existing test.
Open > Business/Scripted Component
Opens an existing business or scripted component.
Open > Application Area
Opens an existing application area.
Open > Function Library
Opens an existing function library.
Close
Closes the active function library.
Close All Function Libraries
Closes all open function libraries.
Quality Center Connection
Opens the Quality Center Connection dialog box, enabling you to connect to a Quality Center project.
Quality Center Version Control
Provides a sub-menu of options for managing versions of QuickTest assets in Quality Center. The sub-menu is available only when you are connected to version-control enabled Quality Center project.
Save
Saves the active document.
Save As
Opens the relevant Save dialog box so you can save the open document.
Save Test with Resources
Saves a standalone copy of the current test together with its resource files.
Save All
Saves all open documents.
Enable Editing
Makes read-only function libraries editable.
Export Test to Zip File
Creates a zip file of the active document.
Import Test from Zip File
Imports a document from a zip file.
Convert to Scripted Component
Converts a business component to a scripted component.
Print
Prints the active document.
Print Preview
Displays the Keyword View as it will look when printed and enables you to modify the page setup.
Settings
Opens the Settings dialog box, enabling you to define settings for the open document. (Not relevant for function libraries)
Process Guidance Management
Opens the Process Guidance Management dialog box, enabling you to manage the list of processes that are available in QuickTest.
Associate Library '' with ''
Associates the active function library with the open document. (Available only from function libraries)
Recent Files
Lists the recently viewed files.
Exit
Closes the QuickTest session.

Edit Menu: It provides editing options and renaming, deleting and splitting actions.


Command
Function
Undo
Reverses the last command or deletes the last entry you typed.
Redo
Reverses the most recent operation of the Undo command.
Cut
Removes the selection from your document.
Copy
Copies the selection from your document.
Paste
Pastes the selection to your document.
Delete
Deletes the selection from your document.
Copy Documentation to Clipboard
Copies the content of the Documentation column of the Keyword View, enabling you to paste it in an external application.
Action > Split Action
Separates an action into two sibling actions or into parent-child nested actions.
Action > Rename Action
Changes the name of an action.
Action > Delete Action
Enables you to remove the selected call to the action, or delete the action and its calls from the active test.
Action > Action Properties
Enables you to specify options, parameters, and associated object repositories for a stored action.
Action > Action Call Properties
Enables you to specify the number of run iterations according to the number of rows in the Data Table, and to define the values of input parameters and the storage location of output parameters.
Step Properties > Comment Properties
Opens the Comment Properties dialog box for a comment step. Available only when the selected step is a comment.
Step Properties > Object Properties
Opens the Object Properties dialog box for a selected object. Available only when the selected step contains a test object.
Step Properties > Checkpoint Properties
Opens the relevant Checkpoint Properties dialog box for a selected object. Available only when the selected step is a checkpoint step.
Step Properties > Output Value Properties
Opens the relevant Output Value Properties dialog box for a selected object. Available only when the selected step is an output value step.
Step Properties > Report Properties
Displays the Report Properties dialog box for a report step. Available only when the selected step is a Reporter.ReportEvent step.
Find
Searches for a specified string.
Replace
Searches and replaces a specified string.
Go To
Moves the cursor to a particular line in the test.
Bookmarks
Creates bookmarks in your script for easy navigation.
Advanced > Comment Block
Comments out the current row, or selected rows.
Advanced > Uncomment Block
Removes the comment formatting from the current or selected rows.
Advanced > Indent
Indents the step according to the tab spacing defined in the Editor Options dialog box.
Advanced > Outdent
Outdents the step (reduces the indentation) according to the tab spacing defined in the Editor Options dialog box.
Advanced > Go to Function Definition
Navigates to the definition of the selected function.
Advanced > Complete Word
Completes the word when you type the beginning of a VBScript method or object.
Advanced > Argument Info
Displays the syntax of a method.
Advanced > Apply "With" to Script
Generates With statements for the action displayed in the Expert View, and enables IntelliSense within With statements.
Advanced > Remove "With" Statements
Converts any With statements in the action displayed in the Expert View to regular (single-line) VBScript statements.
Optional Step
Inserts an optional step (a step that is not required to successfully complete a run session).

View menu: Through this menu we can launch and close, active screen, Data Table, Debug viewer, information, missing resources etc.

Insert Menu: Through this menu user can inserting check points, out put values, synchronizing points.

In this menu step generator available, using this user can generate recordable and non-recordable scripts.

Through insert menu user can insert VB Script conditional and loop statements and transaction points (Start and End).

Through insert menu user can create new actions, call existing actions and copy existing actions.

Automation Menu:
This menu provides Record, Run options and Run setting options
Through this menu we can start normal recording, analog recording and Low level recording.

Through this menu we can stop recoding, running and also we run tests.

Command
Function
Record
Starts a recording session.
Run
Starts a run session from the beginning or from the line at which the session was paused.
Stop
Stops the recording or run session.
Run Current Action
Runs only the active action.
Run from Step
Starts a run session from the selected step.
Maintenance Run Mode
Starts a run session during which the Maintenance Run Mode wizard opens for steps that failed because an object was not found in the application (if applicable).
Update Run Mode
Starts a run session to update test object descriptions and other options (if applicable).
Analog Recording
Starts recording in Analog Recording mode.
Low Level Recording
Starts recording in Low Level Recording mode.
Record and Run Settings
Opens the Record and Run Settings dialog box, enabling you to define browser preferences for recording and running your test.
Process Guidance List
Lists the processes that are available for the current document type and for the currently loaded QuickTest add-ins, enabling you to open them.
Results
Enables you to view results for a test run session.

Resources Menu:

This menu provides object repository and recovery scenarios options.
Through this menu we can create /modify/delete objects information and we can associate repositories.
Through this menu we can create, modify and delete recovery scenarios.

Command
Function
Object Repository
Opens the Object Repository window, which displays a tree containing all objects in the current test or component.
Object Repository Manager
Opens the Object Repository Manager dialog box, enabling you to open and modify multiple shared object repositories.
Associate Repositories
Opens the Associate Repositories dialog box, enabling you to manage the object repository associations for the test.
Map Repository Parameters
Opens the Map Repository Parameters dialog box, enabling you to map repository parameters, as needed.
Recovery Scenario Manager
Opens the Recovery Scenario Manager dialog box.
Associated Function Libraries
Lists the function libraries associated with the active document, enabling you to open them.

Debug Menu:
This menu provides debug commands for step by step execution.
Through this menu we can insert/remove/break points.

Tools Menu:
This menu provides Tools settings option, view options and object identification configuration.
Through this menu we can set tool options as well as test pane view options.
In this menu object spy option available, through this we can get object’s information.(Properties and values)
In this menu Virtual object option available; through this option we can create virtual objects.

Command
Function
Options
Opens the Options dialog box, enabling you to modify global testing options.
View Options
Opens the Editor Options dialog box, enabling you to customize how tests and function libraries are displayed in the Expert View and Function Library windows.
Check Syntax
Checks the syntax of the active document.
Object Identification
Opens the Object Identification dialog box, enabling you to specify how QuickTest identifies a particular test object.
Object Spy
Opens the Object Spy dialog box, enabling you to view the native properties and operations of any object in an open application, as well as the test object hierarchy, identification properties, and operations of the test object that QuickTest uses to represent that object.
Web Event Recording Configuration
Opens the Web Event Recording Configuration dialog box, enabling you to specify a recording configuration level. (Relevant for tests only)
Data Driver
Opens the Data Driver dialog box, which displays the default Constants list for the action. (Relevant for tests only)
Change Active Screen
Replaces the previously recorded Active Screen with the selected Active Screen. (Relevant for tests only)
Virtual Objects > New Virtual Object
Opens the Virtual Object Wizard, enabling you to teach QuickTest to recognize an area of your application as a standard test object.
Virtual Objects > Virtual Object Manager
Opens the Virtual object Manager, enabling you to manage all of the virtual object collections defined on your computer.
Customize
Opens the Customize dialog box, which enables you to customize toolbars and menus, and create new menus.

Window Menu:
This menu provides QTP tool window style settings.

Help Menu:
This menu provides QTP help as well as VB Script help.
Through this menu we can contact technical support people and we can send feedback.
Through this menu we can check for updates and download or install directly.