TC004 002
Test Case Description | Verify the functionality of drawing and removing shapes (circle and rectangle) on the website |
Test Case ID | TC004-002 |
Author/Designer | Alan Ousi / Otto Nordling |
Date of Creation | 28.06.2023 |
Class | Functional |
Test Description/Objective
The objective of this test is to verify that the website allows users to draw shapes (circle, rectangle, and polygon) on the map, and provides functionality for removing those shapes as intended.
Links to requirements or other sources
- Requirement: FUNC-REQ-C0028
- Use case: UC004
- Feature: Leaflet.js for the map
Test Pre-state
Start
Test Steps
Step No. | Step Description | Expected Result |
---|---|---|
1 | Open the Tukko website | The website should load with the map and the relevant buttons visible |
2 | Locate and click the "Draw Circle" button | The cursor should change to a circle-drawing tool |
3 | Click on the map and then move the cursor somewhere else on the map | A circle shape should appear on the map as the user drags the cursor |
4 | Click the mouse button to finalize the circle | The drawn circle should become a persistent element on the map |
5 | Verify the appearance and properties of the drawn circle | The circle should have the expected size, color, and other attributes |
6 | Repeat steps 2-5 for drawing a rectangle | A rectangle shape should be individually drawn and persist on the map |
7 | Locate the "Remove Layers" button and click it | The "Remove Layers" tool should become active |
8 | Click on the drawn shapes | The drawn shapes should be removed from the map |
To be taken into account during test**
- Ensure that the drawing buttons for each shape is clearly visible and accessible.
- Verify that the drawn shapes are persistent and retain their properties.
Test Result (Pass/Fail Criteria)**
- PASS condition: The website allows users to draw shapes (circle, rectangle) and maintains the expected properties of the shapes.
- FAIL condition: The drawing functionality does not work correctly, the shapes do not retain their properties, or there are issues with deleting shapes.