Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

afreenhossain/API-test-example-using-behave

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API-test-example-using-behave

API testing using python's behave library

Requirements

  1. Python 3.x.x. (here is a documentation for different OS)
  2. (optional). Virtual environment for the project. I personally use pyenv along with virtualenv

Setup

  1. Install requirements
pip install -r requirements.txt
  1. Setting base URL. Copy sample_env file and save it as .env in the same directory. Then replace BASE_URL with desired server URL.

Running

behave

For more details go here

Alternatively you can run without a .env file if you set the BASE_URL in the OS environment as variable. So the following will also work,

BASE_URL=http://test.com:30001 behave

About

API testing using python's behave library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.