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.

0 comments:

Post a Comment