Open SPlanzer opened 4 years ago
Below are notes for connecting to the test environment before performing the plugin software tests as part of User Acceptance Testing (UAT)
The test database has been deployed to the usual development server. As to obscure its name in this public comment rather than its full name it will be referred to as devxxxxxxxxxxxx (or thereabouts, total xxx's are not indicative of the names length)
The test DB name on the server is gazetteer_20200826
As each QGIS user profile contains isolated settings, plugins and history they are great for isolating settings for different workflows. As the below steps will have you changing QGIS settings it is recommended you create a new user profile for testing.
You can switch between user profiles by selecting them in the Settings
> User Profiles
menu.
For more on profiles please see the QGIS Documentation
A test version of the NZGB QGIS3 plugin (2.0.0-UAT) has been released and is ready to be installed into QGIS
The NZGB plugin UAT version is available on the LINZ development plugin server. The server's address (https://plugins.qgis.linz.govt.nz/v1/dev/plugins.xml) needs to be added to the QGIS plugin configuration.
To configure QGIS to be able to install plugins from the LINZ plugin server.
Settings
> Manage and Install Plugins
from the top menu barSettings
Add
buttonname
fieldURL
fieldOk
Reload Repository
To install the plugin
Not Installed
For more on this see the QGIS docs that have more detailed instructions.
The plugin is hard coded to connect to the production server. Connecting to this server during testing would be a very negative experience.
To connect to the test server we must overwrite the QGIS environment variables with the test DB information.
This can be done using the QGIS interface to overwrite the database connection variables.
Settings
> Options
from the main toolbar System
tabEnvironment
- this is were we will update the DB connectionWhile we are in the options window, Python macros must be enabled to ensure the plugin runs
General
tabEnable Macros
select "Always (Not Recommended)"
Restart QGIS so that changes take affect.
This is very important to ensure we are not connected to the default production environment. Being connected to the production environment during testing would be very bad.
Plugins
> Gazetteer editor
> about gazetteer application
.
This must include the below:
Database connection info:
Getting the plugin
Configuring the plugin
Allow the use of python macros