GoREST.co.in API manual and automated testing using Postman & Rest Assured
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
It is Group Project regarding Alterra Academy Quality Engineer Immersive Bootcamp Batch 06 on Manual and Automation Testing. We implement gherkin languange as main feature of this test. So it's quite easy to understand what to test and how the test work.
This project is based on GoRest - GraphQL and REST API for Testing and Prototyping. which use fake data | real responses | 24/7 online
We use public V1 API version because we can get more testing insight in tester POV.
You can also view our latest test run online HERE
To get a local copy up and running follow these simple example steps.
- Clone the repo
git clone /~https://github.com/AnjarTiyo/GOREST-API-testing.git
- Go to project directory
cd GOREST-API-testing
- run Maven command
mvn clean verify
- Create New Project
- Select from "versioning control"
- Paste /~https://github.com/AnjarTiyo/GOREST-API-testing.git
- Select JDK 1.8
- Select maven
- Click OK
Feature: Create new users
Create new resource users with given json data. Because data.email should unique, we use "Lorem" random email generator.
Scenario: post create new user with valid data
Given set path post new user to "https://gorest.co.in/public/v1/users"
And set request body post to json data
When send request post create new user
Then API should return 201 created
And post create new user json schema
And API send usersID to dynamic variable
And assert usersID not 0
For more examples, please refer to the Documentation
Method we implement is HEAD, GET, PUT, PATCH and DELETE. And authorization using header Bearer Token and HTTP Basic Auth
- ./users
- POST Create new users
- GET users data
- PUT update users
- DELETE users
- ./posts
- POST create new posts
- GET posts
- PUT update posts
- PATCH update feature
- DELETE posts
- ./comments
- POST create new commets
- GET comments
- PUT update comments
- DELETE comments
- Misc
- HEAD ping server
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Anjar Tiyo Saputro - LinkedIn - anjar.jog@gmail.com
Bunga Ayu Ferdiyanti - LinkedIn - bungaayu9599@gmail.com
M. Sholikudin Bhasri - sholikudinxtsm211@gmail.com
Project Link: /~https://github.com/AnjarTiyo/GOREST-API-testing