GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ashrika786/api-testing-python: A Rest-API test automation framework which is build on the top of Python language using PyTest Framework.

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
demo
demo
 
 
tests
tests
 
 
.gitattributes
.gitattributes
 
 
README.md
README.md
 
 
StationReport.html
StationReport.html
 
 
asserter.py
asserter.py
 
 
logger.py
logger.py
 
 
session.py
session.py
 
 
test_utils.py
test_utils.py
 
 

Repository files navigation

PyRestAPITest

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

Page-Object-Model-Demo-Gif.gif

Languages, libraries and tools used

  • Python
  • Pytest
  • Requests
  • JsonPath
  • Pycharm

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 StationReport.html to open the file on the default browser.

Page-Object-Model-Demo-Gif.gif

Prerequisites

  • Python
  • Any IDE

Built With

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

About

A Rest-API test automation framework which is build on the top of Python language using PyTest Framework.

Topics

api-restapi-testing-frameworkapi-testing-pythonhttp-request-testhttp-requestshttp-responce-codepostmanpycharm-idepytestpytest-frameworkpythonpython-testsrest-apirest-api-test-frameworktest-automation

Resources

Readme
Activity

Stars

31 stars

Watchers

3 watching

Forks

18 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.