abhishekswain / jasmine2-protractor-utils

Utilities for Protractor with jasmine2 [HTML Reports, Screenshot, Browser Console log]
MIT License
18 stars 31 forks source link

Issue while creating htmlreports directory using latest version #14

Open vikasvoladri opened 8 years ago

vikasvoladri commented 8 years ago

Hi, I've updated the plugin to latest version and observing below mentioned issue intermittently. This was not observed in previous version.

Error message: Fail: jasmine2-protractor-utils Plugin Tests Failure during setup: EPERM: operation not permitted, mkdir 'H:\Project Repo\App-testing\reports\htmlReports' Error: EPERM: operation not permitted, mkdir 'H:\Project Repo\App-testing\reports\htmlReports' at Error (native) at Object.fs.mkdirSync (fs.js:842:18) at Function.sync (C:\Users\AppData\Roaming\npm\node_modules\jasmine2-protractor-utils\node_modules\mkdirp\index.js:71:13) at [object Object].protractorUtil.setup (C:\Users\AppData\Roaming\npm\node_modules\jasmine2-protractor-utils\index.js:306:16) at Plugins.safeCallPluginFun (C:\Users\AppData\Roaming\npm\node_modules\protractor\built\plugins.js:203:45) at C:\Users\AppData\Roaming\npm\node_modules\protractor\built\plugins.js:237:36 at Array.forEach (native) at Plugins.setup (C:\Users\AppData\Roaming\npm\node_modules\protractor\built\plugins.js:235:25) at C:\Users\AppData\Roaming\npm\node_modules\protractor\built\runner.js:268:28 at _fulfilled (C:\Users\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:834:54) [01:23:29] I/launcher - 0 instance(s) of WebDriver still running [01:23:29] I/launcher - firefox #01 failed 2 test(s) [01:23:29] I/launcher - overall: 2 failed spec(s) [01:23:29] E/launcher - Process exited with error code 1

Please find below the conf setting which I've used and protractor version details: node js: 5.1.0 npm version: 3.3.12 Protractor version: 3.3.0 Os: Windows 10 conf file setting - onPrepare: function () { return global.browser.getProcessedConfig().then(function (config) { }); }, plugins: [{ package: 'jasmine2-protractor-utils', disableHTMLReport: false, disableScreenshot: false, screenshotPath:'./reports/screenshots', screenshotOnExpectFailure:true, screenshotOnSpecFailure:true, clearFoldersBeforeTest: true, htmlReportDir: './reports/htmlReports', }]

Let me know if you need any additional information

abhishekswain commented 8 years ago

Hi Vikash,

Please try with the following steps and do let me know:

  1. Run "npm cache clean"
  2. Give all the permissions including write permission for your user to the folder - "App-testing"