DbViZ / Version: <1.0>
Test Case: Undo/Redo / Date: 8/May/2003

DbViZ

Test Case: Undo/Redo

Identifier Number: b7

Category: Functional, Volume

Version 1.0

Revision History

Date / Version / Description / Author
8/May/2003 / 1.0 / Initial Version / Ross Paul

Test Case: Undo/Redo

1.Introduction

This test case is used to test the functionality of the system when it undergoes many undo and redo’s.

2.Flow of Events

  1. Start dbViZ and import a SQL schema diagram. Choose the “FDC2.SQL” file
  2. After the schema imports, the diagram should appear with the tables listed on the left.
  3. Confirm that undo and redo are disabled by selecting Edit
  4. Undo and redo should be grayed out and unselectable.
  5. Add the first five tables to the diagram by selected them in the table list on the left
  6. Five tables will stack on top of each other in the top left of the diagram.
  7. Undo all five adds by selecting Edit->Undo or pressing CTRL-Z five times.
  8. After each Undo one table should disappear.
  9. Redo adding two tables by selecting Edit->Redo or pressing CTRL-Y two times
  10. The first two tables will be re-added
  11. Select and move one of the tables.
  12. Table will be moved. This action should clear the redo-queue so that only undo is now enabled. This can be confirmed by looking in the Edit menu.
  13. Add a connected table by selecting a table from the connected tables list.
  14. The connected table will be added and the connection will be drawn.
  15. Undo adding the connected table by selecting Edit->Undo or pressing CTRL-Z.
  16. The connected table will be removed.
  17. Add five more tables to the diagram.
  18. Tables will appear in the top right of the diagram.
  19. Repeatedly move the tables to various parts of the diagram by dragging them around. Move each table at least twice.
  20. The tables will be dragged around and the diagram will become more spaced.
  21. Undo all previous actions by repeatedly selecting Edit->Undo or pressing CTRL-Z.
  22. All moves will be undone and eventually all tables will be removed from the diagram. The order of the undos will occur in the order the actions occurred.
  23. Redo all of the actions by repeatedly selecting Edit->Redo or pressing CTRL-Y.
  24. All of the undo’s will be redone and the diagram will be returned to the state it was in as of action 10.
  25. Open another diagram and add a number of tables.
  26. Two diagrams will be active (represented by two different tabs). When either are selected Undo will be enabled and redo will be disabled.
  27. Select the first diagram and select Edit->Undo or press CTRL-Z.
  28. The last edit to the FIRST diagram will be undone, the last edit to the second diagram (the most recent edit) will remain in place. When the first diagram is selected, Undo and Redo will be enabled. When the second diagram is selected, only Undo will be enabled.

Confidential / UIUC, 2018 / Page 1