
Explore Robot Framework as a keyword-driven, minimal programming test automation framework for acceptance testing, with built-in libraries and predefined keywords.
Explore advantages of the robot framework, including its free licensing, keyword-driven testing with minimal coding, and detailed reports and logs, with libraries like selenium and the request library for automation.
Explore how Robot Framework uses standard libraries like string and collections alongside external libraries such as Selenium and Request; install, use keywords, and extend with user defined keywords.
Follow a step-by-step installation roadmap for rest api testing with robot framework, covering python setup, editor setup, pip, and installing the requests and json libraries.
Install Python on Windows using the downloaded installer with customized installation. Set the installation path and configure the path variable, then verify with Python -V in the command prompt.
Download and install PyCharm community edition, then start the editor. Create a new project named automation, choose python 3.6, and prepare to write code in the next session.
Set up the intellibot plugin in the editor to enable writing Robot Framework code; install via settings > plugins, restart, and begin writing Robot Framework test cases.
Install and manage Python packages with pip, add the Python scripts path to system variables, and install the Robot Framework to support Rest API testing.
Install and configure the Robot Framework, the request library, and the Robot Framework request package with pip to enable API testing keywords.
Learn how to install the json library for Robot Framework, including prerequisites, cloning the library, adjusting Python 3 compatibility, and validating json files with the library.
Define what web servers are and explain web services as machine-to-machine communication accessed through programming, highlighting the difference from web-based applications with user interfaces.
learn how web services provide a programming interface that powers travel apps like make my trip by calling airline web services, aggregating responses, and presenting results to end users.
Discover how web services offer platform and language independence, enabling fast data exchange and easy integration across multiple applications and devices, with formats like JSON or Excel.
Compare API and web service: web services require network, while API can run locally; APIs may be jar or dll, use json over http, and all web services are APIs.
Compare soap and rest web services in api testing, noting soap’s xml over http with wsdl, and rest’s lightweight http approach with json/xml, uris, and get post put delete.
Explore common rest api methods: get, post, put, delete, patch, head, options, and trace in rest api testing with robot framework's request library, including fetch, add, update, and debug workflows.
The lecture explains the five common file types in Robot Framework: robot test case files, resource files, Python keyword files, Excel test data, and JSON request/response files.
Understand Robot Framework file structure, creating test case and resource files with .robot extensions, and navigate settings, variables, test cases, and keywords, plus using the request library.
Learn to configure robot framework tests by installing and linking the request library, define settings, and enforce exact spacing for keywords and variables, then run tests with the robot command.
Define variables in variable section using ${name} and a value, then reference them in test case and print or set them with the log to console and set variable keyword.
Learn to perform API testing with Robot Framework by creating a Python project, writing a get request test in a .robot file, and validating the response status and content.
Execute a get request, capture and convert the response to json, then validate status code and specific fields like first name using json extraction in Robot Framework.
Learn json basics and data structures essential for api testing. Understand JavaScript object notation, key-value pairs, arrays, and nested objects for formatting request bodies and data exchange.
Master JSON path basics to navigate and fetch data with simple and complex paths, and validate data at specific keys. Use contains to search data in the body.
Explore advanced json path in Robot Framework to navigate complex json structures, using array indices and nested objects to fetch city, house number, mobile, status, and language data.
Validate API response content by converting the string to JSON, extracting data with JSON path, and asserting first and last names against expected results. It also validates status codes.
Learn to perform get requests with parameters using the Robot Framework Request Library, including building a parameter dictionary, handling base URL and relative URL, validating status codes, and parsing JSON.
Perform a delete data request using Robot Framework's request library, creating a session with a base URL and relative URL, then validate the status code and JSON response.
Demonstrates sending a post request to create a new resource using Robot Framework, including building a JSON body, setting the content type header, and validating a 201 status code.
Execute put requests to update a resource in Robot Framework's request library, including session setup, building updated data, and validating status codes and response content.
Learn end-to-end REST API testing using get, post, put, and delete with request chaining in Robot Framework; create a student, capture the id, update it, and validate responses.
Perform an end-to-end rest api test using robot framework request library, fetch the updated resource with a get request, validate the updated name, then delete and verify status code.
Create user defined keywords in Robot Framework by reusing existing keywords, define a keyword with arguments, call it in test cases, and migrate to a resource file for reuse.
Learn to create and reuse keywords in a Robot Framework resource file, using user keywords to fetch status codes with the requests library and validate results.
Learn to write resource keywords in Robot Framework that accept arguments and return values, fetch responses, and reuse keywords by returning data to test cases.
Write python-based keywords for Robot Framework by reading JSON content from external files and using it in post request test cases.
Learn to run a robot test case, generate report, output, and log files, view them in the project, and relocate these files using command-line options.
Discover how to organize Robot Framework tests by treating each file as a test suite and folders as suites, then execute and review reports.
Learn to document test cases, keywords, and suites in Robot Framework and set test and keyword timeouts, so reports reflect documentation and timeout outcomes.
Learn to use setup and teardown in Robot Framework, applying before and after keywords at test case, keyword, and suite levels, and verify execution in reports.
Control execution with tags in Robot Framework by assigning names to test cases, enabling selective runs for smoke or sanity, and using include, exclude, or force or default tags.
Robot Framework is a generic test automation framework for acceptance testing and acceptance test-driven development (ATDD). It has easy-to-use tabular test data syntax and it utilises the keyword-driven testing approach.
Its testing capabilities can be extended by test libraries implemented either with Python or Java, and users can create new higher-level keywords from existing ones using the same syntax that is used for creating test cases.
We are going to cover,
1. Basic environment setup
2. API Testing Basics
3. Rest API and different methods
4. GET | POST | PUT | DELETE
5. Run with Dynamic Data
6. Json and Json Path
7. API Testing Fundamentals