https://github.com/fatimazza/robotapitest
API Automation Testing using Robot Framework with Request Library, Python, & POM Design Pattern
https://github.com/fatimazza/robotapitest
api-automation python requests-library-python robot-framework
Last synced: 11 days ago
JSON representation
API Automation Testing using Robot Framework with Request Library, Python, & POM Design Pattern
- Host: GitHub
- URL: https://github.com/fatimazza/robotapitest
- Owner: Fatimazza
- Created: 2023-08-18T04:49:59.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-22T07:34:18.000Z (about 2 years ago)
- Last Synced: 2025-02-12T23:38:02.469Z (9 months ago)
- Topics: api-automation, python, requests-library-python, robot-framework
- Language: HTML
- Homepage:
- Size: 200 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Robot API Test
:sparkles: API Automation Testing using Robot Framework with Requests Library, Python, & POM Design Pattern :sparkles:
## Preparation
What will be used in this project
| Item | Source |
| -------------- | ------------------------------------------------------------ |
| Editor | VS Code (https://code.visualstudio.com/download) |
| Package Manager| PIP (https://pip.pypa.io/en/stable/getting-started/) |
| UI Test Tools | Robot Framework with Python (https://robotframework.org/#getting-started) |
| | Requests Library (https://docs.robotframework.org/docs/different_libraries/requests) |
| Design Pattern | POM or Page Object Model |
| Test Reporter | Robot Framework with Python (https://robotframework.org/#getting-started)|
| Run on | Terminal or Command Prompt |
## Pre-Requisite Installation
Install VS Code Editor, Python, and PIP
To check whether you already installed Python & PIP
```Bash
python --version
```
```Bash
python -m pip --version
```
## Testing Tools Installation
Install Robot Framework
```Bash
python -m pip install robotframework
```
Install Request
```Bash
python -m pip install requests
```
Install Robot Framework Request
```Bash
pip install robotframework-requests
```
Robot Framework Jsonlibrary
```Bash
pip install robotframework-jsonlibrary
```
## Setting up Project
### Clone
**👉 [Clone this Repository](https://github.com/Fatimazza/RobotAPITest/)** through Terminal or Command Prompt
### Open the Project on Editor
Open this Automation Project using VS Code Editor.
### Run the Automation Project
Change to Project directory on Terminal or Command Prompt
```Bash
cd RobotAPITest
```
Run All Tests on Terminal
```Bash
robot --outputdir output/ .
```
Run Specific Test
```Bash
robot --outputdir output/ step/Suite01_GetRequest.robot
```
### Test Execution HTML Report
:white_check_mark: Report available on RobotAPITest/output/report.html