DEV Community

Cover image for πŸ”₯ How to Setup Maven Project for API Testing with RestAssured?
Pramod Dutta
Pramod Dutta

Posted on • Updated on

πŸ”₯ How to Setup Maven Project for API Testing with RestAssured?

πŸ”₯ Build Custom API Automation Framework - https://scrolltest.com/rest-assured-masterclass-2/

Hey BugHunters, In this video we are going to discuss How to Setup IntelliJ & Maven Project
for API Automation.

πŸ”₯ Download the following dependences to Maven Pom
https://scrolltest.com/ra/day10

 Rest Assured Tutorial

P.S:
This is Day 9 of the 30 days of API Testing challenge Series. Where will learn the Basics before jumping to API Automation.

πŸš€ All 30 Days Task - https://scrolltest.com/30days/restassured
πŸ“Œ Join 30 Days Challenge Updates - https://scrolltest.com/tta
πŸŽ“ Free Automation MasterClass - https://thetestingacademy.com
πŸ“š REST API testing with Python - https://masterapitesting.com

In this Video, We are going to discuss, What things you should Know before learning the API Testing.

Concepts like Cookie, Authentication, HTTP Methods and headers, SOAP, REST and many more concepts related to API are important to understand before diving into the world of API Testing.

βœ… What is REST?
REST is acronym for Representational State Transfer.
It is architectural style for distributed hypermedia systems and was first presented by Roy Fielding in 2000 in his famous dissertation.
The REST architectural style describes six constraints.

βœ…REST Six Constraints

  • Uniform Interface
  • Stateless
  • Cacheable
  • Client-Server
  • Layered System
  • Code on Demand (optional)

βœ… What is API?
API is the acronym for Application Programming Interface. It’s Kind of intermediary that allows two applications to talk to each other.
They can be set of subroutine definitions, protocols.
API can be web-based system, operating system, database system, computer hardware or software library.

βœ… Types of APIs
We are only Concern about the Web API

  • Simple Object Access Protocol
  • Remote Procedure Call
  • Representational State Transfer (REST).

βœ… What is API Testing?
API testing is testing that APIs and its integration with the services.

βœ… What to Test in API Testing?

  • Validate the keys with the Min. and Max range of APIs (e.g maximum and minimum length)
  • Have a test case to do XML, JSON Schema validation.
  • Keys verification. If we have JSON, XML APIs we should verify it’s that all the keys are coming.
  • Verify that how the APIs error codes handled.

βœ…Types of Bugs that API testing Detects

  • Fails to handle error conditions gracefully
  • Unused flags
  • Missing or duplicate functionality
  • Reliability Issues. Difficulty in connecting and getting a response from API.
  • Security Issues
  • Multi-threading issues
  • Performance Issues. API response time is very high.
  • Improper errors/warning to caller
  • Incorrect handling of valid argument values
  • Response Data is not structured correctly (JSON or XML)

βœ… Time Jump

πŸ”” Join Facebook Group : https://scrolltest.com/fb

βœ… Automation Tester Community - https://thetestingacademy.com
🐦Follow us on Twitter - https://twitter.com/itstechmode
πŸ“– Like us on Facebook - https://www.facebook.com/scrolltest
🎀 Listen to our Podcast - https://anchor.fm/thetestingacademy

βœ… What is covered in Rest Assured Tutorial or 30 Days of API Testing with Rest Assured Challenge?

  • Learn How to Master API Testing with Rest API Testing with Rest Assured.
  • Step By Step Tutorials
  • Building your Own Custom Framework.

βœ… What is Rest Assured?
REST Assured is a Java library that provides a domain-specific language (DSL) for writing powerful, maintainable tests for RESTful APIs. I'll be using real-world code examples you can copy, run, and reuse directly in your own test automation efforts

restassured #restassuredtutorial #apitesting #api #automationtesting #manualtesting #testautomation #thetestingacademy #scrolltest

πŸš€ Tools and services I recommend:
Some of the courses that I recommend to become better Automation Tester πŸ™ŒπŸ™Œ

🐦 Learn Jenkins for QA -
https://bit.ly/learnjenkins-p1

πŸ“Έ Programming Java -
https://bit.ly/learnjava2020-p1

🌍 Test Automation -
https://bit.ly/learnautomation2020

πŸ’Œ API Testing -
https://www.learnapitesting.com

πŸŽ™ Cypress Tutorial with LIVE Projects -
https://cypresstutorial.com

πŸ“ REST API testing with Python -
https://masterapitesting.com

PS: Some of the links in this description are affiliate links that I get a kickback from 😜

--
Be sure to subscribe for more videos like this!

 TheTestingAcademy

Top comments (0)