Assignment to practice Software Testing in Java.
This assignment has the goal of minimally demonstrating the process of TDD (Test Driven Development) using Junit 5. The tests cover minimally the possible input and output for the (nth root) method.
The possible input and output found, minimally and generally, were:
- Index: negative
- Index: positive
- Index: zero
- Root: negative
- Root: positive
- Root: zero
- Result: Invalid
- Result: Valid
Each folder is an assignment completed.
Applying TDD concepts with Junit 8.
Goal: testing a calculator's mathematical operation.
Chosen operation is nth root.
Video Explanation: https://youtu.be/K6y0frzXl8k
Boundary value analysis and equivalence partitioning.
A TDD cycle considering test cases in which data used are obtained from partition limits.
Practice 01 continuation
Video Explanation: https://youtu.be/hiAZC4LaZkU
Web Application Feature Implementation Test with Selenium WebDriver.
Pratica 02 implementation using Selenium WebDriver.
Web Interface implementation of the nth rooth mathematical operation.
Video Explanation: https://youtu.be/p7NoXFlNBrY
Optional
TEST_DRIVER # Driver path to be used by Selenium (by default, chromedriver in drivers/)
TEST_BROWSER # Browser to be used by Selenium
APP_HOST # Web application host
APP_PORT # porta da aplicação web
APP_CONTEXT # Web application root url path context
TEST_WAIT_SECONDS # Waiting time between testes
Use export VARIAVEL=valor
in Linux based OSs and set VARIAVEL="valor"
in Windows
to set the environment variables.
For more details, read build.gradle
.
This project requires Java 8 and Gradle 6.8+.
gradle wrapper --gradle-version 6.8.3
./gradlew run
./gradlew appRun
./gradlew test
If using Windows CMD, run gradlew.bat
instead of ./gradlew
.