This project is the outcome of my self-learning about the API Testing Automation framework - Playwright with Java
- This repo contains example codes of API Tests using Playwright with Java.
- TestNG is used as Test Runner and for performing assertions in the test.
Log4j
is used to capture logs.- Lombok has been used to generate Getter and Setters automatically for post body requests.
- FAKE Rest APIs on Reqres.in has been used for testing.
- End to End scenarios have been added for the restful booker APIs.
- Happy and Sad Path Scenarios have been added for the restful-ecommerce APIs
You will get the answers to the following questions and its respective working code example with Playwright Java framework in this repository:
- How to write tests for
GET
requests? - How to write tests for
POST
requests? - How to write tests for
PUT
requests? - How to write tests for
PATCH
requests? - How to write tests for
DELETE
requests? - How to handle the
authentication
requests? - How to verify the Response Body?
- How to verify the Response Status Code?
- How to extract value from Response Body?
- How to create
POJO
for passing values to request body? - How to use
Lombok
to generateGetters
andSetters
? - How to use
Lombok
for writing the builder pattern code? - How to use Builder Pattern for test data generation using Data Faker?
- How to write end-to-end api tests?
- How to write Happy Path scenarios for the APIs?
- How to write Sad Path scenarios for the APIs?
- How to log the Response ?
- What is API Testing?
- How to perform End to End API Testing using Playwright with Java and TestNG
- Playwright Java API Testing | How to test POST requests?
- Playwright Java API Testing | How to test GET requests?
- Playwright Java API Testing | How to test PUT requests?
- Playwright Java API Testing | How to test PATCH requests?
- Playwright Java API Testing | How to test DELETE requests?
- Discuss your queries by writing to me @
[email protected]
OR ping me on any of the social media sites using the below link:
Contact me for Paid trainings related to Test Automation and Software Testing,
mail me @ [email protected]
or ping me on LinkedIn