Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Java Junit example. Software testing assignments. TDD: Boundary value analysis and equivalence partitioning. Partittion limit Testing and Web application Testing with Selenium WebDriver.

License

Notifications You must be signed in to change notification settings

maiconandsilva-archive/software-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Software Testing

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

Subfolders

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

Environment Variables (pratica_03 only)

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.

Running

This project requires Java 8 and Gradle 6.8+.

Project Gradle Wrapper Version

gradle wrapper --gradle-version 6.8.3

Running Command Line Application

./gradlew run

Running Web Application (pratica_03 only)

./gradlew appRun

Running Tests

./gradlew test

If using Windows CMD, run gradlew.bat instead of ./gradlew.

About

Java Junit example. Software testing assignments. TDD: Boundary value analysis and equivalence partitioning. Partittion limit Testing and Web application Testing with Selenium WebDriver.

Topics

Resources

License

Stars

Watchers

Forks

Languages