Saturday, November 28, 2009

18. Split Action:

You can split an action that is stored with your test into two sibling actions or into parent-child nested actions. When you split an action, the second action starts with the step that is selected when you perform the split action operation.

You cannot split an action and the option is disabled when:

  • an external action is selected
  • the first step of an action is selected
  • recording a test
  • running a test
  • you are working with a read-only test

When you split an action in your test that uses a local object repository:

  • Quick Test makes a copy of the local object repository.
  • The two actions have identical local object repositories containing all of the objects that were in the original local object repository.
  • If you add objects to one of the split actions, the new objects are added only to the corresponding local object repository.

To Split an Action:

Step 1: Enter the Script for the particular application.

Step 2: Insert the Cursor on the Particular line you want to split.

Step 3: Select Edit>Action>Split Action.

Step 4: The Split Action dialog box appears.

Step 5: In the Action 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.

Step 6: In the 1st Action Section, in the Name field, type a name for the first action.

Step 7: In the 2nd Action Section, in the Name field, type a name for the second action.

Step 8: Click OK to close the Split Action dialog box.

Step 9: Analyze the Result for Split Action.

No comments:

Post a Comment