This application is built to do REST API testing using python scripts along with the use of Pytest module as our testing framework.
Above Features are used to make code simple, generic, understandable, clean and easily maintainable for future development.
Install the dependencies and start the testing.
Install Pytest:
pip install -U pytestInstall Requests:
pip install requestsInstall Json Path:
pip install jsonpathTo run a test, you can simply write the following command on Terminal:
pytestTo run and get details of all the executed test, you can simply write the following command on Terminal:
pytest -rATo run and generate full HTML details report of all the executed test, you can simply write the following commands on Terminal:
But first install Pytest-HTML by writing the following command on Terminal
pip install pytest-htmlThen write the following command on Terminal
pytest --html==YOUR_REPORT_FILE_NAME.htmlTo see the reports, open the Project window, and then right-click then click on refresh then right-click on StationReport.html to open the file on the default browser.
- Python
- Any IDE

