Open meetbaluyogi opened 5 years ago
@meetbaluyogi can you try with framework as jasmine instead of jasmine2 in yout config file
@raj8github No doesnt works.
Error: Cannot find module 'protractor-jasmine-html-reporter'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.
Please help me to get rid of this error.
C:\Users\Bala\Automation_Commusoft>npm test
This is my config.js file
var HtmlReporter = require('protractor-html-screenshot-reporter'); var PropertiesReader = require('properties-reader'); var path = require('path'); var Jasmine2HtmlReporter = require('protractor-jasmine2-html-reporter'); var HtmlScreenshotReporter = require('protractor-jasmine2-screenshot-reporter'); exports.config= { ignoreSynchronization: true, framework: 'jasmine2', baseUrl: "https://app.commusoft.co.uk",
// browserName: 'firefox',
// firefoxPath: 'C:/Program Files(x89)/Mozilla Firefox/firefox.exe', 'binary': 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe', directConnect: true, // 'binary': 'C:/Program Files (x86)/Mozilla Firefox/firefox.exe', 'chromeOptions': { // Prevent warning about dev tools, which breaks some tests, in Windows at least. 'args': ['--disable-extensions','--start-maximized'] }
} };
Package.js
{ "name": "test_framework", "description": "QE Test Framework", "homepage": "http://demo7.star-systems.in/", "author": "Star System", "dependencies": { "check-node-version": "^2.1.0", "latest-version": "^2.0.0", "ngUpload": "^0.5.20", "node-svn-ultimate": "^0.1.2", "package-script": "0.0.8", "properties-reader": "0.0.10", "protractor": "4.0.3", "protractor-html-screenshot-reporter": "0.0.19", "xlsjs": "0.7.5", "xlsx": "0.8.0" }, "scripts": { "install": "node installer.js", "pretest": "webdriver-manager update", "test": "protractor config.js" }, "version": "0.0.1", "devDependencies": { "jasmine-spec-reporter": "^2.4.0", "protractor-jasmine2-html-reporter": "0.0.5", "protractor-jasmine2-screenshot-reporter": "^0.1.6" } }