This repository contains API test automation using Robot Framework. It leverages the RequestsLibrary to perform API calls and tests against mock API endpoints provided by JSONPlaceholder.
To set up and run the tests:
-
Install the Python prerequisites:
pip install -r requirements.txt
-
Run all tests:
robot -A arguments/default.robot tests
- Argument File: A separate argument file is used to capture common command-line arguments for test execution.
- Resource File: Custom keywords to interact with the API endpoints are defined in a separate resource file.
- Suite Setup: A dedicated
__init__.robotfile is used to specify the suite setup and teardown. - Config File: A separate configuration file is utilized to collect commonly used variables.