Test Designer drag-and-drop feature
In NX Test Designer, one of the most powerful features is the drag-and-drop functionality.
You can drag-and-drop test groups and test lines in the following ways:
- Within a test - In the P1 or P2 Properties pane, place the cursor on an item in the test and drag it to another position on the same test.
- From the Toolbox to a test - Place the cursor on a Toolbox item, drag the item to the test in the P1 or P2 Properties pane, and position it where you want it to appear on the test.
- From one test to another - In the P1 or P2 Properties pane, place the cursor on an item and drag it to the test in the other pane and position it where you want it to appear.
- ► Drag and drop items
-
- In the Properties pane or the Toolbox, place the cursor on the Test Group or Test line to be moved and press and hold the left mouse button.

- Drag the item in the direction where you want it to go. The item being dragged becomes partly opaque and looks like a shadow of the original, and it is outlined with a red dashed line. If an arrow displays that points up or down, you can drag the item in that direction. If no up arrow or down arrow displays, you cannot drag the item in that direction.

- When the item is dragged over a possible target, the target is outlined with a red dashed line. An arrow displays, indicating if the dragged item will go before or after the target that the item has been dragged over. In this example the Client Type is being moved to appear below the Disenrollment Date.

- The arrow may change from down to up or up to down, indicating the item can be moved in either direction.

When the item is positioned, release the mouse button. In this example, the Client Type now appears below the Disenrollment Date. The moved item, Client Type, and the items affected by its move display in blue and bold to indicate the order of items has been modified.

Important:
- If you drag an item and no arrow displays, you cannot move the item in that direction.
- When you move an item within a test or from one test to another, the item is modified because its order has changed in the group.
- If the items at a level are collapsed, as with the Test Group in the following example, there are no arrows available to drag-and-drop items. You must expand the item, in this case the Test Group, to drag-and-drop an item into the group.

- In the Properties pane or the Toolbox, place the cursor on the Test Group or Test line to be moved and press and hold the left mouse button.
- ► Move a test group or test line within a test
-
Dragging an item within the same test will initiate a move.
- In Pane 1 or Pane 2, left-click on a test group or test line and press and hold the left mouse button.
- Drag the item in the direction where you want it to move.
When the item is dragged over a possible target, the target is outlined with dashes and an arrow displays, indicating if the item can be moved before or after the target item. In this example the Indications Test Group is being moved before the Status Test Group.

- Once you have positioned the item where you want it to appear and the arrow is pointing correctly either up or down, release the mouse button. This will move the test group or test line automatically and renumber the line order. If you dragged a test line from one test group to another group, the group membership of the test line will also be updated automatically.
- As you can see in the following example, the Status Test Group has been modified (text emphasized in blue and bold) because the Indications Test Group was moved to the position above the Status Test Group.

- Expand the new test group or test line and complete the required fields.
- In the toolbar click Save to save the changes and refresh the test.
- ► Move a test group or test line from one test to another
-
Dragging a test group or test line from one test to another will initiate a copy.
- In Pane 1 or Pane 2, left-click on a test group or test line and press and hold the left mouse button.
- Drag the item to a location on the test in the other pane.

- Once you have positioned the item where you want it to appear and the arrow is pointing correctly either up or down, release the mouse button. This will copy the test group or test line with new identifiers and automatically renumber the line order. If you dragged a test line from one group to another group, the group membership of the test line will also be updated automatically.
- As you can see in the following example, the Suicide Risk Assessment test group that was copied displays as green and bold to indicate it is a new test group on the test it was copied to.

- Expand the new test group or test line and update the required information (identified by a red asterisk) and optionally any other information as desired.

- In the toolbar click Save to save the changes and refresh the test.
- ► Create a new test group or test line
-
Moving a Toolbox item onto a test automatically adds a new item.
- In the Toolbox, place the cursor over the item and left-click and press and hold the left mouse button.
- Drag the item to a form in Pane 1 or Pane 2.
When the item is dragged over a possible target, the target is outlined with dashes and an arrow displays, indicating the item will go before or after the target item.

- Once you have positioned the item where you want it to appear and the arrow is pointing correctly either up or down, release the mouse button. This will create the item with new identifiers and automatically renumber the line order.
- As you can see in the following example, the test group that was created appears as green, which indicates it is a new item.

- Expand the new test group or test line and complete the required fields.
- In the toolbar click Save to save the changes and refresh the test.
- ► Remove a drag-and-drop item
-
To remove an item you dragged and dropped on a test, in the line click Actions and select Delete.
To cancel all changes to a test, in the toolbar click Cancel.
Note: You must select Cancel prior to saving the test. Once you save the changes to a test, you cannot undo a drag-and-drop action.
