API Automation Framework Development by Prajwal MishraAPI Automation Framework Development by Prajwal Mishra

API Automation Framework Development

Prajwal Mishra

Prajwal Mishra

API Automation Framework

This is a lightweight and extensible API Automation Framework built using Python, Requests, and Robot Framework, designed and developed by Prajwal Mishra.

šŸ“Œ Overview

The framework supports:
REST API testing (GET, POST, PUT, DELETE)
JSON-based payloads and response validation
Status code validation
Test data separation using external files
Robot Framework test reporting
Easy-to-extend architecture for future enhancements

šŸ“‚ Project Structure

api_automation_framework/ ā”œā”€ā”€ data/ # Test payloads in JSON format ā”œā”€ā”€ reports/ # Execution reports (HTML/XML/log) ā”œā”€ā”€ tests/ # Robot test suites ā”œā”€ā”€ utils/ # Helper Python classes (keywords) ā”œā”€ā”€ conftest.py # Common test configurations ā”œā”€ā”€ requirements.txt # Project dependencies └── README.md # Project documentation

šŸš€ Getting Started

1. Install Dependencies

pip install -r requirements.txt

2. Run Tests

robot --outputdir reports <filepath/from/content_root>

3. View Reports

Reports will be available in the reports/ folder:
log.html<>
report.html</>
output.xml<>

šŸ“‘ Example Test Case

*** Test Cases ***
TC01 Validate Create User API
[Documentation] Validate response status and content for create user
Create Session ${BASE_URL}
${payload}= Load Json From File ${DATA_DIR}/create_user.json
${response}= Send Post Request ${BASE_URL} /api/users json=${payload} expected_status_code=201
Should Be Equal ${response['name']} ${payload['name']}
Should Be Equal ${response['job']} ${payload['job']}

šŸ‘Øā€šŸ’» Author

Prajwal Mishra
QA Automation Engineer
šŸ“… Created: May 28, 2025

Like this project

Posted Aug 6, 2025

Developed a Python-based API Automation Framework using Requests and Robot Framework.