theintern在URL

时间:2017-04-20 13:15:45

标签: selenium automated-tests intern ui-testing web-testing

我想用selenium-standalone本地运行实习测试,我通过npm安装这些测试。

当我去运行测试时 - > “./node_modules/.bin/intern-runner”config =。/ pmictests / test / bit / GAT / internEx / intern

浏览器启动但网址转到http://localhost:8585/__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)\//

});

1 个答案:

答案 0 :(得分:1)

该URL用于运行单元测试。当您运行intern-runner时,它会自动加载client.html以运行suites中列出的任何单元测试套件。完成单元测试后,Intern会运行functionalSuites中列出的任何功能测试(将加载自己的URL)。