我想用selenium独立在本地运行实习生测试,这两个测试都是通过npm安装的。
当我去运行测试时,->“./node_->/..bin/”->
浏览器启动,但url转到intern/client.html?config=.%2Fpmictests%2Ftest%2Fbit%2FGAT%2FinternEx%2Fintern&basePath
和_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)\//});
发布于 2017-04-20 14:35:30
该URL用于运行单元测试。当您运行intern-runner时,它会自动加载client.html来运行suites中列出的任何单元测试套件。单元测试完成后,Intern将运行functionalSuites中列出的所有功能测试(这将加载他们自己的URL)。
https://stackoverflow.com/questions/43520666
复制相似问题