https://github.com/cvera08/automationapijavarestassured
Java - RestAssured - TestNG - Base Automation Project to Test the Back-end endpoints
https://github.com/cvera08/automationapijavarestassured
java maven restassuredrestapi
Last synced: about 2 months ago
JSON representation
Java - RestAssured - TestNG - Base Automation Project to Test the Back-end endpoints
- Host: GitHub
- URL: https://github.com/cvera08/automationapijavarestassured
- Owner: cvera08
- Created: 2022-01-30T21:23:46.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-04T12:31:53.000Z (over 4 years ago)
- Last Synced: 2025-05-07T14:59:35.980Z (about 1 year ago)
- Topics: java, maven, restassuredrestapi
- Language: Java
- Homepage:
- Size: 315 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AutomationApiProject
Base example of an automation project to test APIs (BE)
Java + RestAssured + TestNG + mvn
**Installation:**
- Make sure you have configured and installed java on your computer. JDK 1.8 should be okay. Resource: https://java.com/en/download/help/download_options.html
- You will need maven as well. mvn guide: https://maven.apache.org/install.html
_Desirable_:
- An IDE, like IntelliJ. If you are using Eclipse should be fine as well. https://www.jetbrains.com/es-es/idea/download/ (Make sure to download the Community version, no the Ultimate)
**How to Run the tests:**
- Make sure to import this project as a mvn project instead of just opening the main folder
- If you are using IntelliJ you may go to the Maven tab and update the project (Reload All Maven Projects - option), if you are using other IDE or no IDE at all go to the terminal/console, your project location and run:
- - > mvn clean install
- Go to your project folder > AutomationApiProject > src/test/testngRunners/ > SingleTest.xml file > right click & run
- A new window will be opened and after a couple of ms you will get something like this:
```
===============================================
AutomationApiSuite
Total tests run: 1, Failures: 0, Skips: 0
===============================================
Process finished with exit code 0
```
If you get a failure could be a simple endpoint error,
if you get an error make sure all the mvn dependencies/packages are fully installed before running (it could take some time)
**Available Suites:**
There are at least three types of regression suites in this project:
- Smoke test: /src/test/testngRunners/SingleTest.xml
- Sanity test: /src/test/testngRunners/SanityApiRegression.xml
- Full Regression: /src/test/testngRunners/FullApiRegression.xml
if you have already installed TestNG just need to right click > run 'Regression.xml' or to run all the tests use this file:
- testng.xml


**To dig in a bit more - Main Library documentation:**
- https://rest-assured.io/
- - Github / Get Started: https://github.com/rest-assured/rest-assured/wiki/GettingStarted