未找到量角器'规格'

时间:2017-11-15 14:37:31

标签: selenium protractor jasmine2.0

我很高兴在Protractor / Jasmine2框架上运行测试。现在,我已经启动了一个新项目并使用了相同的框架 - 但是,当我尝试运行第一个规范时,我收到了一个未找到的规范'信息。 我已经尝试了各种各样的事情....明确的文件位置,在项目的根目录中有spec.js,推送到BitBucket,从我的机器上删除项目并重新克隆。在VS Code和Atom上运行没有任何区别。

我已经将spec.js剥离到如此简单的东西,以防它出现在那里,但是如果我能发现任何东西我就会被炸毁!请参阅conf.js,spec.js和Package.json。对不起,在conf.js中的所有// - 继续剥离东西!!

希望有一个鹰眼的人...... !!感谢

的package.json

{
"name": "jl_autotests",
"version": "1.0.0",
"description": "Autotests",
"main": "index.js",
"scripts": {
 "test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+ssh://git@bitbucket.org/davred61/jl_autotests.git"
},
"keywords": [
"Cucumber",
"gherkin",
"cuke",
"protractor",
"angular",
"selenium",
"endtoend",
"report",
"e2e",
"javascript"
],
"author": "D Redmayne",
"license": "ISC",
"homepage": "https://bitbucket.org/davred61/jl_autotests#readme",
"dependencies": {
"Express": "^3.0.1",
"angular": "^1.6.6",
"angularjs": "0.0.1",
"cucumber": "^3.1.0",
"glob": "^7.1.2",
"gulp": "^3.9.1",
"lodash": "^4.17.4",
"material-design-lite": "^1.3.0",
"moment": "^2.19.2",
"pretty": "^2.0.0",
"protractor": "^5.2.0",
"protractor-cucumber-framework": "^4.1.1",
"protractor-image-comparison": "^1.3.0"
},
 "devDependencies": {
"chai": "^4.1.2",
"express": "^4.16.2",
"gulp-protractor": "^4.1.0",
"jasmine-reporters": "^2.2.1",
"jasmine-spec-reporter": "^4.2.1",
"protractor-jasmine2-html-reporter": "0.0.7",
"protractor-jasmine2-screenshot-reporter": "^0.5.0",
"restify": "^6.3.2"
}
}

Conf.js

//var Jasmine2HtmlReporter = require('protractor-jasmine2-html-reporter');

exports.config = {
//seleniumAddress: 'http://localhost:444/wd/hub',
//directConnect: true,



capabilities: {
  cssSelectorsEnabled: true,
  'browserName': 'chrome'
},

   specs:['spec.js'],


allScriptsTimeout: 60000,
getPageTimetout: 30000,

framework: 'jasmine2',

//onPrepare: function() {
  //jasmine.getEnv().addReporter(
  //new Jasmine2HtmlReporter({
  //takeScreenshots: true,
  //savePath: './Reports',
  //fileName: 'HomeProfile'
  //})
 //)



//var SpecReporter = require ( 'jasmine-spec-reporter').SpecReporter;
  //jasmine.getEnv().addReporter( new SpecReporter( {
  //displayStacktrace:      true,
 //displayFailureSummary:  true,
//displayPendingSummary:  true,
//displaySuccessfulSpec:  true,
//displayFailedSpec:      true,
//displaySpecDuration:    false,
//displaySuiteNumber:     false,
//colors: {
 //success: 'green',
 //failure: 'red',
 //pending: 'yellow'
  // },
   //customProcessors: []

  //} ));

//}

};

spec.js

browser.get('https://mwac-johnlewis-dev.digitalbridge.eu/landing');
browser.sleep(10000);

0 个答案:

没有答案