Splitting an Action in QTP
Posted By Lax on March 01st, 2009 in QTP Lessons
QuickTest enables you to Split an Action that is stored within a Test into two independent Actions or into parent-child nested actions.

To split an action:
- In KEYWORD VIEW, click the SPLIT ACTION button on the Toolbar, or in the ITEM column, right-click the step from where you want to split the action, and select ACTION ? SPLIT. The SPLIT ACTION dialog box appears.
- In the THE ACTIONS ARE section, select one of the following Options:
– INDEPENDENT OF EACH OTHER: Creates two new independent actions.
– NESTED: Creates parent and child actions, where the last step in the parent action calls the child action. - In the 1ST ACTION section, in the NAME field, type a name for the first action.
- In the 2ND ACTION section, in the NAME field, type a name for the second action.
- Click OK to close the SPLIT ACTION dialog box. In KEYWORD VIEW, you can view the two new actions.
Note:When you split an action, a copy of the Local Object Repository is created for each action. If there is a change in the object properties, you may have to edit multiple object repositories causing maintenance problems.
Similar Posts: QTP Lessons
