Skip to content

Releases: abhishekswain/jasmine2-protractor-utils

35Degree

18 Aug 12:29
Compare
Choose a tag to compare

Added Functionality to see Screenshots from HTML report itself. Screenshots relevant to specs will be shown in gallery view.

30Degree

11 Apr 13:54
Compare
Choose a tag to compare

Bug Fixes.

25Degree

11 Apr 10:16
Compare
Choose a tag to compare

Issue fixes :
Cleans screenshots when clearFoldersBeforeTest flag set to true.
If screenshots path is specified without ending , then screenshots are generated in incorrect location.
Other minor Fixes.

20Degree

17 Feb 09:11
Compare
Choose a tag to compare

Added feature to generate HTML reports.

10Degree

02 Dec 12:25
Compare
Choose a tag to compare

Added feature to fail a spec/test , if browser console log has errors.

Added configurations:

 failTestOnErrorLog: {
                    failTestOnErrorLogLevel: {Number},  (Default - 900)
                    excludeKeywords: {A JSON Array}
                }

0Degree

01 Dec 15:48
Compare
Choose a tag to compare

Initial Release:

jasmine2-protractor-utils

Utilities for Protractor with jasmine2 [Screenshot, Browser Console log]

  1. This plugin can take a screenshot for each Jasmine2 expect failure
  2. It can take screenshot for each spec failure as well
  3. TODO: It can fail your spec/test if browser console has errors
  4. TODO: It can output browser console logs on failure or always :)

Usage

How to install

npm install jasmine2-protractor-utils -g

To install a particular version: npm install jasmine2-protractor-utils@version

Add this plugin to the protractor config file:

exports.config = {
      plugins: [{
        package: 'jasmine2-protractor-utils',
        screenshotOnExpectFailure: {Boolean}    (Default - false),
        screenshotOnSpecFailure: {Boolean}      (Default - false),
        screenshotPath: {String}                (Default - 'reports/screenshots')
      }]
    };

package

This is the plugin package name , same as of npm module name for the plugin , 'jasmine2-protractor-utils' usually and preferably

screenshotOnExpectFailure

Takes a screenshot for each Jasmine2 expect failure, is set true.
Screenshot will be taken in 'png' format and file name would be: description+spec description+index.png

Default: false

screenshotOnSpecFailure

Take screenshot for each spec failure , if set to true.
Screenshot will be taken in 'png' format and file name would be: description+spec description.png

Default: false

screenshotPath

Path where screenshots will be saved. If path does not exist , will be created.
e.g './reports/something/savehere/' , please take care of './' and '/' at the beginning and end.

Default: 'reports/screenshots'

TODO

It can fail your spec/test if browser console has errors.

It can output browser console logs on failure or always :)