protractor-http-snitch

0.2.6 • Public • Published

protractor-http-snitch

npm Build status

This Protractor plugin will print (using log4js) every failing HTTP request, and (optionally) successful HTTP requests.

Example:

[2016-08-22 14:59:16.277] [ERROR] [http-snitch] - POST /faulty/api (500)
[2016-08-22 14:59:16.278] [ERROR] [http-snitch] - Request data: {"some":"data"}
[2016-08-22 14:59:16.278] [ERROR] [http-snitch] - Response: {"some":"error"}

Installation

npm install protractor-http-snitch

Protractor config file:

config.plugins = [{
  package: 'protractor-http-snitch',
 
  // Optional options
  level: {
    failure: 'debug'
  }
}];

And voilà!

Configuration

See the default configuration for a fully documented list of available options.

Readme

Keywords

none

Package Sidebar

Install

npm i protractor-http-snitch

Weekly Downloads

7

Version

0.2.6

License

Apache-2.0

Last publish

Collaborators

  • manudwarf