Skip to content

ashrika786/Rest-API-Automation

Repository files navigation

Demo-App-API-Test

This application is built to do REST API testing using python scripts along with the use of Pytest module as our testing framework.

License

Demo

Demo-App.gif

Languages, libraries and tools used

Above Features are used to make code simple, generic, understandable, clean and easily maintainable for future development.

Installation

Install the dependencies and start the testing.

Install Pytest:

pip install -U pytest

Install Requests:

pip install requests

Install Json Path:

pip install jsonpath

Automated tests

To run a test, you can simply write the following command on Terminal:

pytest

To run and get details of all the executed test, you can simply write the following command on Terminal:

pytest -rA

To 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-html

Then write the following command on Terminal

pytest --html==YOUR_REPORT_FILE_NAME.html

To see the reports, open the Project window, and then right-click then click on refresh then right-click on Demo-App-Test-Report-File.html to open the file on the default browser.

img.pngDemo-App.gif

Prerequisites

  • Python
  • Any IDE

Built With

  • Python - Language used to build the application.
  • Pycharm - The IDE for writing Automation Test Scripts

About

Rest Api Automation for Demo application in Python Language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published