Quality Testing

Quality is delighting customers


How to configure Jasmine Protractor Reporter ?

Can any one share the sample code and steps.

Views: 556

Reply to This

Replies to This Discussion

Hi All,

Below is the Automated testing services code for configuring jasmine html report with the protractor

Please provide the code in your conf.js file:

var Jasmine2HtmlReporter = require('protractor-jasmine2-html-reporter');

exports.config = {
        directConnect: true,
    suites: {
        login: 'src/com/angularjs/specs/homeSpec.js'
    onPrepare: function() {
        // Add a screenshot reporter and store screenshots to `/tmp/screnshots`:
        jasmine.getEnv().addReporter(new Jasmine2HtmlReporter({
           savePath: './test/reports/' }));},

Note: Please make sure that you have install jasmine2 html reporter plugin in your node_modules folder using npm command 

Hope this will help you.


TTWT Magazine





© 2020   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service