Articles On Testing

Wecome to http://www.articlesontesting.com !!!

Articles On Testing

Wecome to http://www.articlesontesting.com !!!

Articles On Testing

Wecome to http://www.articlesontesting.com !!!

Articles On Testing

Wecome to http://www.articlesontesting.com !!!

Articles On Testing

Wecome to http://www.articlesontesting.com !!!

Showing posts with label qtp tool menu commands. Show all posts
Showing posts with label qtp tool menu commands. Show all posts

Tools & Utilities In QTP

    How to Use Tools Of QTP :
  • Tools. Contains the following utilities and tools that assist you with the testing process:

    • Additional Installation Requirements. Opens the Additional Installation Requirements dialog box, which displays any prerequisite software that you must install or configure to work with QuickTest.

    • HP Micro Player. Opens the HP Micro Player, which enables you to view captured movies of a run session without opening QuickTest. For more information, click the Help button in the HP Micro Player window.

    • License Validation Utility. Opens the License Validation utility, which enables you to retrieve and validate license information. For more information, click the Help button in the License Validation Utility window.

    • Password Encoder. Opens the Password Encoder dialog box, which enables you to encode passwords. You can use the resulting strings as method arguments or Data Table parameter values (tests only). For more information, see Inserting Encoded Passwords into Method Arguments.

    • QuickTest Script Editor. Opens the QuickTest Script Editor, which enables you to open and modify the scripts of multiple tests and function libraries, simultaneously. For more information, see the HP QuickTest Professional User Guide.

    • Register New Browser Control. Opens the Register Browser Control Utility, which enables you to register your browser control application so that QuickTest Professional recognizes your Web object when recording or running tests. For more information, see the section on registering browser controls in the HP QuickTest Professional Add-ins Guide.

    • Remote Agent. Activates the QuickTest Remote Agent, which enables you to configure how QuickTest behaves when a component is run by a remote application such as Quality Center. For more information, see the HP QuickTest Professional User Guide.

    • Save and Restore Settings. Opens the Save and Restore Settings dialog box, which enables you to save certain existing configurations before uninstalling a QuickTest 9.2 or older version, and then restore them after installing a new version. For more information, see the HP QuickTest Professional User Guide.

    • Silent Test Runner. (Relevant only for tests) Opens the Silent Test Runner dialog box, which enables you to run a QuickTest test the way it is run from LoadRunner and Business Availability Center. For more information, see the HP QuickTest Professional User Guide.

    • Test Batch Runner. (Relevant only for tests) Opens the Test Batch Runner dialog box, which enables you to set up QuickTest to run several tests in succession. For more information, see the HP QuickTest Professional User Guide.

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


  • Check for Updates. Checks online for any available updates to QuickTest Professional. You can choose which updates you want to download and (optionally) install.
  •  

  • QuickTest Professional. Opens the QuickTest Professional application.
  •  

  • Readme. Opens the HP QuickTest Professional Readme, which provides the latest news and information on QuickTest Professional and the QuickTest Professional add-ins.
  •  

  • Test Results Viewer. Opens the Test Results window, which enables you to select a component or business process test and view information about the steps performed during the run session. For more information, see The Test Results Window.

  • Printer-Friendly Documentation. Opens a page that provides links to printer-friendly versions of all QuickTest documentation, in Adobe Acrobat Reader (PDF) format.

  • QuickTest Automation Reference. Opens the QuickTest Professional Automation Object Model Reference. The automation object model assists you in automating test management, by providing objects, methods and properties that enable you to control QuickTest features and configurations. The Automation Object Model Reference provides syntax, descriptive information, and examples for the objects, methods, and properties. It also contains a detailed overview to help you get started writing QuickTest automation scripts.

  • QuickTest Professional Code Samples Plus. Opens the QuickTest Professional Code Samples Plus Help, which provides sample function libraries, code, and SDK samples with accompanying explanations.

  • QuickTest Professional Help. Opens a comprehensive help file containing the HP QuickTest Professional User Guide, the HP QuickTest Professional for Business Process Testing User Guide, the HP QuickTest Professional Add-ins Guide, the HP QuickTest Professional Object Model Reference (including the relevant sections for any installed add-ins), QuickTest Advanced References (Automation API and XML Schema references), and the Microsoft VBScript Reference.

  • Tutorial. Opens the QuickTest Professional tutorial, which teaches you basic QuickTest skills and shows you how to start testing your applications.





  • Extensibility. Provides links to the Help for the add-in Extensibility SDKs available with QuickTest Professional 10.00. If you install an extensibility SDK, this program folder may also contain additional items.










  • Sample Applications. Contains the following links to sample applications that you can use to practice testing with QuickTest:






    • Flight. Opens a sample flight reservation Windows application. To access the application, enter any username and the password mercury.

    • Mercury Tours Web site. Opens a sample flight reservation Web application. This Web application is used as a basis for the QuickTest tutorial. For more information, see the HP QuickTest Professional Tutorial.

    Data Table Menu Commands In QTP

    What are : Data Table Menu Commands


    You can perform the following Data Table menu commands by right-clicking in a Data Table cell or pressing the corresponding shortcut keys when one or more cells are selected in the Data Table:




    Command

    Shortcut Key

    Function

    Edit > Cut

    Ctrl+X

    Cuts the table selection and puts it on the Clipboard.

    Edit > Copy

    Ctrl+C

    Copies the table selection and puts it on the Clipboard.

    Edit > Paste

    Ctrl+V

    Pastes the contents of the Clipboard to the current table selection.

    Edit > Clear > Contents

    Ctrl+Del

    Clears the contents from the current selection.

    Edit > Insert

    Ctrl+I

    Inserts empty cells at the location of the current selection. Cells adjacent to the insertion are shifted to make room for the new cells.

    Edit > Delete

    Ctrl+K

    Deletes the current selection. Cells adjacent to the deleted cells are shifted to fill the space left by the vacated cells.

    Edit > Fill Right

    Ctrl+R

    Copies data in the left-most cell of the selected range to all cells to the right of it, within the selected range.

    Edit > Fill Down

    Ctrl+D

    Copies data in the top cell of the selected range to all cells below it within the selected range.

    Edit > Find

    Ctrl+F

    Finds a cell containing specified text. You can search the table by row or column and specify to match case or find entire cells only.

    Edit > Replace

    Ctrl+H

    Finds a cell containing specified text and replaces it with different text. You can search the table by row or column and specify to match case and/or to find entire cells only. You can also replace all.

    Data > Recalc

    F9

    Recalculates the selected data in the Data Table.

    Switch between Data Table sheets

    Ctrl+Page Up/Page Down

    Switches through the Data Table sheets when the Data Table is in focus.

    Tools Menu Commands In QTP

    What are Tools Menu Commands


    You can perform the following Tools menu commands:

    Sl No
    Command

    Shortcut Key

    Function

    1
    Options

    Opens the Options dialog box, enabling you to modify global testing options.
     2
    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.

    3

    Check Syntax

    Ctrl+F7

    Checks the syntax of the active document.
     4
    Object Identification

    Opens the Object Identification dialog box, enabling you to specify how QuickTest identifies a particular test object.

    5

    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.
     6
    Web Event Recording Configuration

    Opens the Web Event Recording Configuration dialog box, enabling you to specify a recording configuration level. (Relevant for tests only)
     7
    Data Driver

    Opens the Data Driver dialog box, which displays the default Constants list for the action. (Relevant for tests only)
     8
    Change Active Screen

    Replaces the previously recorded Active Screen with the selected Active Screen. (Relevant for tests only)
     9
    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.
     10
    Virtual Objects > Virtual Object Manager

    Opens the Virtual object Manager, enabling you to manage all of the virtual object collections defined on your computer.
     11
    Customize

    Opens the Customize dialog box, which enables you to customize toolbars and menus, and create new menus.



    Some of the Tools menu commands are also available from the Tools toolbar.

    Debug Menu Commands In QTP

    Debug Menu Commands


    You can debug the steps in your component and any associated function library using the following Debug menu commands:


    Sl No
    Command

    Shortcut Key

    Function

    1

    Pause

    Pauses the debug session.

    2

    Step Into

    F11

    Runs only the current line of the script. If the current line calls a method, the method is displayed in the view but is not performed.

    3

    Step Over

    F10

    Runs only the current line of the script. When the current line calls a method, the method is performed in its entirety, but is not displayed in the view.

    4

    Step Out

    Shift+F11

    Runs to the end of the method then pauses the run session. (Available only after running a method using Step Into)
     5
    Run to Step

    Ctrl+F10

    Runs until the current step.
     6
    Debug from Step

    Runs from the selected step instead of the start of the component.
     7
    Add to Watch

    Ctrl+T

    Adds the selected item to the Watch tab.

    8

    Insert/Remove Breakpoint

    F9

    Sets or clears a breakpoint in the component.

    9

    Enable/Disable Breakpoint

    Ctrl+F9

    Enables or disables a breakpoint in the component.

    10

    Clear All Breakpoints

    Ctrl+Shift+F9

    Deletes all breakpoints in the component.

    11

    Enable/Disable All Breakpoints

    Enables or disables all breakpoints in the component.



    Some of the Debug commands are also available from the Debug toolbar.

    Resources Menu Commands In QTP

    Resources Menu Commands


    You can manage your object repositories and other resources using the following Resources menu commands:




    Command

    Shortcut Key

    Function

    1
    Object Repository

    Ctrl+R

    Opens the Object Repository window, which displays a tree containing all objects in the current test or component.

    2

    Object Repository Manager

    Opens the Object Repository Manager dialog box, enabling you to open and modify multiple shared object repositories.

    3

    Associate Repositories

    Opens the Associate Repositories dialog box, enabling you to manage the object repository associations for the test.

    4

    Map Repository Parameters

    Opens the Map Repository Parameters dialog box, enabling you to map repository parameters, as needed.
     5
    Recovery Scenario Manager

    Opens the Recovery Scenario Manager dialog box.
     6
    Associated Function Libraries

    Lists the function libraries associated with the active document, enabling you to open them.



    The Object Repository menu command is also available from the Automation toolbar.


    For gaining more insights in the automation using QTP log on to below url :
    Automation Testing Using QTP

    Insert Menu Commands In QTP

    Insert Menu Commands


    You can insert various types of component and function library steps using the following Insert menu commands:



    Sl No
    Command

    Shortcut Key

    Function

    1

    Checkpoint > Standard Checkpoint

    F12

    Opens the Checkpoint Properties dialog box, enabling you to create a standard checkpoint for an object.

    2

    Output Value > Standard Output Value

    Ctrl+F12

    Opens the Output Value Properties dialog box, enabling you to create a standard output value for an object.

    3

    Step Generator

    F7

    Opens the Step Generator. (Relevant only for function libraries)

    4

    Function Definition Generator

    Opens the Function Definition Generator. (Relevant only for function libraries)
     5
    New Step

    F8; Insert

    Inserts a new step in the Keyword View.

    6

    Operation

    Inserts an operation (function) step in a component.

    7

    Comment

    Inserts a Comment step in the Keyword View.



    Some of the Insert menu commands are also available from the Insert toolbar.

    View Menu Commands In QTP

    View Menu Commands


    You can manage the way that QuickTest is displayed on your screen using the following View menu commands:




    Command

    Function
    1
    Start Page

    Opens the Start Page. (Enabled only when the Start Page is closed)

    2

    Active Screen

    Displays the Active Screen. (Relevant only for tests)

    3

    Available Keywords

    Shows and hides the Available Keywords Pane.

    4

    Data Table

    Displays the Data Table. (Relevant only for tests)
     5
    Debug Viewer

    Shows and hides the Debug Viewer Pane.
     6
    Information

    Shows and hides the Information Pane.
     7
    Missing Resources

    Shows and hides the Missing Resources Pane.

    8

    Process Guidance

    Shows and hides the Process Guidance Panes.

    9

    Resources

    Shows and hides the Resources Pane.

    10

    Test Flow

    Shows and hides the Test Flow Pane. (Relevant only for tests)

    11

    To Do

    Shows and hides the To Do Pane.
     12
    Expand All

    Expands all steps in the Keyword View.
     13
    Collapse All

    Collapses all steps in the Keyword View.

    14

    Keyword View

    Displays the Keyword View if the Expert View is displayed. (Relevant only for tests)

    15

    Expert View

    Displays the Expert View if the Keyword View is displayed. (Relevant only for tests)
     16
    Toolbars

    Enables you to show and hide QuickTest toolbars.
     17
    Window Theme

    Enables you to select a theme to apply to your QuickTest window.



    Some of the View menu commands are also available from the View toolbar.

    Edit Menu Commands In QTP

    Edit Menu Commands


    You can manage your component or function library steps using the following Edit menu commands:




    Command

    Shortcut Key

    Function

    1

    Undo

    Ctrl+Z

    Reverses the last command or deletes the last entry you typed.

    2

    Redo

    Ctrl+Y

    Reverses the most recent operation of the Undo command.

    3

    Cut

    Ctrl+X

    Removes the selection from your document.

    4

    Copy

    Ctrl+C

    Copies the selection from your document.

    5

    Paste

    Ctrl+V

    Pastes the selection to your document.

    6

    Delete

    Delete

    Deletes the selection from your document.
     7
    Copy Documentation to Clipboard

    Copies the content of the Documentation column of the Keyword View, enabling you to paste it in an external application.

    8

    Action > Split Action

    Separates an action into two sibling actions or into parent-child nested actions.
     9
    Action > Rename Action

    Shift+F2

    Changes the name of an action.

    10

    Action > Delete Action

    Enables you to remove the selected call to the action, or delete the action and its calls from the active test.
     11
    Action > Action Properties

    Enables you to specify options, parameters, and associated object repositories for a stored action.
     12
    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.
     13
    Step Properties > Comment Properties

    Ctrl+Enter; Alt+Enter

    Opens the Comment Properties dialog box for a comment step. Available only when the selected step is a comment.
     14
    Step Properties > Object Properties

    Ctrl+Enter; Alt+Enter

    Opens the Object Properties dialog box for a selected object. Available only when the selected step contains a test object.
     15
    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.
     16.
    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.
     17
    Step Properties > Report Properties

    Ctrl+Enter; Alt+Enter

    Displays the Report Properties dialog box for a report step. Available only when the selected step is a Reporter.ReportEvent step.

    18

    Find

    Ctrl+F

    Searches for a specified string.

    19

    Replace

    Ctrl+H

    Searches and replaces a specified string.

    20

    Go To

    Ctrl+G

    Moves the cursor to a particular line in the component.
     21
    Bookmarks

    Ctrl+B

    Creates bookmarks in your script for easy navigation.

    22

    Advanced > Comment Block

    Ctrl+M

    Comments out the current row, or selected rows.

    23

    Advanced > Uncomment Block

    Ctrl+Shift+M

    Removes the comment formatting from the current or selected rows.

    24

    Advanced > Indent

    Tab

    Indents the step according to the tab spacing defined in the Editor Options dialog box.

    25

    Advanced > Outdent

    Backspace

    Outdents the step (reduces the indentation) according to the tab spacing defined in the Editor Options dialog box.
     26
    Advanced > Go to Function Definition

    Alt+G

    Navigates to the definition of the selected function.
     27
    Advanced > Complete Word

    Ctrl+Space

    Completes the word when you type the beginning of a VBScript method or object.
     28
    Advanced > Argument Info

    Ctrl+Shift+Space

    Displays the syntax of a method.
     29
    Advanced > Apply "With" to Script

    Ctrl+W

    Generates With statements for the action displayed in the Expert View, and enables IntelliSense within With statements.
     30
    Advanced > Remove "With" Statements

    Ctrl+Shift+W

    Converts any With statements in the action displayed in the Expert View to regular (single-line) VBScript statements.
     31
    Optional Step

    Inserts an optional step (a step that is not required to successfully complete a run session).



    Many of the Edit menu commands are also available from the Edit toolbar.

    File Menu Commands In QTP

    File Menu Commands


    You can manage your component, application area, or function library using the following File menu commands:



    Sl No
    Command

    Shortcut Key

    Function

    1.

    New > Test

    Ctrl+N

    Creates a new test.

    2.

    New > Business Component

    Ctrl+Shift+N

    Creates a new business component.

    3.

    New > Scripted Component

    Creates a new scripted component.

    4.

    New > Application Area

    Ctrl+Alt+N

    Creates a new application area.

    5.

    New > Function Library

    Shift+Alt+N

    Creates a new function library.

    6.

    Open > Test

    Ctrl+O

    Opens an existing test.

    7.

    Open > Business/Scripted Component

    Ctrl+Shift+O

    Opens an existing business or scripted component.

    8.

    Open > Application Area

    Ctrl+Alt+O

    Opens an existing application area.

    9.

    Open > Function Library

    Shift+Alt+O

    Opens an existing function library.
     10.
    Close

    Closes the active function library.
     11.
    Close All Function Libraries

    Closes all open function libraries.

    12.

    Quality Center Connection

    Opens the Quality Center Connection dialog box, enabling you to connect to a Quality Center project.

    Tip: Double-click the Quality Center icon on the status bar to manage your connection.
    Point to the Quality Center icon on the status bar to view connection information.



     13.
    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.

    14.

    Save

    Ctrl+S

    Saves the active document.
     15.
    Save As

    Opens the relevant Save dialog box so you can save the open document.

    16.

    Save Test with Resources

    Saves a standalone copy of the current test together with its resource files.

    17.

    Save All

    Saves all open documents.

    18.

    Enable Editing

    Makes read-only function libraries editable.
     19.
    Export Test to Zip File

    Ctrl+Alt+S

    Creates a zip file of the active document.
     20.
    Import Test from Zip File

    Ctrl+Alt+I

    Imports a document from a zip file.
     21.
    Convert to Scripted Component

    Ctrl+Alt+C

    Converts a business component to a scripted component.

    22.

    Print

    Ctrl+P

    Prints the active document.
     23.
    Print Preview

    Displays the Keyword View as it will look when printed and enables you to modify the page setup.

    24.

    Settings

    Opens the Settings dialog box, enabling you to define settings for the open document. (Not relevant for function libraries)
     25.
    Process Guidance Management

    Opens the Process Guidance Management dialog box, enabling you to manage the list of processes that are available in QuickTest.
     26.
    Change Application Area

    Enables you to associate the component with a different application area.
     27.
    Associate Library '' with ''

    Associates the active function library with the open document. (Available only from function libraries)
     28.
    Recent Files

    Lists the recently viewed files.
     29.
    Exit

    Closes the QuickTest session.



    Many of the File menu commands are also available from the Standard toolbar.