Skip to content

Sam56/Api-testing-using-axios-and-cucumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cucumber Axios -BDD Framework

The general tendency of developers is to develop features and write test code later. As, evident in above case, Test Case development for this case is complex and developer will put off Testing till release , at which point he will do quick but ineffective testing. To overcome this issue (Behavior Driven Development) BDD was conceived. It makes the entire testing process easy for a developer In BDD, whatever you write must go into Given-When-Then steps

There are many BDD framework tools

example 1.Cucumber-framework as cool as cucumber 2.Serenity 3.Jasmine.

In the above code , the BDD framework used is Cucumber, axios is used to invoke the api

Installation

Pre-requisites

Nodejs,4.x+ Visual studio

npm packages

axios, jest, cucumber-js, cucumber-html-reporter.

or run the below command to install all dependencies

$npm install

Test

To run the test cases use the below command

$npm test

or

cucumber-js features/ -r steps/ --format json:report/cucumber_report.json

reporter

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published