如何在生产中使用业力(& karma-e2e-dsl)运行e2e测试(无角度)

时间:2016-05-16 16:24:53

标签: testing mocha karma-runner ui-testing e2e-testing

我想用远程站点的业力编写自动化的e2e测试。

我创建了karma.config文件,它可以轻松连接到我的本地浏览器。

现在,我想为不在我电脑上的网站编写此测试。(例如google.com)。 我怎么能这样做?

我正在使用karma-e2e-dsl(https://github.com/winsonwq/karma-e2e-dsl) &安培;摩卡。现在我的测试正在运行,但框架是空的。

试验:

browser.navigateTo('http://google.pl');

配置:

module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['mocha','karma-e2e-dsl'],
files: [
  'tests/google/1.js'
],
exclude: [],
preprocessors: {
},
reporters: ['progress'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Firefox'],
singleRun: false,
concurrency: Infinity
})
}

0 个答案:

没有答案