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 - danielhao5/API-Testing: For API testing

BranchesTags
Open more actions menu

Latest commit

 

History

35 Commits
35 Commits

Folders and files

NameName
Last commit message
Last commit date
func
func
 
 
unit
unit
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
conftest.py
conftest.py
 
 
pytest.ini
pytest.ini
 
 

Repository files navigation

API Project

This project is to demonstrate how to develop the basic API tests by employing the robust test framework Pytest. The focus is primarily on the CRUD operations on API resources via the SDK. The chosen API is Stripe, an online payment system, which is very popular in states.

Prerequisites

It will need python 3.6+, pytest 4.0.2, and stripe library.

You will also need to register with stripe.com to get an api key since all
API uses the key(s) to authenticate requests. 

Installing

Use the package manager pip to install all packages:

$ pip install python   (and repeat for other components listed above, if not existing)

Running the tests

In the project directory, issue one of these commands for the target test cases:

command meaning
$pytest -v unit for all unit test cases
$pytest -v func for all functionl test cases
$pytest --html=regression.html for all cases, and generate report

Running Results

Results

Built With

  • pytest - The test framework used
  • pytest-html - HTML report generating plug-in
  • stripe - Stipe API library.

Author

  • Daniel Hao - Initial work

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgements

  • This project is purely inspired by an interviewer's challenges.

About

For API testing

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 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.