- Notifications
You must be signed in to change notification settings - Fork6
"A scalable, modular and user-friendly API automation framework built with Python for testing RESTful APIs."
License
NotificationsYou must be signed in to change notification settings
ashikkumar23/api-framework-python
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a Test Automation Framework withPython
that is used to automate CRUD APIs
Automated CRUD (i.e.,POST
,GET
,PUT
,DELETE
) APIs usingpython
requests
pytest
assertpy
python-dotenv
api-framework-python/├─ services/│ ├─ restful_booker/│ │ ├─ __init__.py│ │ ├─ restful_booker_service.py│ ├─ __init__.py│ ├─ base_service.py├─ tests/│ ├─ data/│ │ ├─ create_booking.json│ │ ├─ update_booking.json│ ├─ __init__.py│ ├─ test_restful_booker_crud_operation.py├─ utils/│ ├─ __init__.py│ ├─ file_reader.py│ ├─ request.py├─ .env├─ .gitignore├─ config.py├─ conftest.py├─ LICENSE├─ Pipfile├─ Pipfile.lock├─ README.md
- Fork and Clone the repositoryhttps://github.com/ashikkumar23/api-framework-python
- OpenPycharm (or any IDE) > File > Open > Open the project where the repository is located (i.e.,
../api-framework-python
) - On the
Pycharm
terminal, navigate to thetests
directory viacd tests
- Make sure a one-timeInstallation is performed before executing the tests
- On the
Pycharm
terminal, run the command:python -m pytest -v
- For Mac: Install
pipenv
viahomebrew
brew install pipenv
- For Windows: Install
pipenv
viapip
pip install pipenv
- Create a home directory
mkdir ~/.virtualenvs
- Add below in
~/.zshrc
or~/.bash_profile
(if on Mac/Linux) or your Windows system variables
export WORKON_HOME=~/virtualenvsexport VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3export LANG=en_US.UTF-8export LC_ALL=en_US.UTF-8
- Source the above changes
source ~/.zshrc
- Create a new project using Python 3.8
pipenv --python 3.8
- Activate virtualenv
pipenv shell
- Install all dependencies in your virtualenv
pipenv install
About
"A scalable, modular and user-friendly API automation framework built with Python for testing RESTful APIs."
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.