Categories

Netsparker Web Application Security Scanner

Exercise 2: Brief explanation of how Keyword view works - UFT/QTP Training Tutorial 11.3

In today’s Exercise 2 article you will learn how to transfer an Action or Component Step, how to delete a Step, insert and remove the Breakpoints and check properties of Step Elements.

In Keyword view, how to transfer an Action or Component Step

Here, you will see how to transfer a step to a different place within an action or component.

This has been done by following steps,

  • Drag and drop a step
  • Copy/cut and paste a step

 

1) Drag and drop a step: In this method, just go to the Item column, hold the step and drag it up or down and drop it at the vital place within the action or component. A line displays when you drag a selected step, indicate the location to which the step will be moved.

In case of action, dragging a step, displays in the new position within its parent object. The parent gets duplicated while moving a step from one parent object to a different parent object.

2) Copy/cut and paste a step: Copy or cut the step from the Clipboard and paste it in-to the essential place.

 
Exercise2-how Keyword view works
 

Moving, coping, or cutting an action step, will also move, copy, or cut all of its sub-steps, if any.

 

Copy (Edit > Copy or CTRL + C), Cut (Edit > Cut or CTRL + X), and Paste (Edit > Paste or CTRL + V)

 

In Keyword view, how to delete a Step

Here, you will see how to delete steps. This has been done by following steps:

  • Prerequisites
  • Delete the step

 

1. Prerequisites: Ensures that eliminating the step will not stop the action or component from running correctly.

In case of action, a step has both an operation and sub-steps defined for it. From given below example, you can select whether to delete only the step comprising the operation of the item, or to delete the step and all of its sub-steps.

 

how Keyword view works 4

 

2. Delete the step: First, choose the step that you want to delete, and then go to Edit > Delete, press the DELETE key from keyboard, or right-click the step and choose Delete from the shortcut menu. A confirmation message opens.

To copy an action or all of the actions from the list to the Windows Clipboard:Choose the applicable actions from the list and then right-click to choose Copy Selected, or press “CTRL+C” on your keyboard.

Next, click on the “Delete” Step to delete the action or component. User cannot delete a step, if one of its cells is in edit mode.

In keyword view, how to insert and remove the Breakpoints

Here, you will see that how to insert and remove breakpoints. In the Keyword View, placing a break point in a step, will also display in the Editor (for actions and scripted components), and vice versa.

 

This has been done by following steps,

  • Insert a break point in the Keyword View
  • Remove a break point from the Keyword View

 

1) Insert a break point in the Keyword View by,

  • Clicking on the left margin at the point where you want to insert the break point.
  • Selecting a step and press F9
  • Selecting Run > Insert/Remove Break point. A red break point icon displays

In UFT, the break point will be automatically placed next to the appropriate item for the step. The given below example shows the insertion a Break point in an Action. If you click next to the Welcome: Mercury browser or page item, the break point will be automatically inserted next to the “username”edit item, where the step performs, automatically.

 

If you collapse items, the break point will icons remain in the left margin next to the closest visible item, so you can see that the test contains breakpoints.

 

how Keyword view works 5

 

2) Remove a break point from the Keyword View

To do this,

  • Click on the break point icon.
  • Choose a step and press F9.
  • Go to Run > Insert/Remove Break point

 

In keyword view, how to see properties of Step Elements

To view properties a step, right-click on the selected item of a step whose properties you want to see, and choice the appropriate option from the context menu, like; you can view object properties, action properties, action call properties, check point properties, and output value properties.

 

You can get the Step properties option from the Step menu or the shortcut menu by right-clicking the step item. The Step that contain a check point or output value on a test object, right-click on it, you will get an object properties and checkpoint or output value properties for the current object and checkpoint or output value.

 

Right-clicking on an action facilitates you to choose the view action properties or action call properties for the current action.

 

 

Other Tutorial Series

 

1 comment to Exercise2: Brief explanation of how Keyword view works – UFT/QTP Training Tutorial 11.3

  • Kavya

    thanks for giving this information……

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>