我是Team City的新手,并且已经完成了创建CI构建的任务.
我试图构建的是带有量角器e2e测试的angular2应用程序.
Team City中的所有其他构建步骤都运行正常,但我无法尝试运行执行e2e测试的步骤.
如果我要在本地做这个,我会打开一个cmd窗口并输入...
npm run start
Run Code Online (Sandbox Code Playgroud)
然后我会打开另一个命令窗口并输入...
npm run e2e
Run Code Online (Sandbox Code Playgroud)
我无法弄清楚这是如何做到Team City中的一个平行步骤:(
任何帮助都将受到大力赞赏:)
干杯
哈根达斯
我正在尝试运行在Internet Explorer上的量角器中包含的示例测试而不是很远:(
// An example configuration file.
exports.config = {
directConnect: true,
// Capabilities to be passed to the webdriver instance.
capabilities: {
'browserName': 'chrome'
},
// Framework to use. Jasmine is recommended.
framework: 'jasmine',
// Spec patterns are relative to the current working directory when
// protractor is called.
specs: ['example_spec.js'],
// Options to be passed to Jasmine.
jasmineNodeOpts: {
defaultTimeoutInterval: 30000
}
};Run Code Online (Sandbox Code Playgroud)
我已经尝试了明显改变的浏览器名称为'Internet explorer'和'version':11并且我已经注释掉了directConnect(因为它抱怨这个)
我得到的错误是......
WebDriverError:驱动程序可执行文件的路径必须由webdriver.ie.driver系统属性设置; 有关更多信息,请参阅https://github.com/SeleniumH Q/selenium/wiki/InternetExplorerDriver.最新版本可以从http://selenium-release.storage.googleapis.com/index.html下载
我已经下载了最新的IE驱动程序并将其放在这里......
C:\ Users \用户darrenp \应用程序数据\漫游\ NPM …