
Develop two automation frameworks for rest api testing using Playwright and Cucumber TypeScript, built with real api projects and open-source tools.
Set up your development environment by installing Node.js, a cross-platform back-end JavaScript runtime. Verify its path on macOS and Windows using terminal or command prompts.
Set up your development environment with IntelliJ for rest api testing, install Cucumber plugins, create an api project, and explore alternatives like community editions while preferring the terminal for execution.
Install and open VS Code for this course, install the gherkin full support extension, and configure settings to point cucumber auto complete to your features and step definitions.
Set up your development environment for rest api testing with Playwright and TypeScript, including installing Node and configuring VS Code and IntelliJ with essential plugins.
Plan api automation coverage with postman before building your framework, including a postman collection and end-to-end testing structure. Implement get, post, put, patch, and delete with playwright.
Plan and implement API automation with Postman by creating, updating, patching, and deleting posts on a JSON placeholder API, and review status codes and request bodies.
Plan api automation coverage with postman by validating failure scenarios on json placeholder operations, including 500 and 404 responses, and prepare to implement a playwright-based automation suite.
Create an e2e folder for API automation, initialize a fresh npm package, install Playwright Test, and configure base url jsonplaceholder with content-type: application/json and charset utf-8 in playwright.config.js under source/kiss.
Create your first Playwright and JavaScript automation test using the API request context and the Playwright test library to perform a get request, verify a 200 response, and validate JSON.
Learn to test rest api endpoints with Playwright and JavaScript by creating a new post via a post request and updating it with a patch, validating 201 and 200 responses.
Learn how to update an entire post with put in Playwright and JavaScript, including id, title, body, and user id, and understand patch differences and error scenarios.
Add a delete user test in Playwright and JavaScript, verify a 200 response and expected content, and align seven automated tests with the Postman plan toward a cucumber layer.
Discover key learnings from using Postman for creating collections and requests (get, put, patch, delete), setting up an e2e folder, configuring Playwright tests, and reviewing the Playwright HTML report.
Build a cucumber, playwright, and typescript automation framework for API testing, enabling readable Gherkin features, reusable REST endpoint steps, and parallel, retriable test execution.
Introduce cucumber world, an isolated context for each scenario that stores global configuration and segregated variables, enabling reliable parallel test execution with a shared Playwright API request context.
Explore Cucumber world hooks and per-scenario initialization in Playwright and TypeScript, creating a fresh API request context for each scenario, leveraging scenario world and debug logging to validate responses.
Learn to share api responses across Cucumber steps by creating a global api response variable in the Cucumber World and validating its travel through steps with Playwright.
This lecture demonstrates sharing an API response across cucumber steps with cucumber world and validating it with playwright expect, using a regex-driven assertion for success or failure and status codes.
Set up linting with ESLint for a TypeScript automation framework, create the eslint config and ignore rules for dist and node_modules, and enforce clean, maintainable code.
Master rest API testing automation with Playwright and TypeScript by introducing node packages, feature files, cucumber scenarios, step definitions, and API request context; leverage cucumber world and hooks for tests.
Learn to customize cucumber-js at runtime using environment variables and global configuration, enabling dynamic host URLs, custom JSON payloads, and exportable test profiles (dev, smoke, regression).
Configure cucumber-js at runtime with dynamic profiles (dev, smoke, regression) and a progress bar, enabling end-to-end api automation tests with runtime status checks and global api response handling.
Learn to manage environment variables with dot env, create default and secret config files, and run cross-environment tests using scripts for Windows and macOS.
Introduce global configuration and a reusable get response function to refactor step definitions, enabling dynamic host targets via host.json and world parameters in cucumber runtime.
Develop a reusable getResponse helper to fetch dynamic host URLs from global config, set global API response variables, and support environment-based host selection for rest API testing.
Master learnings from the module, including asserting on response status codes and loading environment variables from MB files. Create dynamic functions to get responses and configure host URLs for tests.
Extend API automation with Cucumber by adding get tests for a single post, asserting the JSON response, and introducing parallel, retry, and delete tests.
Develop and extend GET tests by asserting payload attributes using cucumber data tables, and create reusable step definitions to validate response JSON across multiple scenarios.
Learn to integrate the Cucumber HTML reporter with Playwright and TypeScript by configuring reporter files, report paths, and enabling parallel and retry via environment variables.
Develop and run an api delete test within the existing automation framework by creating delete.feature and delete steps, asserting a 204 status with an empty payload to confirm deletion.
Master learnings: index rejects in cucumber, converting strings to numbers, and concatenating root and index. Add data tables, html reporter, parallel and retry, and a delete scenario with playwright request.
Create a new post using post requests with a JSON payload in the request body, validate a 201 response, and verify the returned JSON includes id, userId, title, and body.
Organize json payload files for post requests and build payload mappings using fs. Implement a post function in the rest helper to send api calls with those payloads.
learn how to use patch in rest api testing with playwright and typescript to update a post title using a json payload, verify with 200 response and assertions.
Update posts with put walks through creating an updated post JSON payload, issuing a put request to update resources, and validating a 200 status with updated title, body, and userId.
Validate that a json payload exists using a payload exists helper in TypeScript, apply it across steps, and verify descriptive errors before restoring payloads to pass the suite.
Explore asserting on response text errors in a rest api test with Playwright and TypeScript, including updating a non-existent post and validating 500 errors and text-based messages.
Identify key learnings: posting json payloads, adding json payload mappings to config, reading directories with rfs, adding a new json payload path, and validating responses with patch and put calls.
Develop and expand a robust API automation framework using Playwright with JavaScript and Cucumber with TypeScript, including Postman coverage, environment management, JSON reporting, parallel test execution with retry.
This course has been designed to simulate a real-world experience in building both a barebones Playwright and JavaScript API Automation framework and a Cucumber, Playwright & TypeScript API automation framework from the ground up for a fully-featured API.
Upon completion, you will be able to apply your learnings and the automation framework you have built into your respective companies and projects. We are confident you will become an expert in building a world-class automation framework.
Our course and the automation framework we will build together has been developed with guidance from some of the globes leading testing and software engineering professionals and because of that we believe we can offer an incredible course where we will:
- Plan and roadmap your automation coverage with Postman.
- Develop your API automation framework against a real API.
- Build two end-to-end automation frameworks from the ground up for a full-featured end-to-end API.
- Evolve your skills and continuously improve your automation framework as we progress through the course
- Learn how to build an object-orientated – engineer-reviewed and approved automation framework.
We want this course to be the best decision you have ever made for your personal growth when it comes to improving your knowledge and skills in API test automation framework architecture.
Across many hours of exciting content, I will be at the bottom right of your screen instructing and cheering you along throughout the course. You will have everything you need to learn how to build a robust API automation framework.