Open pammismail opened 10 years ago
Sorry for the late reply. May I know the contents of Featurelist1.js and Featurelist2.js?
sure. Enclosed to this email.
On Wed, May 7, 2014 at 8:36 AM, Jinto Jose notifications@github.com wrote:
Sorry for the late reply. May I know the contents of Featurelist1.js and Featurelist2.js?
— Reply to this email directly or view it on GitHubhttps://github.com/jintoppy/protractor-html-screenshot-reporter/issues/2#issuecomment-42385175 .
I didn't get the attachment. Can you paste the main content only in this page itself?
Sorry about that. Here it is. Featurelist1.js
var config = Object.create(require('./ptrConf').config);
_config.specs =['../Specs/Ancestry_Smokespec.js'];
exports.config = config;
Featurelist2.js
var config = Object.create(require('./ptrConf').config);
_config.specs =['../Specs/examplespec.js'];
exports.config = config;
On Fri, May 9, 2014 at 5:36 PM, Jinto Jose notifications@github.com wrote:
I didn't get the attachment. Can you paste the main content only in this page itself?
— Reply to this email directly or view it on GitHubhttps://github.com/jintoppy/protractor-html-screenshot-reporter/issues/2#issuecomment-42658891 .
I tested with grunt concurrent and the screenshots are getting generated.
I was able to configure html-screenshot-reporter and able to generate html reports and screenshots when I run tests in linear or sequential mode. However, when I configure my protractor tests to run concurrently using 'grunt-concurrent' plug-in, the 'screenshots' folder is not being created at all. Please have a look my gruntfile
using the gruntfile below, when I run 'grunt linear', everything works fine. However, when I run 'grunt parallel', I can't see the screenshot folder at all.
module.exports = function(grunt) {
grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), //Protractor here is a grunt plug-in, which takes config file and selenium ports are params protractor:{ options:{ KeepAlive:true, configFile:'./Config/conf.js', args:{browser:'chrome'} },
}, //Shell is grunt plug-in which basically runs commands from console. two commands here we perform are download webdriver-manager and install all //it's dependencies and webdriverserver_launch launches webdriver server concurrent:{
}, shell:{ options:{ stdout:true }, protractor_install:{ command: 'node ./node_modules/protractor/bin/webdriver-manager update' }, webdriverserver_launch:{ command: 'node ./node_modules/protractor/bin/webdriver-manager start' },
npm_install:{ command:'npm install' }
}, //Grunt-open is another plug-in which opens html files on your favourite browsers open:{
report:{ path:'file:///C:/Users/Admin/Google Drive/Core/Automation/Frameworks/Protractor/screenshots/reporter.html', app: 'Firefox' } },
//grunt-clean is another plug-in which deletes files or folders clean:["screenshots"],
});
grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-protractor-runner'); grunt.loadNpmTasks('grunt-shell-spawn'); grunt.loadNpmTasks('grunt-contrib-connect'); grunt.loadNpmTasks('grunt-open'); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-concurrent'); grunt.registerTask('parallel',['clean','jshint','concurrent','open:report']); grunt.registerTask('linear',['clean','jshint','protractor:singlerun','open:report']); grunt.registerTask('install',['shell:npm_install','shell:protractor_install','shell:webdriverserver_launch']); grunt.registerTask('report',['open:report']); };