-
Notifications
You must be signed in to change notification settings - Fork 35
testplan
''work in progress''
- A PostgreSQL database to use as the Flamingo configuration schema
- An Oracle database to use as the Flamingo configuration schema
- A SQL Server 2017 database to use as the Flamingo configuration schema
- Flamingo-MC installed on a test server
- A Postgis datasource, it is important that the dataset provides for the possibility to create joins and relates in Flamingo. Make sure that the data has a primary key, ideally data should not be privacy sensitive.
- A geoserver instance configured to serve WMS/WFS of some map layers from the datasource Postgis datasource. It can be useful to have an SQL dump and a copy of the required SLD and other required workspace documents in eg. a Github repository.
Below are some constraints for this plan.
- Only the OpenLayers 2 variant of the components will be tested.
- Mashups and publishing will not be tested.
- Primary focus of tests is the viewer side of things, test expectations in the viewer will implicitly test the viewer-admin part as well.
- Testers are expected to document the setup so it can be reproduced, a schema dump of a specific situation is acceptable.
Issues should be reported in the Github tracker using the provided template. Note that some requested fields in the template may not be useful as part of your report, eg. a server log may be useless in solving a browser specific issue and detailed browser information is generally only useful if errant behaviour is specific to that browser version or vendor.
These should be done as part of the Flamingo installation and both Oracle and PostgreSQL databases. The goal of these tests is to determine if the installation is error-free and the automatic database initialisation works as expected.
Check that the viewer.log
and viewer-admin.log
are error free.
Check that the configuration database is functional and contains the proper tables after starting Flamingo.
Check that you can login using the well-known admin credentials
Check that you can create users and groups in the viewer-admin
The below steps should succeed error-free (check log files and browser messages)
- In the viewer-admin setup the test layers and data sources.
- Create a one-to-many relation for one of the attribute sources.
- Create a join for one of the attribute sources.
- Create an application with some basic components and a map of the test layers.
The following tools are availble, note that some of these are implicitly added to a map.
- should zoom the map to the full extent
- should zoom the map to maximum extent if the viewer has one configured
- …
To be tested in conjunction with the FeatureInfo component.
- clicking on a feature form a layer that has featureinfo configured should show a popup
- should enable measure mode on the map for length
- should enable measure mode on the map for area
Test in conjunction with PreviousExtent tool
- should restore the viewport to the previous one after jumping back
- should make it possible to move the map around without zooming
Test in conjunction with NextExtent and Pan tool
- should restore the viewport to the previous one after zooming or panning
- …
- should zoom in the map with a specified factor
- should zoom in the map using a draw-box
- should zoom out the map with a specified factor
For each of the listed components:
- add the component to an application
- configure the component for one or more layers
- test if functionality matches expectations in the viewer
Note that some components cannot be used stand-alone and that some components can be used in conjunction with another component. Also keep in mind that some components can be docked as a panel as well as a button.
The AttributeList component should be tested in conjuntion with the FeatureInfo component.
Uses endpoint/actionbean:
- LayerListActionBean
- AttributesActionBean
- FeatureExtentActionBean
- DownloadFeaturesActionBean
- should open on button-click
- zoom-to-feature should work
- 10 attributes should be listed with paging available
- export to configured format should work
- for a source with related attribures an expansion button should show and related features should be retrieved after clicking
- …
Uses endpoint/actionbean:
- BookmarkActionBean
- a created bookmark should restore the viewer to the known state
- a created bookmark should show in the viewer-admin > Beheer bookmarks" page
- …
The Buffer component should be tested with the DataSelection
Uses endpoint/actionbean:
- LayerListActionBean
- BufferActionBean
- should draw a buffer of requested colour and dimensions on the map
- …
- when used with a selection, only the selected features should be buffered
Uses endpoint/actionbean:
- none
- on clicking the map a window should open with the configured URL
- …
Uses endpoint/actionbean:
- FeatureInfoActionBean
- CycloramaActionBean
- on clicking an appropriate feature on the map should pop up a window with the relevant cyclorama loaded
- …
TODO
- …
TODO This component allows for searching various types of service, each service should be tested (OpenLS, ArcGISRest, Solr, PDOK Adreszoeker, Eenvoudig)
Most of this component overlaps with the Search component; when one is tested thoroughly, th eother may be tested cursorily.
Uses endpoint/actionbean:
- SearchActionBean
- should aloow seaching in the specified resource
- …
Uses endpoint/actionbean:
- none
- should show the configured disclaimer in a popover when opening the view
- should no longer show the configured disclaimer after the user chose this option
Uses endpoint/actionbean:
- none
- should add a divider to the "leftmenu" buttons
- …
Uses endpoint/actionbean:
- DrawingActionBean
- opening the controls should enable "red-line" drawing and labeling on the map
- after drawing it should be possible to save the drawing as a local file
- it should be possible to load a local drawing file into the map
- …
- When the snapping is active the drawing cursor should 'jump' to a vertex or line segment of the active snapping layer
The Edit component can be used standalone as well as integrated with the
Uses endpoint/actionbean:
- LayerListActionBean
- AttributesActionBean
- EditFeatureActionBean
- FeatureInfoActionBean (optional)
- should have configured options for new/copy/edit/remove feature
- can add a new feature
- can copy a feature
- can edit a feature
- can delete a feature
- can choose attribute from provided list
- can choose attribute from configured DB list
- …
- When the snapping is active the cursor should 'jump' to a vertex or line segment of the active snapping layer
- should show a link to edit an identified feature
- …
The featureinfo component can be setup in a standalone way but can also provide for integrations with some other components (AttributeList, , ...).
Uses endpoint/actionbean:
- AttributesActionBean
- FeatureInfoActionBean
- after clicking the map should show a popup with configured information
- popup should have a "more" link which succesfully opens a window with configured attributes
- should show a link to open the attribute list with correct feature
- should show a link to open an edit form with correct feature
- should show a link to create detail report
- should provide a PDF after clicking
- the produced PDF should use the configured template
- the report should show related feature data
Uses endpoint/actionbean:
- FeatureReportActionBean
- PrintActionBean
- PrintGenerator
This component cannot be used standalone, see the tests described at associated FeatureInfo component which is required for this component.
- …
Can be docked into multiple positions of the viewer (left/right bottom/top) margin and map.
Uses endpoint/actionbean:
- none
- should display help document to user
- …
Can be docked into multiple positions of the viewer (left/right bottom/top) margin, header, footer and map.
Uses endpoint/actionbean:
- none
- should display document to user
- …
TODO This component interacts with filter aware components such as the AttributeList and DataSelection components.
Uses endpoint/actionbean:
- LayerListActionBean
- FeatureInfoActionBean
- SldActionBean
- …
TODO
Uses endpoint/actionbean:
- AttributesActionBean
- present a dropdown with the base layers of the map so one can be chosen
- when selecting a layer and the TOC is present, the TOC should update
- …
Uses endpoint/actionbean:
- LayerListActionBean
- AttributesActionBean ?
- …
Uses endpoint/actionbean:
- AttributesActionBean
- FeatureInfoActionBean
- should show a maptip on hovering over a feature of the configured layer
- …
The Merge component has two different merge policies: "replace" and "new", the former replaces the A feature with the merge result and deletes B, the latter creates a new feature and deletes both the A and B feature.
Uses endpoint/actionbean:
- LayerListActionBean
- FeatureInfoActionBean
- MergeFeaturesActionBean
- should be able to select A and B feature
- should be able to merge according to configured policy
Uses endpoint/actionbean:
- none
- should show an overview as configured
Uses endpoint/actionbean:
- PrintActionBean
- PrintGenerator
- should be possible to configure various formats
- print should be of specified format
- …
TODO This component allows for searching various types of service, each service should be tested (OpenLS, ArcGISRest, Solr, PDOK Adreszoeker, Eenvoudig)
Most of this component overlaps with the DirectSearch component; when one is tested thoroughly, th eother may be tested cursorily.
Uses endpoint/actionbean:
- SearchActionBean
- should aloow seaching in the specified resource
- …
TODO
- …
A large variance of filter can be configured, the expectentions should added below
Uses endpoint/actionbean:
- UniqueValuesActionBean
- SldActionBean
- should be possible to execute filter
- …
The snapping component can only be used in conjunction with a drawing component such as the Edit or Drawing components.
Uses endpoint/actionbean:
- AttributesActionBean
- the component should show the configured vector layers
- vector data should load (both WFS and JDBC sorces)
- vector data should be drawn in configured colour
See the Edit and Drawing component expectations
Uses endpoint/actionbean:
- LayerListActionBean
- SldActionBean
- BufferActionBean
- should allow setting a spatial filter by drawing a geometry
- should allow setting a spatial filter by selecting a geometry from a source layer
The Merge component has two different merge policies: "replace" and "add", the former replaces the source feature geometry with the largest split result other parts are added as new feature, the latter deletes the source feature and creates new features.
Uses endpoint/actionbean:
- LayerListActionBean
- FeatureInfoActionBean
- SplitFeatureActionBean
- should allow selecting to-split feature
- should allow drawing split line
- should allow splitting feature
Uses endpoint/actionbean:
- none
- after clicking the map should open a popup with the available Google streetview image
- …
Test in conjunction with Legend component
- can switch map layer on/off
- "zoom naar schaal" works
- shows legend when configured
- shows metadata window (when configured)
- …
Uses endpoint/actionbean:
- none
- should enable changing the transparency of the configured layer
- …
Uses endpoint/actionbean:
- none
- clicking on + or - button zooms map in/out
- …