Dashboard > uDig > Home > Procedures > Release Editing Testing procedure
uDig
Release Editing Testing procedure
Added by Jesse Eichar , last edited by Jesse Eichar on Mar 08, 2006  (view change)
Labels: 
(None)

A note to future developers. Since many of the tools share behaviours the first test sequence will test most functionality so it will be the longest. For the rest of the test sequences only the new functionality for the tools need to be tested. For example you will only need to test geometry move once. However undo/redo needs to be tested for every functionality.

Setup

  1. Create new map
  2. Add bc_lakes
  3. Add bc_rivers
  4. Add bc_hospitals
  5. Create a new Layer called "New Layer". Make sure the layer has the geometry type "Geometry"
  6. Select bc_lakes

Test Polygon Tool

  1. Select edit tool category and make sure create line and create point tools are disabled.
  2. Create a lake. (double-click to accept, dont' click over first vertex)
    1. Click to add vertices (don't click over geometry)
  3. Undo the creation. Undo as expected?
  4. Redo the creation. Redo to original?
  5. Rollback. No funny artifacts? Refreshed ok?
  6. Create Lake.
    1. Click over start vertex to finish.
  7. Commit
  8. Rollback
  9. Refresh (is new lake still there?)
  10. Select Delete Tool
  11. Delete Lake
  12. Commit
  13. Create a lake and cut a hole in it with the hole cutting tool.
  14. Change back to Polygon Create Tool
  15. Select a geometry
  16. Drag vertex. Does Geometry change shape?
  17. Ctrl-Click a different vertex. Are 2 vertices select?
  18. Ctrl-Click same vertex. Has it been deselected?
  19. Shift-Click vertex. Is it selected again?
  20. Shift-Click vertex. Is it still selected? (It should be)
  21. Drag vertex. Do both vertices move?
  22. Drag a box to select a few (but not all) vertices
  23. Drag a selected vertex. Are all selected vertices moved?
  24. Undo all changes.
  25. Redo all changes.
  26. Select all vertices (drag box to include all vertices)
  27. Click in center of geometry and drag. Entire geometry should move including hole/island.
  28. Undo move
  29. Redo move
  30. Click out side of geometry. No selected vertices? Is rendering updated?
  31. Select Geometry again.
  32. CTRL-ALT-click in geometry and drag (hold down keys). Does entire geometry move?
  33. Double click. Is the rendering updated?
  34. Click on edge (not vertex). Is a new vertex created?
  35. Undo.
  36. Redo.
  37. Select New vertex. Edit>Delete (Is vertex deleted?)
  38. Undo.
  39. Redo.
  40. Select many vertices. Edit>Delete (Are all deleted?)
  41. Undo.
  42. Redo.
  43. Undo.

Test Line Tool

  1. Select bc_rivers
  2. Check to make sure that Create Point, Create Polygon tools are disabled.
  3. Create a river.
  4. Undo the creation. Undo as expected?
  5. Redo the creation. Redo to original?
  6. Rollback. No funny artifacts? Refreshed ok?
  7. Create a river.
  8. Commit
  9. Rollback (is new riverstill there?)
  10. Select Delete Tool
  11. Delete River
  12. Commit
  13. Select a geometry
  14. Drag vertex. Does Geometry change shape?
  15. Ctrl-Click a different vertex. Are 2 vertices select?
  16. Drag vertex. Do both vertices move?
  17. Double click. Is the rendering updated?

Test Point Tool

  1. Select bc_hospitals
  2. Check to make sure that Create Line, Create Polygon, FreeHand draw tools are disabled.
  3. Create a point.
  4. Create another point.
  5. Undo the creation. Undo as expected?
  6. Redo the creation. Redo to original?
  7. Rollback. No funny artifacts? Refreshed ok?
  8. Create a point.
  9. Commit
  10. Rollback (is new point still there?)
  11. Select Delete Tool
  12. Delete point
  13. Commit
  14. Select a geometry
  15. Drag vertex. Does point move?
  16. Double click. Is the rendering updated?

Test FreeHand Tool

  1. Select bc_lakes layer
  2. Click point. (Make sure nothing happens)
  3. Draw a shape within an existing Feature.
  4. Double click (Is a hole created?)
  5. Draw a shape not over an existing feature (IE blank area)
  6. Double click (is new feature created?) (is editing outline gone?)
  7. Undo (is outline visible again?) (has rendering of feature disappeared?)
  8. Undo (has edit out line disappeared?)
  9. Undo (has hole been removed?)
  10. Redo so that hole and feature are both there.
  11. Select bc_rivers
  12. Draw river
  13. double click (has a new river been created and edit outline gone?)
  14. Click point. (Make sure nothing happens)
  15. Undo (has river been undone?)
  16. Redo (river is back?)
  17. Continue river by starting a new line on one end point of the river.
  18. Continue river on other end of river
  19. Undo.
  20. Undo.
  21. Redo.
  22. Redo.
  23. Select "New Layer"
  24. Draw a line.
  25. Draw a Polygon. (is Polygon filled?)
  26. Activate Select tool
  27. Select 1st line drawn
  28. Activate FreeHandTool
  29. Turn Line into Polygon.
  30. Undo (is polygon turned back into line?)
  31. Undo(Is line unselected an previous polygon selected)
  32. Undo
  33. Undo
  34. Redo until all undos are redone.
  35. Click a point (Is a point created?)
  36. Turn Point into line
  37. Turn Line into a polygon.
  38. undo and redo last 3 steps.

Test Hole Tool

  1. Select bc_rivers (Make sure hole tool is not available)
  2. Select bc_lakes
  3. Select Hole Tool
  4. Click away from any polygon (Nothing selected)
  5. Draw polygon within polygon.
  6. Double click. (Is hole created?)
  7. draw a polygon that starts within a polygon but goes outside of polygon. (This should not be allowed to commit.)
  8. Click within a hole. (This should select hole.)
  9. Move vertex of hole.
  10. Double click (Hole modified?)

Test Rectangle Tool

  1. Select bc_lakes
  2. Activate Rectangle Tool
  3. Draw Rectangle (Is new Rectangle automatically created?)
  4. Draw new Rectangle (Is rectangle created again?
  5. Undo/Redo testing
  6. Select bc_rivers
  7. Draw Rectangle (Make sure a rectangle is drawn)

Test Ellipse Tool

  1. Select bc_lakes
  2. Activate Ellipse Tool
  3. Draw Rectangle (Is new Ellipseautomatically created?)
  4. Draw new Ellipse(Is Ellipsecreated again?
  5. Undo/Redo testing
  6. Select bc_rivers
  7. Draw Ellipse (Make sure a Ellipseis drawn)

Test Select Tool

  1. Select a point
  2. select a line
  3. select a polygon
  4. Select a polygon with a hole. (Can hole be edited?)

Test Split Tool

  1. Split polygon without hole
  2. Move both parts to ensure proper split.
  3. Split polygon with hole (make sure hole is split)
  4. Test Undo/Redo
  5. Move both parts to ensure proper split.
  6. Split polygon against a multiple vertex polygon.
  7. Test Undo/Redo
  8. Move all parts to ensure proper split.
  9. Split polygon with hole with multi vertex line. (Make sure hole is not split)
  10. Test Undo/Redo
  11. Move all parts.
  12. Create split line that splits multiple polygons.
  13. Test Undo/Redo
  14. Move all parts
  15. Draw split line that intersects nothing.
  16. Add countries layer
  17. Split Canada
  18. Test Undo/Redo
  19. Move Parts

Test Difference Tool

  1. Select countries layer
  2. Create a polygon fills in the mediteranean sea using Diff Tool.
  3. Test Undo/Redo
  4. Delete Switzerland
  5. Fill in area of switzerland using Diff Tool

Powered by a free Atlassian Confluence Open Source Project License granted to uDig. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7.1, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators
User-friendly Desktop Internet GIS