https://github.com/jijojose1691/robotframewrok_api_testing_demo
A project to showcase the API testing using Robot framework
https://github.com/jijojose1691/robotframewrok_api_testing_demo
apitesting python robotframework testplan
Last synced: 5 months ago
JSON representation
A project to showcase the API testing using Robot framework
- Host: GitHub
- URL: https://github.com/jijojose1691/robotframewrok_api_testing_demo
- Owner: jijojose1691
- Created: 2024-04-18T08:48:02.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-18T11:11:50.000Z (about 2 years ago)
- Last Synced: 2025-02-12T23:37:50.502Z (over 1 year ago)
- Topics: apitesting, python, robotframework, testplan
- Language: HTML
- Homepage:
- Size: 428 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Test Plan
The test plan can be found within the TestPlan folder, labeled as "Products_and_Cart_Management_Test_Plan.pdf."
## Running the Tests
### Prerequisites
To run the tests written in RobotFramework, follow these steps to set up the test environment:
1. **Install Python:**
Ensure Python 3.12+ is installed on your machine. If you don't have Python installed, download and install it from the official Python website (https://www.python.org/downloads/).
2. Execute docker image and make dure the APIs are available
### Run the Tests
1. **Clone the Repository:**
Clone the test automation repository to your local machine using Git.
```
2. **Install Dependencies:**
Navigate to the root directory of the cloned repository and install the required dependencies using pip and the `requirements.txt` file. Run the following command:
```
cd picnic-qa-jijojose1691
pip install -r requirements.txt
```
3. **Execute Tests:**
Execute the automated test scripts by running following commands
```
robot --pythonpath Libraries --outputdir Reports Tests
```
Please note that if the application is hosted on a server with a different IP address and port than localhost, you can specify these details as arguments.
```
robot --pythonpath Libraries --outputdir Reports --variable HOST_IP: --variable HOST_PORT: Tests
```
For eg:
```
robot --pythonpath Libraries --outputdir Reports --variable HOST_IP:localhost --variable HOST_PORT:80 Tests
```
### Test Reports
* The reports can be found in Reports directory. A sample screenshot is attached below:
