Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
REST API Testing with Python & Robot Framework
Rating: 3.0 out of 5(1 rating)
1 students

REST API Testing with Python & Robot Framework

Learn REST API Test Automation using Python, Robot Framework, and real-world scenarios
Created byYusuf Er
Last updated 12/2025
English

What you'll learn

  • Build a complete API test automation framework using Python and Robot Framework
  • Send and validate REST API requests using Python Requests library
  • Parse and verify JSON response data, including status codes, keys, and business logic validation
  • Integrate custom Python functions as Robot Framework keywords for modular automation
  • Create positive and negative API test scenarios using real-world e-commerce API cases
  • Run tests with tags, generate reports, and organize a scalable test automation structure
  • Apply software testing principles (assertions, validation rules, error handling) in real automation projects
  • Understand API behavior from both functional and technical perspectives

Course content

1 section6 lectures2h 1m total length
  • Introduction2:06
  • Test 1: GET All Products List38:01

    we start automating REST API testing using Python and Robot Framework. We send a GET request to retrieve the product list from a live API and validate: HTTP Status Code = 200  Response format is JSON  "products" key exists  Product list is not empty By the end of this video, you will learn: How to send an API request using Python Requests How Robot Framework calls Python functions as keywords How to validate API responses in automation How to check response data using assertions This is Lesson #1 in the REST API Automation Series — step by step from beginner to Test Automation Ninja! ?

  • Test 2: POST All Products List24:22

    We intentionally send a POST request to the /productsList endpoint — which only supports GET. A well-designed API must respond with:  Status Code: 405 – Method Not Allowed Error message in JSON format  No product data returned What you will learn in this lesson: How to perform negative testing in REST APIs How Python requests and Robot Framework work together How to validate response codes and JSON fields Why APIs must reject unsupported HTTP methods for security Test Validation Steps:  Robot calls a Python keyword  Python sends POST request → validates HTTP status  Robot checks "responseCode" inside JSON  Automation marks PASS or FAIL automatically This is the 2nd lesson in the REST API Test Automation Series — step-by-step to becoming a Test Automation Ninja

  • Test 3: Get All Brands List18:25

    In this lesson, we automate a GET request to retrieve the brand list from a live e-commerce API. We verify that the server returns valid data and responds correctly when fetching all available brands.  What You Will Learn How to automate GET requests using Python + Requests How to integrate Python functions as keywords in Robot Framework How to validate API response structure and JSON format How to verify critical backend data — brand list for an e-commerce store Why API automation is essential for backend stability and data integrity ? Test Validations HTTP status code must be 200 OK Response body must be valid JSON JSON must contain the "brands" key The "brands" list must be not empty — so there are actual brands returned A working brand list is essential for filtering and browsing products in the UI — this test ensures the backend supports critical features for users


  • Test 4: PUT To All Brands List18:48

    In this lesson, we implement a negative test scenario in our REST API automation framework. We send a PUT request to the /brandsList endpoint, which only supports GET requests — and we confirm that the server properly rejects the operation. ? What You Will Learn How to automate a PUT request using Python + Requests What a 405 Method Not Allowed response means How to validate error handling in APIs How to ensure backend security by negative testing How to assert JSON error codes and messages in Robot Framework  Expected Behavior HTTP wrapper returns 200 (API design behavior) JSON responseCode must be 405 JSON message: "This request method is not supported." Negative tests are critical — APIs need to fail correctly, not only work correctly.


  • Test 5: POST To Search Product19:59

    In this lesson, we automate a POST request to the /searchProduct endpoint of a live e-commerce API. We send a search keyword such as "top" and verify that the backend returns a non-empty product list in a valid JSON format. This confirms that the search functionality — one of the most critical features in any online store — is working correctly on the server side.  What You Will Learn in This Video How to automate POST API calls using Python (Requests library) How to integrate Python keywords into Robot Framework How to validate JSON response structures How to confirm meaningful business results: products must be returned API positive testing methodology ? Validation Criteria We check that: Status Code = 200 OK Response is valid JSON "products" key exists Product list is not empty If any check fails → test fails ? If all pass → search backend is healthy and functional

Requirements

  • Basic knowledge of Python programming (variables, functions, imports)
  • Basic understanding of Robot Framework syntax and test file structure
  • Curiosity and motivation to learn API Test Automation
  • No advanced programming or automation experience is required — this course is designed to be beginner-friendly!

Description

Welcome to the REST API Test Automation with Python & Robot Framework course!
This hands-on training is designed for testers, QA engineers, and aspiring automation professionals who want to build real-world API automation skills from the ground up.

In this course, you will learn how REST APIs work and how to test them using both Python Requests Library and Robot Framework. We will work on a real e-commerce application API and automate multiple HTTP methods such as GET, POST, PUT, and DELETE. You will create Python functions (keywords) and reuse them inside Robot Framework test cases to build a scalable and maintainable automation structure — just like in real industry projects.

You will validate JSON responses, status codes, and error handling while learning how to create positive and negative test scenarios. Every topic is demonstrated step-by-step with clear explanations, making it easy to follow even if you have limited automation experience.

By the end of this course, you will have a complete API automation suite running on your machine, a strong understanding of REST API behavior, and the confidence to apply these skills in real automation jobs and interviews.

If you want to improve your test automation career with modern API testing skills — this course is for you. Let’s automate together!

Who this course is for:

  • Software Testers, QA Engineers, and Test Automation Engineers who want to expand their skills into API testing
  • Manual testers looking to transition into automation roles and boost career opportunities
  • Beginner automation learners who already know basic Python & Robot Framework and want real-world practice
  • Students or career changers preparing for technical interviews in QA & test automation
  • Developers who want to better understand test automation practices for REST APIs