
Begin Rest Assured from scratch with step-by-step hands-on examples to build an API testing framework in Java, testing REST services, XML and JSON, using given-when-then BDD style.
Identify prerequisites for a Rest Assured automation framework, including verifying Java, selecting an IDE like Eclipse, and setting up Maven and TestNG for Windows or Mac.
Open Eclipse, set a workspace, and create a Rest Assured automation project. Add Rest Assured and Test Energy dependencies to pom.xml for Maven to download libraries.
Create your first Rest Assured test in a Java project by writing a test class, annotating a method with @Test, performing a get request, and asserting the response status code.
Explore more Rest Assured test examples using static imports and given, when, and then patterns to verify status codes and inspect response bodies with json path.
Learn to perform get and post requests with rest assured in java, validating status codes and parsing json. Build json bodies with maps and jackson, and set headers for /users.
Learn to perform put, patch, and delete requests using REST Assured in Java, updating and deleting resources with verified responses and appropriate status codes.
Learn to create a local rest api for testing with json-server, install node and npm, start a fake db, and explore endpoints like users and posts.
Learn to run local Rest Assured tests with Java: execute get, post, put, patch, and delete requests against /users and /subjects, validate status codes, and log responses.
Learn to validate XML and Jason against schemas using Rest Assured, starting from XML basics, XSDs, and XSLT, with two bonus sections at the end.
Learn to validate a JSON schema against a response using Rest Assured, by creating a schema, adding the JSON schema validator dependency, and implementing a validator test.
Learn to create and run a soap request with Rest Assured, loading the request body from a file, sending a soap post, and validating the xml response.
Validate a soap xml response body using rest assured by applying xpath assertions to extract and verify specific values in the XML response.
Learn to validate XML against an XSD using Rest Assured, including creating an XML schema, integrating it into a Rest Assured test, and handling SOAP envelopes.
This course is created for complete beginners.
Are you a beginner eager to learn API testing from scratch? This course, “REST Assured Java Framework | Step by Step for Beginners,” is designed just for you! You will start with the basics and gradually move to advanced concepts, gaining hands-on experience in building a solid API automation framework using REST Assured.
In this course, you’ll learn:
The fundamentals of REST and SOAP APIs.
How to work with JSON and XML responses.
Writing GET, POST, PUT, PATCH, DELETE requests using REST Assured.
Validating responses, extracting data, and performing assertions.
Building a step-by-step API automation framework in Java.
Integrating your framework with tools like Maven, TestNG, and Git.
Everything is taught in a practical, hands-on manner, so you can immediately apply what you learn. By the end of the course, you’ll be confident in creating, running, and maintaining API automation scripts, understanding API request/response structures, and working with real-world scenarios.
Start your journey into API testing and automation today, even if you have no prior experience. This course is perfect for manual testers, QA engineers, or anyone interested in learning API automation using REST Assured and Java.
By the end, you’ll have your own working REST Assured framework ready to use in real projects.
Let's Get Started...