0.2.6 • Published 8 years ago

protractor-http-snitch v0.2.6

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
8 years ago

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.

0.2.6

8 years ago

0.2.5

8 years ago

0.2.4

9 years ago

0.2.3

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.0-1

9 years ago

0.1.0

9 years ago

0.0.0

9 years ago