Skip to content

Sherry5Wu/Test_RESTAPI_Pytest

Repository files navigation

API Automation using Python Pytest

  • API testing for signup, renew, validate, user, quote and weather, using Python Pytest.

Setup:

  • Download and install Python3 from here (Ignore the step if you already have python installed)
  • Clone this repo, navigate to assignment_API_test folder.
  • Execute requirements.txt file to install all the dependent python libraries using following command and make it pass without any error: pip3 install -r requirements.txt

Running the tests:

  • Navigate to assignment_API_test folder
  • Run below command to execute all the tests.(make sure you install "pytest-html" already") This will generate log file(with name: <YY-MM-DD_HH-MM-SS>.log) in logs folder: pytest testcases/
  • The report will be generated in report folder.

Testcases and bug report:

  • The Testcases for APIs file contains all the designed testcases.
  • The bug_report file contains all the found bugs.

About

API testcases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published