我想用selenium-standalone本地运行实习测试,我通过npm安装这些测试。
当我去运行测试时 - > “./node_modules/.bin/intern-runner”config =。/ pmictests / test / bit / GAT / internEx / intern
与_intern / client.html一样?不是我想要的 为什么会这样?我试图绕过它,但一直坚持这个问题。
我的配置文件如下所示: 定义({
proxyPort: 9515,
proxyUrl: 'http://localhost:8585/',
tunnel: 'NullTunnel',
useSauceConnect: false,
capabilities: {
'fixSessionCapabilities' : false,
'selenium-version': '2.35.0',
'idle-timeout': 36
},
environments: [
{ browserName: 'chrome' }
],
maxConcurrency: 3,
useSauceConnect: false,
webdriver: {
host: 'localhost',
port: 4444
},
suites: [ './tests/test/' ],
excludeInstrumentation: /^(?:tests|node_modules)\//
});
答案 0 :(得分:1)
该URL用于运行单元测试。当您运行intern-runner
时,它会自动加载client.html
以运行suites
中列出的任何单元测试套件。完成单元测试后,Intern会运行functionalSuites
中列出的任何功能测试(将加载自己的URL)。