Skip to content
Snippets Groups Projects

Update README.md

Merged Hauser, Tomáš requested to merge hauseto2-master-patch-97522 into master
1 file
+ 29
2
Compare changes
  • Side-by-side
  • Inline
+ 29
2
## SUT description
# SUT description
For the SUT I chose a website from my [bachelor's thesis](https://dspace.cvut.cz/handle/10467/101022).
![Website screenshot](images/WebsiteScreenshot.PNG?raw=true "Title")
![Alt text](images/NotationConversionActivityDiagramConversionToGraph.png?raw=true "Title")
Its purpose is to convert between two notations that are used to write queries in a formal query language called <strong>R</strong>elational <strong>A</strong>lgebra (RA). Furthermore, the application can take any valid RA query and convert it into another formal query language called <strong>T</strong>uple <strong>R</strong>elational <strong>C</strong>alculus (TRC).
# Testing Framework
Selenium, Serenity BDD and JUnit5 were chosen. The plugin is set up in such a way that the command `mvn clean verify` generates a report in the target folder.
# Testing strategy
My goal was to verify the correctness of every functionality depicted in the use case diagram. After all, the diagram shows every possible action user can take in the application.
![Use case diagram](images/UseCaseDiagram.jpg?raw=true "Title")
Each use case was unit tested and some had additional coverage which is discussed in the following sections
## Path based tests
For the path based tests there were only two sensible possibilities - notation conversion process and the conversion from RA into TRC. Since the application is pretty much linear, there is no branching and the diagrams are rather simple and quite literally straight forward.
The following diagram shows a conversion from the activity diagram into a correspondign decision graph with the generated TDLs on the right.
![Conversion from activity diagram to graph for a notation conversion test](images/NotationConversionActivityDiagramConversionToGraph.png?raw=true "Title")
A decision graph for the conversion into TRC was made in a similar fashion.
![Decision graph for a test for a conversion from RA into TRC](images/ToTRCConversionGraph.PNG?raw=true "Title")
Tests for both diagrams are located in `src/test/java/tests/integration/pathbased`.
Loading