Skip to content

Automation testing framework (API) - an example. Based on Java, REST assured, JUnit

License

Notifications You must be signed in to change notification settings

BurhanH/Automaton-v20

Repository files navigation

Automaton-v20

Automation testing framework (API) - an example. Based on Java, REST assured, JUnit

GitHub Java CI with Maven Codacy Badge

Requirements

JDK 11, Junit 4.12, REST Assured 4.3.0,
Maven (software project management)

Project structure

-- automaton-v20
   |-- .gitignore
   `-- .github
       `-- workflows
          |-- maven.yml
   |-- LICENSE
   |-- pom.xml
   |-- README.md
   `-- src
       `-- test
           `-- java
               `-- restapitests
                  |-- RestApiTests.java

The concept

The main reason was to understand how to use REST assured to test and verify a REST API. For a target service, I used one of my projects that is living on https://api-flask-baur.herokuapp.com. It's a simple REST API service to get popular quotes.

Tests

Tests are pretty straight. Each test verifies specific functionality like: get a quote, get a random quote, try to get a quote that doesn't exist, try to create a quote if a quote number already exists, edit a quote, create a quote, delete a quote.

About

Automation testing framework (API) - an example. Based on Java, REST assured, JUnit

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages