Skip to content
Remi-C edited this page Feb 23, 2015 · 1 revision

Development tests

The tests are not automated.

###qgis gui

  • opening qgis plugin gui should automatically update the list for tracking layer

###qgis gui

  • Open qgis plugin gui
  • the field to select layer for tracking should be updated, even if the default layer doesn't exist (camera_postion)

###Correctly loading/using pluggin GUI in QGIS

  • no error when clicking on plugin icone/ OK/cancel/close the popup
  • state correctly saved when clicking on OK/cancel/close the popup

###dealing with exception from database

  • producing the error :
    • load the layer test.error_on_update
    • any edition of this layer in qgis will return an error message
  • test :
    • the pluggin shouldn't enter into an infinite loop
    • the pluggin should correctly display the message, so it is readable without any supplementary

Advanced exception management

  • producing the error (infinite loop)
    • desactivate StreetGen
    • load the layer test.error_on_update
    • pass in edition mode, then edit whatever feature
    • don't save the edit
    • click on another layer
    • activate streetgen
  • test :
    • the pluggin shouldn't enter into infinite loop

###Camera tracking

  • inserted camera position should not be automatically selected
  • inserted camera position should work whatever the project src choosen.
    • capture the rectangle geometry in the project srs, then convert it into the tracking layer srs

###QGIS general

  • producing the error (layer name flashing)
    • select a layer
    • activate street gen
    • press Control key
  • expected :
    • pressing the "Control" key doesn't make the selected layer blue selection switch on of continuously (clignotement)

###Response time in edition

  • prdocuing the error (very long delay to update radius)
    • activate street gen
    • choose layer "edition_rayon_RADIUS"
    • edit mode
    • change attribute tool
    • click on a cirlcce center (digits above)

critical Development tests

###Correctly dealing with project without layers

  • producing the error (python stack, infinite, must kill qgis)
    • in an empty project, or a project containing only folders, and no layers
    • activate streetgen features
  • test :
    • activating/desactivating plugin in empty project works.

Clone this wiki locally