Walkthrough to install, set up and run the scenarios with Rest-Assured framework. Used in this project Rest-Assured, JUnit5, Maven and Hamcrest for assertions.
Scenarios for the API Seu Barriga's Bank Accounts.
Install the latest Java JDK and search for Start Menu > Type 'Environment' > click on 'Edit Environment Variables' > Environment Variables
.
Oracle Guide: Enviroment Variables
- Create a new user variable called
JAVA_HOME
and set the path that Java were installed; - Create a new variable at
Path
adding the value%JAVA_HOME%\bin
.
Download Apache Maven, unzip at any folder (e.g.: /Downloads).
Create a new variable at Path
and set the path that Apache Maven were unzipped (e.g.: C:\apache-maven-{version.number}\bin
)
Maven installation guide: Installing Apache Maven
Install the latest GIT to clone the repository.
Install the latest Java JDK, create environment variable JAVA_HOME
and set the path that Java were installed.
Set the folder \bin
in Path environment.
Oracle guide to config Java path on Linux Enviroment Variables
Download Apache Maven and unzip in a folder.
Set the folder \bin
in Path environment
Maven installation guide: Installing Apache Maven
Install GIT: sudo apt install git
In your terminal (with admin privileges), run this command to clone project, install all dependencies and run the tests
git clone https://github.com/WillCoutinho/bank-account-automation-with-restassured && cd bank-account-automation-with-restassured && mvn install
To run the suite tests use the command: mvn test
GitHub: Bank Accounts Automation with Rest-Assured Framework
- Rest-Assured - API automation framework
- JUnit5 - Test framework
- Apache Maven - Build tool
- Maven Surefire - Plugin for unit tests
- JetBrains Annotations - Set of Java annotations