有关protracor和黄瓜的Serentiy报告

时间:2017-04-29 16:29:40

标签: protractor cucumber cucumber-serenity serenity-js

我有量角器黄瓜示例工作正常,现在我试图通过serenity.js创建报告

protractor.conf.js文件

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'],
      }       
    };

功能文件

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文件是

{
"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"
}

但是我得到了

我得到E / launcher - 错误:错误:EACCES:权限被拒绝,scandir' / etc / cups / ssl'在GlobSync._readdir的Object.fs.readdirSync(fs.js:952:18)处出现错误(本机)(/home/ali/node_modules/cucumber/node_modules/glob/sync.js:2 88:41)[18 :15:41] E / launcher - 进程已退出,错误代码为100,您有任何指示吗?

任何人都可以帮我解决这个问题吗?

0 个答案:

没有答案