serenity-bdd / serenity-cucumber

Cucumber integration for the Serenity BDD Reporting library
Other
78 stars 74 forks source link

Serentiy Report with protracor and cucumber #82

Closed alialrabi closed 7 years ago

alialrabi commented 7 years ago

I have protractor cucumber example works fine, now I'm trying to create report by serenity.js

protractor.conf.js file

exports.config = {
    getPageTimeout: 600000,
    allScriptsTimeout: 700000,
    framework: 'custom',
    frameworkPath: require.resolve('serenity-js'),
    capabilities: {
        'browserName': 'chrome'
    },
    specs: [
        '/home/git/adap_gateway/src/test/features/*.feature'
    ],
    baseURL: 'http://localhost:8099/',
    cucumberOpts: {
        require: '/home/git/adap_gateway/src/test/javascript/stepDefinitions.js',
        format: ['pretty'],
    }
};

The feature file

Feature: Running Cucumber with Protractor

  Scenario: Protractor and Cucumber Test
    Given I go to "http://localhost:8099/#/"
    When I add login credential
    Then I go to scenario home page
    Then I go to scenario details page
    Then I go to edit attack tree page
    Then build attack tree

ANd package.json file is

{
    "name": "c",
    "version": "1.0.0",
    "description": "",
    "main": "index.js",
     "dependencies": {
      "gulp": "^3.9.1",
      "protractor-cucumber": "^0.1.8",
     "protractor-cucumber-framework": "^3.1.0"
     },
     "devDependencies": {
     "protractor-cucumber": "^0.1.8",
     "serenity-cli": "^0.2.4",
     "serenity-js": "^1.4.1",
     },
    "scripts": {
     "test": "echo \"Error: no test specified\" && exit 1",
     "prereport": "serenity update",
     "report":  "serenity run"
    },
    "author": "",
    "license": "ISC"
}

I get

E/launcher - Error: Error: EACCES: permission denied, scandir '/etc/cups/ssl' at Error (native) at Object.fs.readdirSync (fs.js:952:18) at GlobSync._readdir (/home/ali/node_modules/cucumber/node_modules/glob/sync.js:2‌​88:41) [18:15:41] E/launcher - 
Process exited with error code 100,

Do you have any instructions?

wakaleo commented 7 years ago

This is a Serenity/JS question, so could you raise it in the Serenity/JS repository?