Skip to content
Pedro R. Andrade edited this page Nov 30, 2017 · 17 revisions

Visual Tests

This document describes the visual tests for publish package. It uses some applications available within the package, therefore create them before executing the tests.

Create the projects of publish package by running:

terrame -package publish -projects

For each application below, create them in a local directory by running:

terrame -package publish -example arapiuns
terrame -package publish -example brazil
terrame -package publish -example caragua
terrame -package publish -example vegetation
terrame -package publish -example wms

Arapiuns Application

Test procedure Expected results
Open application An initial pop-up with the description of the application will be shown.
Press Ok Arapiuns application will be shown with two Layers: Trajectory and Villages. The Trajectory will be selected and a moving arrow is shown in the screen along the Trajectory's line. Villages are shown as houses or trees.
Click in Villages Legend with two symbols will be shown for the villages.
Click in a village A report will be shown in a pop-up with a photo and some text.
Click in Close The pop-up will be closed.
Click in another village Another report will be shown in a pop-up with a photo and some text.
Click in the Map The pop-up will be closed.
Click in Download Data will be downloaded in a zip format.
Unzip the file and open it into a GIS The same data of villages will be displayed.

Brazil Application

Test procedure Expected results
Open application An initial pop-up with the description of the application will be shown.
Press Ok Brazil application will be shown with three boxes in the left side. From top to bottom, the first one has two Layers, states and biomes. Biomes will be selected, with a blue box around it. There is one checkbox for each Layer, and there is no intersection between the checkbox and the layer name or the box around the selected layer. The description of biomes is shown in the second box. A legend with each of the six biomes is shown in a third box. In the map, the biomes will be shown with the same colors as defined in the legend. The states are also shown.
Uncheck Layer Biomes The biomes will no longer be shown. Only the states now are shown in yellow.
Click in States The Second box will be updated to the description of states and the legend will have only one value: yellow.
Uncheck Layer States No additional map will be shown on top of Google Maps data.
Check the biomes again Biomes will be shown, together with their description and legend.
Click in a biome A small pop-up will be shown with a photo of the biome and a wikipedia link.
Click in the link A wikipedia webpage will be opened in a new tab with a page related to the biome.
Close the new tab and then press Close The biomes will be shown again.

Caragua Application

Test procedure Expected results
Open application An initial pop-up with the description of the application will be shown.
Press Ok Caragua application will be shown. There are five Layers, grouped into three items: Border, Occupational Classes, and Social Classes. Three Layers are selected: Regions, Occupational Classes 2010, and Social Classes 2025.
Click in the checkbox of Regions The Regions will be displayed and the checkbox of Limit will be unchecked.
Click in a region A pop-up will be shown with the report of a region.
Click in Close The pop-up will be closed.

Vegetation Application

Test procedure Expected results
Open application An initial pop-up with the description of the application will be shown.
Press Ok. An application covering Brazil will be shown. There are several polygons created from pixels. The legend has seven colors.

WMS Application

Test procedure Expected results
Open application An initial pop-up with the description of the application will be shown.
Press Ok An application with a Map of Brazilian municipalities will be shown. It has only one Layer and three colors in the Legend.
Click in the button to zoom in The map will be updated with a better resolution.
Click in the button to zoom in again The map will be updated with a better resolution again.
Unselect the WMS checkbox Only Google Maps data will be shown.
Select the checkbox again Brazilian cities will be shown again.

Itens que nao funcionam nos testes

(Pode ser que existam erros adicionais)

Firefox (Mac e Linux)

  1. Não é possível desmarcar um layer. Toda vez que o checkbox recebe um clique, funciona como se o usuario estivesse clicado no nome do layer.

Firefox (Linux)

  1. Os biomas estao sendo mostrados usando apenas uma cor, e nao coloridos no mapa como esta na legenda.

Google Chrome (Mac)

  1. Não mostra os mapas, mostra apenas as caixas laterais, e funcionam de forma correta.

Safari (Mac)

  1. O checkbox dos Layers é muito grande, e por isto tem sobreposição tanto com a caixa ao redor do layer quanto com o nome dos layers.
  2. Os biomas estao sendo mostrados usando apenas uma cor, e nao coloridos no mapa como esta na legenda. (Máquina estava configurada de forma errada)
  3. O clique do mouse no mapa não funciona sobre os biomas (nao abre janela pop-up com a descricao deles). (Máquina estava configurada de forma errada)

Testes visuais adicionais relativos ao item xiv

  1. No play ativado, os botões de layers devem ficar todos desabilitados. Habilitar eles novamente no final do play.
  2. A seta acima do último tempo deve ficar em cima do último tempo no final do play. Esta havendo um pequeno deslocamento, e nunca mais a seta volta a ficar completamente em cima do play.
  3. Botão do play deve ter a ponta alinhada com a barra do tempo. Esta ficando um pouco abaixo.
  4. O eixo da barra de tempo deve crescer conforme o tempo disponível.
  5. Tem horas que o dado fica piscando durante o play. Testar desenhar o novo tempo primeiro e apagar o tempo antigo depois, ao invés de apagar primeiro e desenhar depois.
  6. Os dados raster fia WMS não foram verificados nos testes, o que precisa funcionar na aplicação final.