运行 基于 jasmine 和 selenium-webdriver 的测试时出错
Error when running jasmine and selenium-webdriver based tests
我正在使用 selenium webdriver 和 jasmine 为我的网站创建一些端到端测试。我试着寻找好的初学者教程。我以 this tutorial 结束,这帮助我进行到 运行 结束端到端测试的步骤。我试图按照教程中描述的方式完全按照教程进行操作,包括相同的目录名称。我正在使用 Chrome 浏览器并安装了 chromedriver。当我 运行 测试使用
$ jasmine spec\integration-test.js
如那里所述,我收到如下一堆超时错误。它还打开了两个 Chrome windows 和 data:,
为 URL。我花了一些时间试图弄清楚,但似乎无处可去。任何帮助,将不胜感激。如果需要更多信息,请告诉我。
Started
FF
Failures:
1) Selenium Tutorial Should be on the home page
Message:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
Stack:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
at Timer.listOnTimeout [as ontimeout] (timers.js:121:15)
Message:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
Stack:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
at Timer.listOnTimeout [as ontimeout] (timers.js:121:15)
Message:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
Stack:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
at Timer.listOnTimeout [as ontimeout] (timers.js:121:15)
2) Selenium Tutorial Has a working nav
Message:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
Stack:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
at Timer.listOnTimeout [as ontimeout] (timers.js:121:15)
Message:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
Stack:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
at Timer.listOnTimeout [as ontimeout] (timers.js:121:15)
Message:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
Stack:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
at Timer.listOnTimeout [as ontimeout] (timers.js:121:15)
将此添加到您的 jasmine 配置中:(根据需要增加)
"default_timeout_interval": 5000
我正在使用 selenium webdriver 和 jasmine 为我的网站创建一些端到端测试。我试着寻找好的初学者教程。我以 this tutorial 结束,这帮助我进行到 运行 结束端到端测试的步骤。我试图按照教程中描述的方式完全按照教程进行操作,包括相同的目录名称。我正在使用 Chrome 浏览器并安装了 chromedriver。当我 运行 测试使用
$ jasmine spec\integration-test.js
如那里所述,我收到如下一堆超时错误。它还打开了两个 Chrome windows 和 data:,
为 URL。我花了一些时间试图弄清楚,但似乎无处可去。任何帮助,将不胜感激。如果需要更多信息,请告诉我。
Started
FF
Failures:
1) Selenium Tutorial Should be on the home page
Message:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
Stack:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
at Timer.listOnTimeout [as ontimeout] (timers.js:121:15)
Message:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
Stack:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
at Timer.listOnTimeout [as ontimeout] (timers.js:121:15)
Message:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
Stack:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
at Timer.listOnTimeout [as ontimeout] (timers.js:121:15)
2) Selenium Tutorial Has a working nav
Message:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
Stack:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
at Timer.listOnTimeout [as ontimeout] (timers.js:121:15)
Message:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
Stack:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
at Timer.listOnTimeout [as ontimeout] (timers.js:121:15)
Message:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
Stack:
Error: Timeout - Async callback was not invoked within timeout specified by
jasmine.DEFAULT_TIMEOUT_INTERVAL.
at Timer.listOnTimeout [as ontimeout] (timers.js:121:15)
将此添加到您的 jasmine 配置中:(根据需要增加)
"default_timeout_interval": 5000