KraQA workshop
How to create automate a REST API using Java and RestAssured
On this page, you will find all the pre-conditions you must do before the workshop starts.
On this page, you will find all the pre-conditions you must do before the workshop starts.
Click on each step to complete the pre-conditions.
To be able to run the backend and create the automated tests you must have the following software installed in your machine.
You can use any Java JDK distribution in your machine => 11. If you don't have one follow these steps.
java -version
If you are not familiar with how to set the environment variables in your Operational System, please follow one of these tutorials:
You can follow the instructions on the official website or following some tutorials
You can use your preferred IDE. I will use the IntelliJ IDEA
You also needs the Lombok plugin
And enable the Annotation Processors
These are the steps to have the backend part up and running.
Package
list click on the first link on the listAsserts
on the right side click in the .jar
file. It will be like credit-api-version.jar
jar
file in a place you will rememberjar
file you downloadedjava -jar FILENAME.jar
where
FILENAME
is the jar filename. Example: credit-api-1.3.0.jar
Only follow these steps if the previous one failed. Please consider first review all the previous pre-conditions.
.zip
file or running the
git clone
command.zip
file from https://github.com/eliasnogueira/credit-api/archive/master.zip
git clone https://github.com/eliasnogueira/credit-api.git
credit-api-master
if you
downloaded it, or code-api
if you cloned itmvn spring-boot:run
We will start the workshop with a preconfigured project containing all the necessary libraries and configurations.
git clone
https://github.com/eliasnogueira/credit-api-test.git
mvn verify
We are not going to learn how to test with Postman, but it's a great tool to do the first check in the API.