Skip to content

jharmn/api-bdd-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api-bdd-tests

An example of testing HTTP-based APIs using the BDD principles.

For more info on the concepts, as well as links to BDD implementations in Groovy/CucumberJVM and .NET/Specflow: http://www.pragmaticapi.com/blog/2013/11/10/bdd-for-apis-talk-at-apistrat-sf-2013

Requirements

  • virtualenv
  • pip

Add Config

Add 'config.ini' with the following contents:

[bitly]
username = yourusername
password = notmypassword
host = https://api-ssl.bitly.com

[geonames]
host = http://api.geonames.org
username = yourusername

Install

 virtualenv venv
 . venv/bin/activate
 pip install -r requirements.txt
 lettuce

About

An example of performing BDD-based testing on APIs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published